2008-11-14 88 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