July 4, 2022

Error: command ‘MailAccountFetch’ is failed

After upgrading to Znuny 6.3 you get new tickets with the subject

OTRS Scheduler Daemon Cron: MailAccountFetch

and the body

Console command 'MailAccountFetch' is failed.

Cause of the issue

It is a bug (re-)introduced with Znuny 6.3 version. It is a bug which will probably never fixed in Znuny 6.3, since it is a intermediate and thus short time framed version.

Fix of the issue with Znuny 6.4

As of the Znuny version 6.3.4 this bug is unfixed and needs a manual workaround. The bug is fixed with Znuny 6.4. So if you plan to upgrade, do 😉

Implementing the fix if you need to stay on 6.3.

The fix sounds somehow awkward. You have to copy a source file from an 6.2 version to your current version.

If you have used our upgrade scripts (see Upgrade/Migrate trouble-free from Znuny 6.2 to Znuny 6.3) you are pretty happy, since you still the the old version on your system.

echo "creating the backup file"
cp /opt/otrs/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm /opt/otrs/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm.backup
echo "replacing the file"
cp /opt/znuny-6.2.2/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm /opt/otrs/Kernel/System/Console/Command/Maint/PostMaster/

If you have not upgraded with our article approach, you will require to download the latest 6.2 version and to copy from it one specific file.

apt install wget -y
cd /tmp
wget https://download.znuny.org/releases/znuny-latest-6.2.tar.gz
tar zxf znuny-latest-6.2.tar.gz
cd `tar ztf znuny-latest-6.2.tar.gz |grep "znuny-6.2\../$"`

echo "creating the backup file"
cp /opt/otrs/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm /opt/otrs/Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm.backup
echo "replacing the file"
cp ./Kernel/System/Console/Command/Maint/PostMaster/MailAccountFetch.pm /opt/otrs/Kernel/System/Console/Command/Maint/PostMaster/

Related articles

Upgrade/Migrate trouble-free from Znuny 6.2 to Znuny 6.3
Upgrade/Migrate trouble-free from Znuny 6.3 to Znuny 6.4
How to debug e-mail errors in OTRS / Znuny?

Do you need help with Znuny / OTRS?
We have lot of experiences with OTRS and Znuny and can help you with your issues. Get in touch with us and we will check if and how we can help you.

Leave a Comment

Your email address will not be published. Required fields are marked *

Do you need help with Znuny / OTRS?​

We have lot of experiences with OTRS and Znuny.
We can help you with your issues to solve them.

From giving you support up to implementing integrations to your existing systems.

Get in touch with us and we will check if and how we can help you.​

Get OTRS/Znuny/OTOBO Support
Our support experts prepare themself, by reviewing your business. Please Share your website URL
To get a quick and efficient clearance of your needs, our experts will call you.
We communicate in English.
Maybe we can communicate in your native language too. So please let us know your native written and spoken language.