fetchmail/postfix - bounce message if it is too big
I have an Ubuntu mail server that retrieves mails from ISP by fetchmail
and delivers it through amavis and postfix.
Postfix has a size limit of about 20MB. Mails larger than this are removed
from server, but have been silently deleted so far, because
/etc/fetchmailrc had no definition for postmaster and contained "set no
bouncemail".
I'd like to inform the sender about the rejected mail. But the comment for
"set no bouncemail" ("Avoid loss on 4xx errors.") makes me think it could
be dangerous or unwise to change it into "set bouncemail". How should this
comment been understood?
Is there any way to customize that bounce message? It appears to originate
from "Mail" and contains a couple of local information that seems to be
useless for the sender of the too large message.
On further thinking it seems to be silly to download such large messages,
process and then bounce them. fetchmail has an option to limit the size of
messages to be downloaded, but I cannot figure out how to send a bounce
message in this case (and the message stays on server). Is there any way
to do the trick?
No comments:
Post a Comment