1

Topic: about reject_sender_login_mismatch

Hello

Postfix's main.cf has a feature that is reject_sender_login_mismatch.
I use this feature. But I 'd like to be special mail users which can send any mail despite reject_sender_login_mismatch.

How can I do that ?

Thanks

2

Re: about reject_sender_login_mismatch

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?

3

Re: about reject_sender_login_mismatch

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.