On Mon, Jun 16, 2003 at 02:29:47PM -0600, Jason R. Mastaler wrote:
> > For my own application, I think the best solution, rather than hack
> > Postfix or TMDA, is just to pipe through formail before tmda-filter.
> 
> OK.  I like the fact that Postfix adds X-Original-To by default, as it
> will make TMDA easier to use for fetchmail/getmail users as their ISPs
> upgrade Postfix.  It's a shame you're forced to use formail however.

I came across another way to do this, albeit one that depends on some scary
fetchmail configuration.

This is to use the "multidrop" feature, wherein instead of delivering all mail
to the user running fetchmail, it is submitted to the local smtp port as-is.
In this mode it does not -- as it otherwise would -- rewrite the envelope
recipient as the local user.

The .fetchmailrc looks like this:

poll mail.foobar.net with proto POP3 localdomains obstruction.com
        user 'guy' password 'secret' to * here


The fetchmail documentation warns against doing this due to the danger of mail
loops, but it could probably be made to work with sufficient care.

This requires a change to the postfix config also.  Postfix's SMTP server
normally returns an error (450 I think) immediately for non-deliverable local
users.  Fetchmail sees the error and aborts retrieval of the message, which
languishes in the ISPs mailbox indefinitely.

So instead we can unset the postfix "local_recipient_maps" parameter, to get
bounce messages instead.


Apologies to all for the digression on fetchmail and postfix setup, we can now
go back to talking about TMDA again.  :-)
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to