安裝postfix成功后,telnet localhsot 25 失敗
啟動 postfix后
telnet localhost 25
# telnet 192.168.0.121 25
Trying 192.168.0.121...
Connected to mail.test.com (192.168.0.121).
Escape character is '^]'.
220 Welcome to our mail.test.com ESMTP,Warning: Version not Available!
日誌
Jul 18 12:56:48 sxy postfix/smtpd: connect from sui
Jul 18 13:01:56 sxy postfix/smtpd: timeout after CONNECT from sui
Jul 18 13:01:56 sxy postfix/smtpd: disconnect from sui
# vi /etc/postfix/main.cf
myhostname = mail.test.com
mydomain = test.com
myorigin = test.com
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 192.168.0.0/28, 127.0.0.0/8
broken_sasl_auth_clients = 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_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!
######################## Virtual Mailbox Settings ########################
virtual_mailbox_base = /mail/mailbox
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_uid_maps = static:2525
virtual_gid_maps = static:2525
virtual_transport = virtual
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1
########################## QUOTA Settings ########################
message_size_limit = 20971520
virtual_mailbox_limit = 209715200
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message =
Sorry, the user's maildir has overdrawn his diskspace quota,
please Tidy your mailbox and try again later.
virtual_overquota_bounce = yes
############################# cliet reverse #########################
disable_client_dns_lookup = 1
# cat /etc/hosts如下:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 sxy localhost.localdomain localhost
配置基本就這些,怎麼就不能telnet localhost 25????
[ 本帖最後由 zuxi_sui 於 2008-7-18 14:26 編輯 ]
《解決方案》
原帖由 zuxi_sui 於 2008-7-18 13:40 發表 http://bbs.chinaunix.net/images/common/back.gif
啟動 postfix后
telnet localhost 25
# telnet 192.168.0.121 25
Trying 192.168.0.121...
Connected to mail.test.com (192.168.0.121).
Escape character is '^]'.
220 Welcome to our mail.test.com ...
這不是已經telnet成功了么?
《解決方案》
220 Welcome to our mail.test.com ESMTP,Warning: Version not Available!
成功呀
《解決方案》
在log/message看到如下:
Jul 18 14:21:22 sui postfix/smtpd: sql_select option missing
Jul 18 14:21:22 sui postfix/smtpd: auxpropfunc error no mechanism available
《解決方案》
看到論壇里的帖子telnet localhost 25是如下的:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.benet.org ESMTP Postfix
ehlo mail.benet.org
250-mail.benet.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:root@benet.org
250 2.1.0 Ok
rcpt to:redhat@benet.org
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject:Mail test!
Mail test!!!
.
250 2.0.0 Ok: queued as AB94A1A561
quit
221 2.0.0 Bye
Connection closed by foreign host.
---------------------------------------------》
而我這輸出很少,而且一直都停在那裡。
《解決方案》
是不是在安裝在撥號上網環境內的一台測試機器上,需要做個dns?否則連測試都不行?在線等
《解決方案》
ehlo mail.benet.org
這行是輸入的
《解決方案》
原帖由 zuxi_sui 於 2008-7-18 14:31 發表 http://bbs.chinaunix.net/images/common/back.gif
是不是在安裝在撥號上網環境內的一台測試機器上,需要做個dns?否則連測試都不行?在線等
不需要DNS也沒關係的!
《解決方案》
原帖由 zuxi_sui 於 2008-7-18 13:40 發表 http://bbs.chinaunix.net/images/common/back.gif
啟動 postfix后
telnet localhost 25
# telnet 192.168.0.121 25
Trying 192.168.0.121...
Connected to mail.test.com (192.168.0.121).
Escape character is '^]'.
220 Welcome to our mail.test.com ...
220 Welcome to our mail.test.com ESMTP,Warning: Version not Available!
輸入:
ehlo mail.test.com
《解決方案》
哈哈,徹底暈倒,謝謝