Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: mab974 on October 11, 2014, 07:17:01 PM

Title: fetchmail and big messages
Post by: mab974 on October 11, 2014, 07:17:01 PM
Hi all,

I have a problem to receive big messages with fetchmail. My server runs on version 8.1 with fetchmail-6.3.6-4.el5.
I get this message in maillog
Code: [Select]
Aug 13 20:33:06 salazie fetchmail[24261]: Erreur SMTP: 552 Message too big!
Aug 13 20:33:06 salazie fetchmail[24261]: message depuis MAILER-DAEMON@salazie.ZZZZZZZ.com ayant rebondi sur sylvain@xxxxxxxx.com
Aug 13 20:33:06 salazie fetchmail[24261]: Le serveur SMTP a refusé de délivrer le courrier
So local smtp server refuse to deliver this message for a 552 error and i cannot find it anywhere.
I know that i can change MaxMessageSize and i try different values with config setprop qmail  MaxMessageSize xx
But i would prefer to inform postmaster and/or sender of these big mails rather than increase this maxsize.

Has anybody set up qmail and fetchmail for such operation?

here is my qmail configuration :
Code: [Select]
config show qmail
qmail=service
    DoubleBounceTo=devnull
    MaxMessageSize=45000000
    status=enabled
and a part of fetchmail for a user :
Code: [Select]
/usr/bin/fetchmail -d0 --silent --syslog --fetchmailrc - <<EOF
set postmaster "postmaster@ZZZZZZZ.com"
set bouncemail
set properties ""
poll pop.orange.fr with proto POP3 timeout 60 and options uidl no dns
  user 'michel.XXXXXXX' smtpaddress ZZZZZZZ.com with password 'azerty' is michel here no fetchall options ssl
  smtphost 127.0.0.200
EOF

Thanks for your help !
Title: Re: fetchmail and big messages
Post by: mab974 on October 14, 2014, 09:14:18 AM
no idea ? or not a problem ?
Title: Re: fetchmail and big messages
Post by: janet on October 14, 2014, 09:54:18 AM
mab974

Login to your mail account using an Internet based webmail and delete the offending large message.
I suggest you stop using fetchmail & use domain based email.
Domains are cheap or you can use free domains.
Fetchmail is problematic & should be avoided where possible.
Title: Re: fetchmail and big messages
Post by: mab974 on October 20, 2014, 10:00:59 AM
Janet,

Thanks for your answer. I've found another thread where you explained this http://forums.contribs.org/index.php?topic=44653.msg215499#msg215499 (http://forums.contribs.org/index.php?topic=44653.msg215499#msg215499).
I'll look at it soon.
For now, i have modified the fetchmail template to add the '--limit' option to fetchmail. Which option value i get from qmail parameter, so there's no mismatch between them and big mail stay on server.

Regards,