Fetching mail automatically

Moderator: crythias

Locked
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Fetching mail automatically

Post by spiderpig »

hi,

after i upgrade to OTRS 4 the mail doesent fetch automatically, but works if i fetch manually.

/opt/otrs/var/cron/postmaster_mailbox
*/1 * * * * $HOME/bin/PostMasterMailbox.pl >> /dev/null

any ideas?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Fetching mail automatically

Post by jojo »

crontab -l -u otrs
"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
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Fetching mail automatically

Post by spiderpig »

hmm, i'm getting "no crontab for otrs"
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Fetching mail automatically

Post by jojo »

then you should use the bin/Cron.sh script to rebuild it
"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
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Fetching mail automatically

Post by spiderpig »

when im trying to run it as otrs user i get

"errors in crontab file, can't install."
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Fetching mail automatically

Post by spiderpig »

ok, i have to run the script when i'm logged in as otrs user.

but i really dont remember tha password :)

is it ok for change it, or does it depend on some services?
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Fetching mail automatically

Post by spiderpig »

can i run these cron jobs as a root user? is that possible?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Fetching mail automatically

Post by crythias »

bin/Cron.sh otrs

edit: removed "otrs."
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
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Fetching mail automatically

Post by spiderpig »

running "bin/otrs.Cron.sh otrs" gave me an error, but i edited the postmaster_mailbox file as the otrs user and input the syntax, that worked.
OTRS 4.0 running on Centos 7
Locked