OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: /etc/aliases woth transport for same domain?

From: Neil Wilson (neilwdcdata.co.za)
Date: Wed Aug 22 2007 - 10:19:20 CDT


Mouss you a machine, thank you so much!

Neil

mouss wrote:
> since you disabled local transport, /etc/aliases is not used at all.
>
> enable local_transport and set
>
> mydestination = localhost, localhost.$mydomain
> local_recipient_maps = $_alias_maps
>
>
> Then in virtual_alias_maps, put mappings like
>
> allstafflists.blabla.co.za fooexample.com, allstafflocalhost
>
> now mail to allstafflists.... will be sent to fooexample.com and to
> allstafflocalhost. The latter is a local address (see mydestination) so
> will trigger the /etc/aliases.
>
>
> The setup above will make localhost and localhost.$mydomain local and
> thus acceptable. you can add a check_recipient_access to reject mail to
> these via smtp.
>
> smtpd_sender_restrictions =
> check_recipient_access hash:/etc/postfix/block_localhost
>
>
> == block_localhost:
> localhost REJECT unknown domain (localhost)
> localhost.blabla.co.za REJECT unknown domain (localhost.blabla...)
>
> PS. This assumes the default smtpd_delay_reject=yes. the reason why it
> is under smtpd_sender_restrictions is that this will avoid opening a
> (relay) hole should you put a OK in the map (accidentally or not).

--
This email and all contents are subject to the following disclaimer:
http://www.dcdata.co.za/emaildisclaimer.html