|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Neil Wilson (neilw
dcdata.co.za)
Date: Wed Aug 22 2007 - 10:19:20 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
>
> allstaff
lists.blabla.co.za foo
example.com, allstaff
localhost
>
> now mail to allstaff
lists.... will be sent to foo
example.com and to
> allstaff
localhost. 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
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]