[Solved] Email too big => delete this email

Moderator: crythias

Post Reply
jlamarche
Znuny newbie
Posts: 43
Joined: 22 Nov 2013, 11:01
Znuny Version: 5.0.12
Real Name: Jordan Lamarche
Company: Smarthys

[Solved] Email too big => delete this email

Post by jlamarche »

Hello,

Recently I've been having a nightmare with some customers that send very heavy files, which are ignored by OTRS with the following error (which is a good thing):

Code: Select all

Message: IMAPS: Can't fetch email 1 from xxx@xxx.com/xxx.xxx.com. Email too big (18240 KB - max 16384 KB)!
 Traceback (1555):
   Module: Kernel::System::MailAccount::IMAP::_Fetch Line: 184
   Module: Kernel::System::MailAccount::IMAP::Fetch Line: 86
   Module: Kernel::System::MailAccount::MailAccountFetch Line: 440
   Module: Kernel::System::Console::Command::Maint::PostMaster::MailAccountFetch::Run Line: 94
   Module: (eval) Line: 444
   Module: Kernel::System::Console::BaseCommand::Execute Line: 438
   Module: (eval) Line: 147
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Cron::Run Line: 131
   Module: Kernel::System::Daemon::DaemonModules::SchedulerTaskWorker::Run Line: 259
   Module: (eval) Line: 316
   Module: main::Start Line: 316
   Module: /opt/otrs/bin/otrs.Daemon.pl Line: 138
So far so good ... except that everytime the system gets the new mails, it shows this error again because the email is still there.
Is there any way to tell OTRS to delete an email if it is too big ?

And btw, how do we increase the maximum size for emails ?

Best regards,
JL
Last edited by jlamarche on 23 Aug 2016, 13:48, edited 1 time in total.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Email too big => delete this email

Post by reneeb »

There's a sysconfig option for the max size...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
jlamarche
Znuny newbie
Posts: 43
Joined: 22 Nov 2013, 11:01
Znuny Version: 5.0.12
Real Name: Jordan Lamarche
Company: Smarthys

Re: Email too big => delete this email

Post by jlamarche »

Hello,

Do you know where in SysConfig ? I searched but haven't found it yet.

Best regards,
JL
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Email too big => delete this email

Post by EXG133 »

Try looking in Core::PostMaster and make sure your database can accept such a size as well.

In any case it's better to stop really huge mails on your mailserver before OTRS tries to read them. That way the sender is notified as well.
jlamarche
Znuny newbie
Posts: 43
Joined: 22 Nov 2013, 11:01
Znuny Version: 5.0.12
Real Name: Jordan Lamarche
Company: Smarthys

Re: Email too big => delete this email

Post by jlamarche »

Hello,

Found it, thanks !
Didn't search in the "Ticket" module. :)

I will follow your advice and ask to limit the emails received by this account to the same amount that OTRS accepts.

Thanks again to you all !

Best regards,
JL
Post Reply