Rick Duval wrote:
Maybe i'm confused or I haven't explained it correctly. I don't want
to relay mail through the server unless it's by auth sesssion which is
already the case.
I DONT want to ACCEPT mail for my local users UNLESS the connection
delivering it is a specific IP address.
Basically don't accept mail unless its to a local know address (like
normal) AND it cam from IP 1.2.3.4
Unless I'm mistaken the earlier code from Noel is about relaying mail
for outbound sending isn't it?
Rick
I suppose you missed the part about "please don't top post".
Yes, the example I showed will accept mail addressed to local
users only if it arrives from a specific IP. You list those
IPs in a separate file, "/etc/postfix/auth_clients" in the
example. (you can name the file whatever you want, but it must
match the name you specify in main.cf.)
The lookup result I suggested in the auth_clients file is
"permit_auth_destination" which means accept mail for local
users, but don't allow relay access.
Additionally, users who authenticate to your server via SMTP
AUTH are allowed to send mail to either local or off-site
recipients. That's what permit_sasl_authenticated does.
Please spend some time reading the docs.
Here's a good starting place:
http://www.postfix.org/BASIC_CONFIGURATION_README.html
then move on to:
http://www.postfix.org/documentation.html
--
Noel Jones