Hi there,

I want to let the sender address equal to the log-in name, the following are 
some mainly settings in my main.cf,
smtpd_tls_security_level = may
smtpd_tls_cert_file = /etc/pki/dovecot/certs/mail.example.com.crt
smtpd_tls_key_file = /etc/pki/dovecot/private/mail.example.com.key
smtpd_recipient_restrictions = permit_sasl_authenticated, 
reject_unauth_destination, reject_sender_login_mismatch
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/spool/postfix/private/auth
smtpd_sasl_auth_enable = yes
mailbox_size_limit = 1024000000
message_size_limit = 30720000
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sender_login_maps = hash:/etc/postfix/test

The login_maps link to /etc/postfix/test which contains

t...@example.com        test
buxiaob...@example.com  buxiaobing

Finally I do
postmap test and test.db

Then I begin configure my MUA client to login my postfix mail server, use the 
name "buxiaoing" and the right password, but I set the "EMAIL ADDRESS"/sender 
to t...@example.com
and sent a test mail to my gmail.com mail account, and it still can be received.

Anyone who can give me some advise?

Thanks,
Bu Xiaobing


Reply via email to