PostMasterMailbox doesn't fetches the mail

I use OTRS 2.4.7 for Win. It works fine, except fetches mail automatically. When i use "Run Now!" command via "PostMaster Mail Account", OTRS fetches all new mail from my POP3 account. When in cmd I type command *C:\Program Files\OTRS\StrawberryPerl\perl\bin\perl.exe "C:\Program Files\OTRS\OTRS\bin\PostMasterMailbox.pl"* it receive email. But cron job postmaster_mailbox doesn't fetches the mail although it execute every 2 minutes. postmaster_mailbox.dist: */2 * * * * $HOME/bin/PostMasterMailbox.pl >> /dev/null my cronw.log: [2010/03/11 12:38:00] state: SERVICE_RUNNING [2010/03/11 12:38:00] checking for jobs to run [2010/03/11 12:38:00] skip reading crontab - file unchanged [2010/03/11 12:38:00] checking jobs at min: 38, hour: 12, day: 11, month: 2, wday: 4 [2010/03/11 12:38:00] found job to execute: 'C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe' with C:/PROGRA~1/OTRS/OTRS/bin/PostMasterMailbox.pl [2010/03/11 12:38:00] executing job C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe - C:/PROGRA~1/OTRS/OTRS/bin/PostMasterMailbox.pl [2010/03/11 12:38:00] Win32::Process::Create('C:\Program Files\OTRS\StrawberryPerl\perl\bin\perl.exe', 'perl "C:\Program Files\OTRS\CRONw\cronService.pl" --exec=433a2f50524f4752417e312f4f5452532f537472617762657272795065726c2f7065726c2f62696e2f7065726c2e657865 --args=433a2f50524f4752417e312f4f5452532f4f5452532f62696e2f506f73744d61737465724d61696c626f782e706c20', '.') [2010/03/11 12:38:00] will sleep 20 seconds [2010/03/11 12:38:00] going to start C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe with arguments 'C:/PROGRA~1/OTRS/OTRS/bin/PostMasterMailbox.pl ' [2010/03/11 12:38:00] Win32::Process::Create('c:\system\4nt\4nt.exe', '"4nt.exe" /C "C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/PostMasterMailbox.pl "', 'C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin') [2010/03/11 12:38:00] Process 2248 started [2010/03/11 12:38:00] Process 2248 finished. Exit code: 2 so it doesn't work -- and i don't know why.

In linux, you can do this. But I don't know how in Window$. Are you sure that you edit /opt/otrs/var/cron/postmaster_mailbox ? To edit cron files for otrs, you must edit files storred in /opt/otrs/var/cron and restart otrs service. Cron jobs are execute boy otrs user. To check otrs's cron jobs in root: crontab -l -u otrs | grep -E ^[^#] Le 11/03/2010 14:34, -- akmych a écrit :
I use OTRS 2.4.7 for Win. It works fine, except fetches mail automatically.
When i use "Run Now!" command via "PostMaster Mail Account", OTRS fetches all new mail from my POP3 account.
When in cmd I type command /C:\Program Files\OTRS\StrawberryPerl\perl\bin\perl.exe "C:\Program Files\OTRS\OTRS\bin\PostMasterMailbox.pl"/ it receive email.
But cron job postmaster_mailbox doesn't fetches the mail although it execute every 2 minutes.
postmaster_mailbox.dist: */2 * * * * $HOME/bin/PostMasterMailbox.pl >> /dev/null
my cronw.log: [2010/03/11 12:38:00] state: SERVICE_RUNNING [2010/03/11 12:38:00] checking for jobs to run [2010/03/11 12:38:00] skip reading crontab - file unchanged [2010/03/11 12:38:00] checking jobs at min: 38, hour: 12, day: 11, month: 2, wday: 4 [2010/03/11 12:38:00] found job to execute: 'C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe' with C:/PROGRA~1/OTRS/OTRS/bin/PostMasterMailbox.pl [2010/03/11 12:38:00] executing job C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe - C:/PROGRA~1/OTRS/OTRS/bin/PostMasterMailbox.pl [2010/03/11 12:38:00] Win32::Process::Create('C:\Program Files\OTRS\StrawberryPerl\perl\bin\perl.exe', 'perl "C:\Program Files\OTRS\CRONw\cronService.pl" --exec=433a2f50524f4752417e312f4f5452532f537472617762657272795065726c2f7065726c2f62696e2f7065726c2e657865 --args=433a2f50524f4752417e312f4f5452532f4f5452532f62696e2f506f73744d61737465724d61696c626f782e706c20', '.') [2010/03/11 12:38:00] will sleep 20 seconds [2010/03/11 12:38:00] going to start C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe with arguments 'C:/PROGRA~1/OTRS/OTRS/bin/PostMasterMailbox.pl ' [2010/03/11 12:38:00] Win32::Process::Create('c:\system\4nt\4nt.exe', '"4nt.exe" /C "C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin/perl.exe C:/PROGRA~1/OTRS/OTRS/bin/PostMasterMailbox.pl "', 'C:/PROGRA~1/OTRS/StrawberryPerl/perl/bin') [2010/03/11 12:38:00] Process 2248 started [2010/03/11 12:38:00] Process 2248 finished. Exit code: 2
so it doesn't work -- and i don't know why.
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
-- Guillaume REHM Centre de Ressources Informatiques Responsable Sécurité du Système d'Information (RSSI) Bibliothèque Nationale et Universitaire de Strasbourg 5 rue du Maréchal Joffre BP 51029 67070 Strasbourg tél: 03 88 25 28 23 fax: 03 88 25 28 03 mail: guillaume.rehm@bnu.fr web: http://www.bnu.fr
participants (3)
-
-- akmych
-
Guillaume Rehm
-
Marco Vannini