Quote:
|
can i restrict only by the domain?
|
Yes. I suppose you mean the domain which is the reverse lookup of the connection IP.
You'll need to have something like
Code:
smtpd_recipient_restrictions =
permit_mynetworks
check_client_access hash:/etc/postfix/access_clients
reject_unauth_destination
This will allow anyone in
mynetworks and domains listed in access_clients to send mail anywhere.
See postconf(5) for details. Also take a look at access(5) for access table formats.
I don't see a need to modify
mynetworks.