1. 程式人生 > >magento網站建設,magento模板開發,magento支付模組

magento網站建設,magento模板開發,magento支付模組

又碰到郵件問題,在magento前臺註冊新使用者,下訂單都沒有收到郵件。但是提示都是說正常。

直接在ssh中使用下列命令測試,連線超時:

echo "Subject: test" | /usr/lib/sendmail -v xinhaozheng(at)gmail.com

(注:很多人在測試時直接把命令複製進去測試,導致我收到了N多的測試郵件。)

提示:

WARNING: local host name (server) is not qualified; see cf/README: WHO AM I?
[email protected] Connecting to [127.0.0.1] via relay...

[email protected] Deferred: Connection timed out with [127.0.0.1]

懷疑是ISP封掉了25埠。檢查一下防火牆,暫時關掉iptables,再用這個命令測試,可以通過:

WARNING: local host name (server) is not qualified; see cf/README: WHO AM I?
[email protected] Connecting to [127.0.0.1] via relay...
220 server ESMTP Sendmail 8.13.8/8.13.8; Thu, 29 Apr 2010 03:22:42 +0200
>>> EHLO server
250-server Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<

[email protected]> SIZE=14
250 2.1.0 <[email protected]>... Sender ok
>>> RCPT To:<[email protected]>
>>> DATA
250 2.1.5 <[email protected]>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 o3T1Mg5Z016990 Message accepted for delivery
[email protected]
Sent (o3T1Mg5Z016990 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 server closing connection