代码之家  ›  专栏  ›  技术社区  ›  Dycey

如何让sendmail在Mac OS 10.5上可靠工作?

  •  0
  • Dycey  · 技术社区  · 16 年前

    我需要在办公室里使用Mac电脑发送的邮件。目前,我可以让它在两个开发macs上工作(我认为这是由于mamp正在安装和工作),但让它继续在其他macs上工作似乎是一个问题…

    我认为这取决于一些配置问题,并希望有某种方法可以解决它(而不必在每台机器上安装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
    
    2 回复  |  直到 10 年前
        1
  •  3
  •   Denis Hennessy    16 年前

    注意,这是你在Mac上运行的后缀,而不是sendmail。

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

        2
  •  0
  •   saravankg Jorge Guberte    10 年前

    啊哈!多谢丹尼斯-这看起来像个猪圈…

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

    我去试试,然后给你回电。