/etc/mail/access如下配置
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
Connect:localhost.localdomain RELAY
Connect:localhost RELAY
Connect:127.0.0.1 RELAY
qq.com RELAY
126.com RELAY
#163.com DISCARD
===========================================================================================
启动sendmail和dovecot后,对qq.com和126.com可以正常收发,但是好象SMTP认证机制没有正常起作用,可以通过telnet 改服务器25号端口,然后使用任何一个不存在的邮件帐号对该邮件主机的一个内部帐号发信,该内部帐号都可以收到,但是实际上发信者是个凭空虚构的邮件帐号