Postmaster Cron Job Not Running

Moderator: crythias

Locked
wizzbangca
Znuny newbie
Posts: 29
Joined: 09 Oct 2010, 01:57
Znuny Version: 2.4.8

Postmaster Cron Job Not Running

Post by wizzbangca »

My recent upgrade to 3.0.5 has left 1 major problem I have not been able to solve. OTRS is not checking the incoming email boxes at all. I can hit fetch mail in admin and get the emails without any problems. I can even manually run the postmaster script and fetch emails without a problem. I have tried fiddling around with postmaster_mailbox in case the crontab line is wrong and manually creating the cron job. At this point every line I have changed is back to it's original coding. When I restart the otrs service, postmaster is clearly shown as successfully starting. Even at first start emails are not automatically checked.

I have looked around and so far have not found anything to help with getting the email automatically checked. I even checked the docs and can't find anything that is understandable regarding getting emails to automatically checked.

Any help is appreciated.
OTRS 3.2.6
Centos 6 with default httpd and mysqld packages
wizzbangca
Znuny newbie
Posts: 29
Joined: 09 Oct 2010, 01:57
Znuny Version: 2.4.8

Re: Postmaster Cron Job Not Running

Post by wizzbangca »

If I run postmastermailbox as otrs (if I am doing it the right way), no error messages show up:

sudo -u otrs ./otrs.PostMasterMailbox.pl
POP3: Message 1/1 (****/******)

POP3: Connection to ******** closed.
OTRS 3.2.6
Centos 6 with default httpd and mysqld packages
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Postmaster Cron Job Not Running

Post by jojo »

are your cronjobs running? Please fill your signature with details of your installation
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
wizzbangca
Znuny newbie
Posts: 29
Joined: 09 Oct 2010, 01:57
Znuny Version: 2.4.8

Re: Postmaster Cron Job Not Running

Post by wizzbangca »

I ran crontab -l -u otrs | grep -E ^[^#] and got the following:
MAILTO="root@localhost"
20 0 * * 0 $HOME/bin/otrs.DeleteCache.pl --expired >> /dev/null
30 0 * * 0 $HOME/bin/otrs.LoaderCache.pl -o delete >> /dev/null
*/20 * * * * $HOME/bin/otrs.GenericAgent.pl >> /dev/null
*/10 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null
45 */2 * * * $HOME/bin/otrs.PendingJobs.pl >> /dev/null
10 0 * * * $HOME/bin/otrs.cleanup >> /dev/null
*/1 * * * * $HOME/bin/PostMasterMailbox.pl
01 01 * * * $HOME/bin/otrs.RebuildTicketIndex.pl >> /dev/null
55 */2 * * * $HOME/bin/otrs.DeleteSessionIDs.pl --expired >> /dev/null
01 * * * * /opt/otrs/bin/PostMaasterMailbox.pl
35 * * * * $HOME/bin/otrs.UnlockTickets.pl --timeout >> /dev/null

Looks like it is running. Need the mail boxes checked every minute due to the volume of tickets we receive.

System specs:
centos 5.5
2 gig ram
xeon dual core processor
apache 2
mysql 5
OTRS 3.2.6
Centos 6 with default httpd and mysqld packages
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Postmaster Cron Job Not Running

Post by crythias »

if you're getting tickets that quickly, you might want to change to procmail instead of pop3. http://wiki.otrs.org/index.php?title=Us ... POP3/fetch
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Postmaster Cron Job Not Running

Post by Wolfgangf »

you can change the settings in

Code: Select all

/opt/otrs/var/cron/postmaster_mailbox
to

Code: Select all

*/1 * * * *    $HOME/bin/PostMasterMailbox.pl >> /dev/null
and then restart otrs

I'm running this setting since more than a year with a total ticketvolume of 12.000 tickets p.Y - no performance problem at all
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
keithf4
Znuny newbie
Posts: 23
Joined: 28 Jan 2011, 23:01
Znuny Version: 3.0.5

Re: Postmaster Cron Job Not Running

Post by keithf4 »

Have you checked the syslog to see that the cronjobs are actually running? The jobs being in the crontab doesn't mean they actually run successfully, it just means they're scheduled to do so. See if there's an errors in the syslog around the times the jobs are supposed to run.
OTRS 3.0.7 | Ubuntu 10.04 LTS | Postgresql 8.4.7
Locked