I want my local users to only be able to send and receive emails from
users on another mail server, I do not want local users to be able to
email eachother. I have not been able to prevent local users from
emailing eahcother. It seems my check_recipient_access is not working.
My logic is as follows:
check_sender_access will allow all emails from "@other-domain"
check_recipient_access will allow all emails to "@other-domain"
check_recipient_access will reject all other emails
Does this look correct?
-----------------------------------------------------
main.cf
-----------------------------------------------------
..
relayhost = 192.168.1.5
..
smtpd_recipient_restrictions =
check_sender_access regexp:/etc/postfix/check_sender_access.regexp,
check_recipient_access regexp:/etc/postfix/check_recipient_access.regexp,
check_relay_domains,
reject_unauth_destination
-----------------------------------------------------
/etc/postfix/check_sender_access.regexp contents:
-----------------------------------------------------
/^...@other-domain\.com$/ OK
-----------------------------------------------------
/etc/postfix/check_recipient_access.regexp contents:
-----------------------------------------------------
/^...@other-domain\.com$/ OK
/.*/ REJECT
First, those regexp's are expensive. Just /@other\-domain\.com$/ will do.
Second, using the OK action in accessmaps will stop all rule processing
after a match. You need to use restriction classes to achieve what you
need.
--
Jussi
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list