Hi everybody and a happy new year!
We currently have a problem with our mail server, the situation is as follows:
- We are using an OpenEMM server running on CentOS 5.7 to send newsletters to our clients. The server uses sendmail for outgoing mail
- Sendmail is configured to relay e-mails by our company's mail server using SASL Auth. The company mail server is running postfix.
This setup is working so far, e-mails sent by our OpenEMM server are relayed and delivered to the final recepient - No problem here.
However, for non-existing recepients, postfix will not send any non-delivery notification back to sendmail - And that's our problem.
For testing, we sent e-mails from our OpenEMM server by commandline to an invalid e-mail address:
Code:
echo "This is a test" | sendmail -fnews@news.our-emmserver.com foo@bar.invalid
On our company mail server (Postfix) this will produce the following log:
Code:
Jan 7 06:17:41 mail postfix/cleanup[5156]: 03062156CC28: message-id=<201201070517.q075HVfT010764@www3.our-company.com>
Jan 7 06:17:41 mail postfix/qmgr[3367]: 03062156CC28: from=<news@news.our-emmserver.com>, size=750, nrcpt=1 (queue active)
Jan 7 06:17:42 mail postfix/smtp[5157]: 03062156CC28: to=<foo@bar.invalid>, relay=none, delay=1.4, delays=1.3/0.01/0.11/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=bar.invalid type=A: Host not found)
Jan 7 06:17:42 mail postfix/bounce[5159]: 03062156CC28: sender non-delivery notification: 16E22156CC2A
Jan 7 06:17:42 mail postfix/qmgr[3367]: 03062156CC28: removed
This case works as it should. Bounce sends a non-delivery notification back to our EMM server which can be received and processed.
When sending by EMM however, the log is slightly different:
Code:
Jan 7 05:18:14 mail postfix/cleanup[4077]: F3FCD156CC28: message-id=<20120107121736-1.1.c.7.0.97lfw7777k@openemm.invalid>
Jan 7 05:18:14 mail postfix/qmgr[3367]: F3FCD156CC28: from=<news@news.our-emmserver.com>, size=2071, nrcpt=1 (queue active)
Jan 7 05:18:14 mail postfix/smtp[4078]: F3FCD156CC28: to=<foo@bar.invalid>, relay=none, delay=1.3, delays=1.3/0/0.02/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=bar.invalid type=A: Host not found)
Jan 7 05:18:14 mail postfix/qmgr[3367]: F3FCD156CC28: removed
In this case, Postfix won't send any non-delivery notification, and we can't figure out why.
I'm also attaching the relevant parts of the Sendmail logs on the EMM server:
By commandline:
Code:
Jan 7 13:17:34 www3 sendmail[10764]: q075HVfT010764: to=foo@bar.invalid, ctladdr=news@news.our-emmserver.com (0/0), delay=00:00:03, xdelay=00:00:01, mailer=relay, pri=30015, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q075HX8e010765 Message accepted for delivery)
By OpenEMM (note there is no ctladdr in this case - maybe that's the problem?):
Code:
Jan 7 12:18:15 www3 sendmail[10500]: 2900T1f1d00000003: to=<foo@bar.invalid>, delay=00:00:39, xdelay=00:00:04, mailer=relay, pri=0, relay=mail.our-company.com. [xxx.xxx.xxx.xxx], dsn=2.0.0, stat=Sent (Ok: queued as F3FCD156CC28)
We've already spent days trying to figure out a solution, but the problem still exists. Maybe somebody can point us into the right direction?
Many thanks & best regards,
Andy