ZhangHuangbin wrote:How about add "check_client_access hash:/etc/postfix/xxxxx" before "reject_sender_login_mismatch"?
Or do you prefer to lookup them via MYSQL/LDAP?
I added following line in main.cf
smtpd_client_restrictions = check_client_access hash:/usr/local/etc/postfix/clientaccess
cat /usr/local/etc/postfix/clientaccess
smtp.domain1.com OK
smtp.domain2.com OK
smtpd_sender_login_maps = hash:/usr/local/etc/postfix/smtpd_sender_login_maps
smtpd_sender_restrictions = permit_mynetworks, smtpd_sender_login_maps hash:/usr/local/etc/postfix/smtpd_sender_login_maps, reject_sender_login_mismatch, permit_sasl_authenticated
cat /usr/local/etc/postfix/smtpd_sender_login_maps
@smtp.domain1.com deneme@smtp.domain2.com
@smtp.domain2.com deneme@smtp.domain2.com
Namely I want deneme@smtp.domain2.com to able to send any mails to everywhere even be sender address is orijinal@smtp.domain1.com despite reject_sender_login_mismatch.
Also I see proxy:mysql:/usr/local/etc/postfix/mysql_sender_login_maps.cf in the main.cf
But when I open mysql_sender_login_maps.cf I can't see any tables or fields about senderloginmaps in vmail database.