Trigve Siver a écrit :
> Hi,
> thanks for reply
> 
>> 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".
> 
> As you can see in getmail configuration getmail is calling sendmail. AFAIK if 
> postfix reject the mail (because of too large) sendmail returns error code 
> and so getmail don't delete the mail from ISP and do nothing.
>  
>> 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.
> 
> Yes but my ISP will accept also big messages and I don't want to process 
> messages bigger than 10 MB for instance. Yes the backscatter could be problem 
> but now I have problem that mails bigger than 10 MB will stay on ISP server 
> forever and I can do nothing about it (I can delete it from ISP webmail 
> interface but thi is not a rela solution).
>  

what you could do is run a script that
- checks the message size. if it's too large, store it somewhere for review
- else, run sendmail

in any case, don't bounce without some sort of verification (some
anti-spam checks or a manual review).

If you are willing to do more scripting, consider putting the large
messages on a web server and letting the user get them there. this needs
some work (create random URL, notify user, ... purge after some time,
...).

Reply via email to