I've set postmaster mail account, fetch worked manual but not with cron job.
I copied otrs.PostmasterMailbox.pl from old otrs 3.3.8 to new and setup postmaster mailbox 10 minutes but not working, also restart Cron.sh..
crontab -u otrs -l
Code: Select all
# fetch every 5 minutes emails via fetchmail
#*/5 * * * * [ -x /usr/bin/fetchmail ] && /usr/bin/fetchmail -a >> /dev/null
#*/5 * * * * /usr/bin/fetchmail -a --ssl >> /dev/null
# start generic agent every 10 minutes
*/10 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null
# fetch emails every 5 minutes
*/5 * * * * $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null
Code: Select all
ERROR: OTRS-otrs.PostMaster.pl-43 Perl: 5.16.3 OS: linux Time: Thu Dec 8 09:23:17 2016
Message: otrs.PostMaster.pl is deprecated, please use console command 'Maint::PostMaster::Read' instead.
When i started otrs.PostmasterMialbox.pl from otrs user i got this
Code: Select all
bash-4.2$ /opt/otrs/bin/otrs.PostMasterMailbox.pl
$Kernel::OM is not defined, please initialize your object manager at /opt/otrs/Kernel/System/Log.pm line 67.
Kernel::System::Log::new('Kernel::System::Log', 'LogPrefix', 'OTRS-otrs.PostMasterMailbox.pl', 'EncodeObject', 'Kernel::System::Encode=HASH(0x1394cb8)', 'ConfigObject', 'Kernel::Config=HASH(0xeeffa0)') called at /opt/otrs/bin/otrs.PostMasterMailbox.pl line 70