Zimbra 8 Restrict Posfix Senders?
What is the best way to restrict postfix senders in Zimbra 8 so that users cannot send using a FROM address other than their own?
I've tried modifying the instruction here:
RestrictPostfixSenders - Zimbra :: Wiki
By using zmlocalconfig -e postfix_<variable_name>=<value>
To set the values (since main.cf) doesn't exist in Zimbra 8. When I look at the posfix configuration, it appears correct, but testing has proven that it is not blocking faked FROM addresses.
Any help is appreciated.
What am i doing wrong here
I have added This on zmconfigd.cf
I already had rest of file from previous installation(before upgrade)
POSTCONF smtpd_sender_restrictions FILE zmconfigd/smtpd_sender_restrictions.cf
POSTCONF smtpd_sender_login_maps FILE zmconfigd/postfix_sender_login_maps.cf
zimbra@mail:~/conf$ cat zmconfigd/postfix_sender_login_maps.cf
Used Swaks to sent mail and the authenticated user was able to sent email out with spoofed domain part..
zimbra@mail:~/conf$ cat /opt/zimbra/conf/ldap-restricrelay.cf
server_host = ldap://mail.mycompany.com:389 >----- Doman Hidden i have place the actual domain here
server_port = 389
query_filter = (&(|(uid=%s)(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=%s)(zimbraMailCatchAllAddress=%s))(zimbraMailStatus=enabled))
result_attribute = uid,zimbraMailDeliveryAddress,zimbraMailForwardingAddress,zimbraPrefMailForwardingAddress,zimbraMailCatchAllForwardingAddress
version = 3
start_tls = yes
tls_ca_cert_dir = /opt/zimbra/conf/ca
bind = yes
bind_dn = uid=zmpostfix,cn=appaccts,cn=zimbra
bind_pw = <password> >--- Password hidden, I have place the right one
timeout = 30
Now i am lost why isn't it working.. If you could explain what i did wrong it would be really helpfull. This small config has kept my server clean for 8 months. Upgraded yesterday already spam attack has happened...
smtpd_sender_login_maps = hash:/opt/zimbra/conf/exceptions-db, ldap:/opt/zimbra/conf/ldap-restricrelay.cf