I'm facing a problem with Postfix. I've configured it to send notifications if message delivered, bounced, deferred. I recieve notifications, but some times in logs I get record like this:

1765BA8A0: to=<info@example.com>, relay=mx5.mail.icloud.com[]:25, delay=4.7, delays=0.05/0.01/0.34/4.3, dsn=2.5.0, status=sent (250 2.5.0 Ok.)

And there is no notification from my postfix either relay server. According to status=send the message was delivered, but it's critical for me to receive notification email. Why do I have no notification?

  • You'll have to ask Apple. We have no way of knowing why Apple is not delivering your mail to you. – Michael Hampton Oct 16 '15 at 15:20
  • Despite I get this issue only with Apple, I don't think that they can help me, I guess there is some way to configure Postfix to parse dsn=2.5.0 code as delivered – pupizoid Oct 16 '15 at 15:42
  • What are you talking about? That code means that your mail was delivered successfully. – Michael Hampton Oct 16 '15 at 15:59
  • Please at least show your config to see what you actually configured – sebix Oct 27 '15 at 20:06

Finally I found a solution. Postfix is configured to send delivery notifications in case when relay server does not support DSN, otherwise it would consider the relay server to send it. In my case iCloud MX servers replys that they provide DSN service so postfix do nothing in that way, and the problem was that iCloud servers acted in the same way.

So I decided to discard DSN keyword in EHLO returned by iCloud servers, to do this I added following row in my postfix config

smtp_discard_ehlo_keyword_address_maps = cidr:/etc/postfix/esmtp_access

and create file with list of subnets that iCloud uses to send emails:

# File /etc/postfix/esmtp_access          dsn          dsn          dsn          dsn          dsn          dsn

so now postfix does not recieve DSN keyword and send DSN notification by itself

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.