Hi,
You could modify something like this below to suit your needs. This
checks mail being received by your server against a list of domains /
users for whom you receive mail and either rejects or permits it.
/usr/local/etc/postfix/main.cf:
smtpd_restriction_classes = restrictive, permissive
restrictive = reject
permissive =
reject_unknown_sender_domain .....
permit
smtpd_recipient_restrictions =
check_recipient_access hash:/usr/local/etc/postfix/recipient_access
permit_mynetworks
reject_unauth_destination .....
/usr/local/etc/postfix/recipient_access:
[EMAIL PROTECTED] permissive
[EMAIL PROTECTED] restrictive
Hope this helps.
--
Joseph
On Thu, 23 Nov 2006, Mark Tinka wrote:
Hi all.
Haven't tried this with Postfix so would appreciate some ideas:
Is there a way I can configure Postfix to check that a sender
(source domain) is handled by us (perhaps through a file that
contains all domains for our customers) during MAIL FROM and/or
RCPT?
I know this works in Exim with the 'domainlist source_domains ='
directive, but can't seem to find the equivalent for Postfix.
I came across...
smtpd_sender_restrictions = reject_unknown_sender_domain
... which seems to suggest verifying the source domain based on
global DNS A and MX records. I am more interested in a more
specific search, say, a local access file listing all customer
domains.
All help appreciated.
Cheers,
Mark.
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
The above comments and data are owned by whoever posted them (including
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------