otrs problem with fetch mail

Moderator: crythias

Locked
otresi
Znuny newbie
Posts: 84
Joined: 02 Sep 2014, 10:49
Znuny Version: OTRS 5.0.8

otrs problem with fetch mail

Post by otresi »

i installed new otrs version 5, earlier i used otrs 3.3.8
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
When i started otrs.Postmaster.pl i got

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

Last edited by otresi on 08 Dec 2016, 10:24, edited 5 times in total.
OTRS 5 /
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: otrs problem with fetch mail

Post by root »

It's what it is: otrs.PostMaster.pl is deprecated. Check the manual and your cronjobs
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
otresi
Znuny newbie
Posts: 84
Joined: 02 Sep 2014, 10:49
Znuny Version: OTRS 5.0.8

Re: otrs problem with fetch mail

Post by otresi »

root wrote:It's what it is: otrs.PostMaster.pl is deprecated. Check the manual and your cronjobs
i m sorry i posted new error
OTRS 5 /
otresi
Znuny newbie
Posts: 84
Joined: 02 Sep 2014, 10:49
Znuny Version: OTRS 5.0.8

Re: otrs problem with fetch mail

Post by otresi »

Where is location, i need to change this?
Message: otrs.PostMaster.pl is deprecated, please use console command 'Maint::PostMaster::Read' instead.
OTRS 5 /
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: otrs problem with fetch mail

Post by skullz »

you should not use old version of postmaster..
also, cron job now is controlled by daemon..
make sure ur daemon is running
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
otresi
Znuny newbie
Posts: 84
Joined: 02 Sep 2014, 10:49
Znuny Version: OTRS 5.0.8

Re: otrs problem with fetch mail

Post by otresi »

skullz wrote:you should not use old version of postmaster..
also, cron job now is controlled by daemon..
make sure ur daemon is running
Thank you very much, my deamon was stopped..
OTRS 5 /
Locked