2008-11-14 92 views
0

我需要在辦公室的Mac中使用sendmail。目前,我可以在兩個開發Mac電腦上工作(我認爲這是因爲MAMP正在安裝並正在工作),但是將其推向其他電腦似乎是個問題...如何讓sendmail在Mac OS 10.5上可靠地工作?

I假設它是由一些配置問題引起的,並且希望有一些解決辦法可以解決它(不需要在每臺機器上安裝MAMP!)。

我認爲這可能是來自於「本地」性質,但不確定。下面是/var/log/mail.log轉儲如果這是任何幫助:

Nov 14 14:37:06 claire-g5 postfix/master[5339]: daemon started -- version 2.4.3, configuration /etc/postfix 
Nov 14 14:37:06 claire-g5 postfix/qmgr[5341]: 2B625250BDB: from=<[email protected]>, size=1131, nrcpt=1 (queue active) 
Nov 14 14:37:06 claire-g5 postfix/qmgr[5341]: D5D19250D5A: from=<[email protected]>, size=1191, nrcpt=1 (queue active) 
Nov 14 14:37:06 claire-g5 postfix/smtp[5344]: 2B625250BDB: host mx01.xxx.uk[212.x.x.134] said: 451 cannot relay now to <[email protected]>, please try again later (in reply to RCPT TO command) 
Nov 14 14:37:06 claire-g5 postfix/smtp[5346]: D5D19250D5A: host mx01.xxx.uk[212.x.x.186] said: 451 cannot relay now to <[email protected]>, please try again later (in reply to RCPT TO command) 
Nov 14 14:37:07 claire-g5 postfix/smtp[5346]: D5D19250D5A: to=<[email protected]>, relay=mx01.xxx.uk[212.x.x.134]:25, delay=2350, delays=2349/0.08/0.7/0.12, dsn=4.0.0, status=deferred (host mx01.xxx.uk[212.x.x.134] said: 451 cannot 
Nov 14 14:37:07 claire-g5 postfix/pickup[5340]: 1A2EC2511D1: uid=501 from=<claire 

回答

3

注意,那就是你已經在你的Mac,而不是sendmail運行的後綴。

問題是機器mx01.xxx.uk [212.x.x.134]被配置爲阻止郵件轉發(通過SMTP接收電子郵件並將其發送到最終郵件服務器)。後綴配置文件通常存儲在/ etc/postfix中,所以你可以先看看那裏。特別是,看看main.cf中的mynetworks設置。

+0

是的,我意識到在Mac上的sendmail是一個真正的後綴api小部件...所以也許我應該把它放在引號;-) – Dycey 2008-11-14 15:22:42

0

啊哈!感謝丹尼斯 - 這看起來像beasty ...

### MAMP Postfix Configuration - Start ### 

myorigin = example.com 
myhostname = mailer.$myorigin 
smtpd_sender_restrictions = permit_inet_interfaces 

# smart host 
relayhost = auth.example.co.uk 
smtp_sasl_auth_enable = yes 
smtp_sasl_password_maps = hash:/etc/postfix/sasl_MAMP_passwd 
smtp_sasl_security_options = noanonymous 


### MAMP Postfix Configuration - End ### 
# DONT REMOVE: MAMP PRO main.cf template compatibility version: 1 

我給它一個去,並送還給你。

+1

問題是不在claire-g5上,它在mx01上。 – 2008-11-14 16:00:07