Forum OpenACS Q&A: Re: Guide to configuring OpenACS to use Postfix

Collapse
Posted by Nick Carroll on
Hi Steve,

The bounce daemon in postfix is enabled by default.  Postfix will reject mail for unknown recipients in local domains.  You could set a regular expression in /etc/postfix/virtual to catch such bounce messages and pass them off to another address.

I'm not sure if I've answered your question, so here are a few resources to look through.

Check out http://www.postfix.org/LOCAL_RECIPIENT_README.html

This site explains why it is better to reject rather than bounce... http://spamlinks.ntek.tk/filter-bounce.htm

As well as postfix configuration parameters... http://www.postfix.org/postconf.5.html

Nick.

Collapse
Posted by Steve Manning on
Nick

Bouncing emails for unknown recipient in the local domain is the default for Exim (and probably most MTA's). It sounds as if your postfix/virtual file might be the answer - you need to direct all mail sent to bounce--* to the mailbox configured in mail-lite.

Exims' equivalent of this - the alias file can't handle wildcards in the same way so I think in Exim I need to define a new transport to direct the email for local delivery.  I will have to get my hands dirty in the config to work this out.

    Steve

Collapse
Posted by Nick Carroll on
Hi Steve,

For handling the bounce emails, you just need to add the following regexp to the postfix/virtual file...

/^bounce-(.*)@hostname\.mydomain\.tld/ service0

Emails that match that regexp will be directed to the Maildir directory for the service0 user.  I believe Mail Lite will scan that directory for bounce- emails.

Hope that helps.

Cheers,
Nick.