Results 1 to 1 of 1
Hello all !
I've a problem with postfix
i want make a double restrictions for example :
Relay mail from domaine TOTO.COM and source 10.10.0.0/24
in my config i have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-05-2013 #1Just Joined!
- Join Date
- Feb 2013
- Posts
- 1
Postfix configuration
Hello all !
I've a problem with postfix
i want make a double restrictions for example :
Relay mail from domaine TOTO.COM and source 10.10.0.0/24
in my config i have :
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access
the IP source is OK on file /etc/postfix/access
and
smtpd_sender_restrictions =
check_sender_access hash:/etc/postfix/domain
with domain OK on file /etc/postfix/domain
but the access rules work if one condition is OK, it's not good
So in my case :
IP SOURCE OK + FROM: DOMAIN KO = RELAY
IP SOURCE KO + FROM: DOMAIN OK = RELAY
IP SOURCE OK + FROM: DOMAIN OK = RELAY
i want :
IP SOURCE OK + FROM: DOMAIN KO = REJECT
IP SOURCE KO + FROM: DOMAIN OK = REJECT
IP SOURCE OK + FROM: DOMAIN OK = RELAY
You know how to configure it ?
i dont know if restriction can be write as :
10.10.0.0/24 and toto.com OK
(sorry for my english)
Thanks
safsoundLast edited by safsound; 02-05-2013 at 01:41 PM.


Reply With Quote
