- 论坛徽章:
- 0
|
postfix+cyrus sasl+extmail+mysql
现在的情况是使用客户端都要smtp认证,但是使用telnet连接服务器的时候发给内部邮箱的时候不认证也能发,就会有自己发给自己的垃圾邮件。
设置了smtpd_client_restrictions = permit_sasl_authenticated,reject之后telnet就好了,但是extmail就不能发了。
现在想请教一下怎么设置postfix能让telnet连接服务器时发给内部邮箱也要认证。
postfix配置文件如下:
broken_sasl_auth_clients = yes
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:89
virtual_mailbox_base = /var/spool/mail/
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 20971520
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 88
virtual_transport = virtual
virtual_uid_maps = static:89 |
|