[fetchmail]Rejecting large messages when using "sendmail" for delivery

Rob MacGregor Rob MacGregor <rob.macgregor@gmail.com>
Tue, 28 Jun 2005 15:37:23 +0100


On 28/06/05, Ed W <lists@wildgooses.com> wrote:
> I have postfix installed locally and was finding problems with feeding
> mail in via SMTP to do with some spam messages being bounced when I
> really want them accepted and filtered locally as spam.  So I am now
> doing delivery via the "sendmail" commandline app.

Why not look at the anti-spam codes?

> I could use the "-l" option, but this seems to leave the mail on the
> server and send warnings to the recipient.  This is supposed to be used
> in an ISP type environment, so really I would prefer to bounce the
> message back to the orig sender and hence get them to resend it in a
> smaller format.

Looking at the man page, under the "-l option":

Combined with --flush, it can be used to delete oversized messages
waiting on a server. In daemon mode, oversize notifications are mailed
to the calling user (see the --warnings option).

So, you could probably find a way to script the bounce message, but it
may be easier to educate (with a large stick possibly) the people
sending the stupid sized emails :-)

--=20
                 Please keep list traffic on the list.
Rob MacGregor
      Whoever fights monsters should see to it that in the process he=20
        doesn't become a monster.                  Friedrich Nietzsche