How do I get sendmail to work reliably on Mac OS 10.5?

I need to use sendmail from Mac computers in the office. At the moment I can get it to work on two development masks (which I think has to do with the fact that MAMP is installed and running), but getting it to work on others seems to be a problem ...

I'm guessing there are some configuration issues, and I hope I can fix it somewhere (without having to install MAMP on every machine!).

I think it might be "local" in nature, but not sure. Here's a dump of /var/log/mail.log if it helps:

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

      

0


source to share


2 answers


Note that this is a postfix you have running on your mac, not sendmail.



The problem is that machine mx01.xxx.uk [212.xx134] is configured to block mail relay (accepting e-mail via SMTP and sending it to the destination mail server). Postfix configuration files are usually stored in / etc / postfix, so you can start looking there. Specifically take a look at the mynetworks setting in main.cf.

+3


source


Aha! Thanks to Denis - it looks like bliss ...

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

      



I will give it and return to you.

0


source







All Articles