- 论坛徽章:
- 0
|
本帖最后由 piaohua2005 于 2010-11-22 10:26 编辑
Postfix配置如下:
[root@res ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = scan:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 200000000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 20000000
mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain
mydomain =123.com
myhostname = res.123.com
mynetworks = 127.0.0.0/8
myorigin = 123.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
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 = 550
客户端不用验证就能发邮件:怎么强制验证发邮件?
telnet 1.2.3.4 25
[root@res ~]# telnet 1.2.3.4 25
Trying 1.2.3.4...
Connected to localhost.localdomain (1.2.3.4).
Escape character is '^]'.
220 res.123.com ESMTP Postfix
helo a
250 res.123.com
mail from:10086@139.com
250 2.1.0 Ok
rcpt to:root@123.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
kill you!
.
250 2.0.0 Ok: queued as 035D317C96
[root@res ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 res.123.com ESMTP Postfix
ehlo a
250-res.123.com
250-PIPELINING
250-SIZE 20000000
250-VRFY
250-ETRN
250-AUTH LOGIN GSSAPI CRAM-MD5 PLAIN DIGEST-MD5 NTLM
250-AUTH=LOGIN GSSAPI CRAM-MD5 PLAIN DIGEST-MD5 NTLM
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
怎么禁止客户端不经过认证就发邮件啊? |
|