Patrick Shanahan wrote:
> I am receiving spam to a local address, "[EMAIL PROTECTED]", which is
> aliased to root and then to me. I would like to limit the receipt of
> mail to that address to only local mail, but do not know how.
I guess you mean "limit sending to these adresses to the local server or
at least the local network.
> I have entered the address in access and header_checks as REJECT, but
> has no affect.
Wrong tool.
The easiest way would be to use a check_recipient_access behind the checks
for trusted machines/users:
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
check_recipient_access hash:/etc/postfix/recipients_internal_only
....
/etc/postfix/recipients_internal_only:
[EMAIL PROTECTED] 554 internal address only
[EMAIL PROTECTED] 554 internal address only
This will block these recipient addresses for all Clients not in your
network (and who do not authenticate to your server). Change the order to
match your needs.
Dont forget to execute "postmap
hash:/etc/postfix/recipients_internal_only" after you change the file.
--
Sandy
List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]