根据外国教程:ISP-style Email Service with Debian-Sarge and Postfix 2.1
在TELNET LOCALHOST 25时发送邮件正常,但用FOXMAIL发送就出现问题了,
501 Bad address syntex
配置:
#####
main.cf
#####
inet_interfaces = all
myhostname = sim.host.tsl
mydestination = host.tsl
mynetworks = 172.16.0.0/18
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = no
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
########
smtpd.conf 位于/USR/LIB/SASL2/ 同时做了软链接到/etc/sasl/
########
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login cram-md5 digest-md5
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: provider_admin
sql_passwd: test
sql_database: provider
sql_select: select password from users where email='%u@%r'
log_level: 7
###
/var/log/mail/warnings日专报错
Sep 25 18:14:16 sim postfix/smtpd[1820]: warning: Illegal address syntax from unknown[172.16.0.108] in MAIL command: root@172.16.0.110
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论