Trigve a écrit : > Hi, > I'm using getmail (using cron) for fetching the mails (from the ISP server) > and > then letting postfix to manage them. In postfix I have set > "message_size_limit" > to 10 MB. So when getmail retrieve the message (that is bigger than 10 MB) > and > send it to postfix (thought sendmail), sendmail returns the error and the > error > appear in the log (something like file too big, see the log output). So the > message isn't processed, no "bounce" is generated and the messages will stay > server so in the "next round" of getmail
This is suspicious. sendmail doesn't return an error to getmail, so getmail should think the message was processed. in short, there should be no "next round". > fetchm this procedure repeat until I > externally delete the mail from server. So my question is if it is possible to > generate some bounce message if mail is bigger than 10 MB (mail exceed > message_size_limit)? > since the message was already accepted by one of your servers, it is too late to generate a bounce, because this will cause backscatter (if the sender is forged). in short, you need to accept such messages since your ISP/MSP accept them. > Log: > -------- > 2009-05-23 00:00:01 Initializing MultidropPOP3SSLRetriever:[MAIL OMITTED]:995: > May 23 00:00:52 mailwork postfix/postdrop[73013]: warning: uid=5003: File too > large > May 23 00:00:52 mailwork postfix/sendmail[73012]: fatal: [MAIL OMITTED](5003): > message file too big > 2009-05-23 00:00:52 Delivery error (command sendmail 73012 error (75, > postdrop: > warning: uid=5003: File too large > sendmail: fatal: [MAIL OMITTED](5003): message file too big)) > 2009-05-23 00:00:52 msg 1/1 (12945705 bytes) msgid UID27053-1188378705 from > <[MAIL OMITTED]> to <[MAIL OMITED]> > > getmail config (server, login, ... omitted): > -------- > [retriever] > type = MultidropPOP3SSLRetriever > envelope_recipient = X-Original-To:1 > [destination] > type = MDA_external > path = /usr/local/sbin/sendmail > arguments = ("-f %(sender)","-t","%(recipient)") > user = getmail > group = getmail > [options] > verbose = 2 > delete = true > message_log = /var/log/maillog > > thanks Trigve >