Page 1 of 1

Want to remove fetchmail size limit...

Posted: 29 Apr 2007, 18:25
by dsp76
... so I read through the Fetchmail man page but didn't understand fully. One option is called limit, but I don't know the syntax to put it into /etc/fetchmailrc ... (I don't want to limit the size at all).

Would:
with limit 0
under the poll line be correct?

No its not....

I also tried to add a line

Code: Select all

set limit 0
... but this didn't work either due to wrong syntax.

dsp

Posted: 30 Apr 2007, 02:49
by tor
Hi dsp76,

Could you try to add this as

Code: Select all

user test with password "test" is test@xxxxxxxxxxx here options limit 0
And see if that works?

/Tor

Posted: 30 Apr 2007, 18:13
by dsp76
Hi Tor,
If I also wanted to use SSL, is this the correct line?

Code: Select all

user '[email protected]' there with password 'password' is 'bubba-user' here ssl and options limit 0
dsp

Posted: 01 May 2007, 14:40
by tor
Hi again,

Im not an expert here but i think it should read:

Code: Select all

user '[email protected]' there with password 'password' is 'bubba-user' here options ssl limit 0
/Tor

Posted: 03 May 2007, 05:19
by dsp76
Hi tor,
okay I will try - looks like both syntax don't cause any syntax problems... (hopefully it will work now).

dsp

Posted: 20 May 2007, 08:22
by dsp76
Hi,
unfortunately the suggested syntax won't work ... fetchmail doesn't retrieve anything. Looks like it doesn't even run (but can't find any hints in the logs). Last message was that it restarted after I changed the /etc/fetchmailrc file...

But where is the size limited, if not in the fetchmailrc file itself? Can't I remove it there instead of switching it off in fetchmail?

greetings
dsp

[update] with /etc/init.d/fetchmail restart ... the Daemon works again, but still bounces the oversized mail.... Help is appreciated...

[2nd update] actually, the error in the mail.log is thrown by postfix... does it mean, also the smtpd has a max limit on bubba? where can I remove this one?


This is what postfix tells me about limits:
bubba:/etc# postconf|grep size
berkeley_db_create_buffer_size = 16777216
berkeley_db_read_buffer_size = 131072
body_checks_size_limit = 51200
bounce_size_limit = 50000
header_size_limit = 102400
mailbox_size_limit = 0
message_size_limit = 10240000
Looks like the maximum message size is about 10MB. It seems not to be set in /etc/postfix/main.cf ...

dsp

Posted: 23 May 2007, 08:39
by johannes
Sorry for jumping in here a bit late, but this made me curious.

Can you please let me know how the error log looks like? Also, how large emails get rejected, if you know? And; are they bounced back to the sender (as opposed as when fetchmail just refuses to fetch them)?

Thanks

Posted: 24 May 2007, 10:08
by dsp76
Hi,
this is the related error:

Code: Select all

May 20 12:21:15 bubba fetchmail[1256]: SMTP error: 552 Message size exceeds fixed limit
May 20 12:21:15 bubba fetchmail[1256]: mail from FETCHMAIL-DAEMON@bubba bounced to [email protected]
Basically the mail dissapears into nothing. I think the bounce email doesn't go out due to this bug regarding the missing option for authentication of SMTP.

I interprete the errormessage, that the size limit comes from the SMTP Postfix service inside bubba wanting to deliver to my bubba mailbox, instead of the fetchmail service... So the message gets fetched correctly, but can't be delivered to the local mailbox? So it gets bounced (which doesn't work correctly either).

dsp76

Posted: 24 May 2007, 13:13
by johannes
Ok, try adding the line:

Code: Select all

message_size_limit = 20480000
Or whatever size you would like to /etc/postfix/main.cf. That should do it. You could of course use postconf to add that setting as well.

[Edit] Don't forget to reload the postfix settings as well.

Code: Select all

postfix reload
The default maximum size seems to be about 10 MByte.