我需要在办公室使用Mac上的sendmail。目前,我可以让它在两台开发Mac上工作(我认为这是由于MAMP正在安装和工作),但是让它继续下去似乎是一个问题......

我认为这是一些配置问题,并希望有一些方法可以修复它(不需要在每台机器上安装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=<claire@claire-g5.local>, size=1131, nrcpt=1 (queue active)
Nov 14 14:37:06 claire-g5 postfix/qmgr[5341]: D5D19250D5A: from=<claire@claire-g5.local>, 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 <xx@xx.com>, 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 <xx@xx.com>, please try again later (in reply to RCPT TO command)
Nov 14 14:37:07 claire-g5 postfix/smtp[5346]: D5D19250D5A: to=<xx@xx.com>, 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
有帮助吗?

解决方案

请注意,它是您在mac上运行的后缀,而不是sendmail。

问题是机器mx01.xxx.uk [212.x.x.134]配置为阻止邮件中继(通过SMTP接受电子邮件并将其发送到最终邮件服务器)。后缀配置文件通常存储在/ etc / postfix中,因此您可以从那里开始查看。特别是,请查看main.cf中的mynetworks设置。

其他提示

啊哈哈!谢谢丹尼斯 - 这看起来像是烧钱......

### 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

我会试一试,然后再回复你。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top