OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: relay_recipient_map: default to a local adress instead of reject

From: Magnus Bäck (magnusdsek.lth.se)
Date: Tue Mar 06 2007 - 13:43:39 CST


On Tuesday, March 06, 2007 at 12:10 CET,
     jacusy <jacusygmx.net> wrote:

> I have a mail gateway for an active directory server. I configured
> my linux box to fetch all (?) valid email adresses in format
> blablaexample.com OK
>
> But if I configure postfix to reject every invalid user (and this is
> done by activating the relay_recipient_map), perhaps I reject some
> mail which is valid. So I would like to test the configuration by
> redirecting every rejected mail to my account.

Every message that would have been rejected, you mean.

> But how to implement this? Do I need a line like
> example.com REDIRECT jacusyexample.com
>
> to redirect all invalid users of domain example.com to me in the map
> file (relay_recipients_map)?

No, but a virtual table like this one would do it:

validuser1example.com validuser1example.com
validuser2example.com validuser2example.com
...
validuserNexample.com validuserNexample.com
example.com youexample.com

--
Magnus Bäck
magnusdsek.lth.se