hi, all, I'v installed postfix with sasl authentication successfully, it seems work well: the client can not use postfix server to send mail if the client can not pass smtp authentication, this is what i expected. but when i config my client not use smtp authentication, it still can send mail by the postfix server!(on client: if i choose to use smtp authentication, i must enter the correct username and password, but if i do not chose to use smtp authentication, it can send mail without authentication.)
my test client is kmail
my server is redhatlinux 9+cyrus sasl2+ postfix2.0.4
i do the above test on the same pc(the client and the server both on a same machine)
my main.cf is as below:
#postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, postfix.$mydomain
mydomain = mydomain.com
myhostname = test.mydomain.com
mynetworks = 127.0.0.0/8, 10.167.34.0/24, hash:/etc/postfix/access
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /etc/postfix/readme_files
relay_domains = $mydomain
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 450
any help will be appreciated!
There are only 10 types of people in the world: Those who understand binary, and those who don't
my test client is kmail
my server is redhatlinux 9+cyrus sasl2+ postfix2.0.4
i do the above test on the same pc(the client and the server both on a same machine)
my main.cf is as below:
#postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, postfix.$mydomain
mydomain = mydomain.com
myhostname = test.mydomain.com
mynetworks = 127.0.0.0/8, 10.167.34.0/24, hash:/etc/postfix/access
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /etc/postfix/readme_files
relay_domains = $mydomain
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 450
any help will be appreciated!
There are only 10 types of people in the world: Those who understand binary, and those who don't