0

Out of office mails works internally but externaly the logs says : - it goes out of Exchange 2010 to go to Postfix (without any sender), - Postfix sends it out to the sender without any sender - the destinator bounces it back with the error " status=bounced (host gmail-smtp-in.l.google.com[173.194.76.26] said: 550 Requested action not taken: mailbox unavailable (in reply to MAIL FROM command))"

The RFCs say that out of office mails and other MDNs should be sent with an empty sender. Since Exchange 2010 (or 2007?), that is what it is done.

The problem is that at least Gmail and Hotmail refuse those mails:

status=bounced (host gmail-smtp-in.l.google.com[173.194.76.26] said: 550 Requested action not taken: mailbox unavailable (in reply to MAIL FROM command))

Internet says that we can't add a sender to those out of office mails in Exchange 2010. There are transport rules but they can't add "From" attribute in header, and email rewriting but... Its like asking me to write a big book in chinese while I just want to have a "cool" chinese character on my arm.

My luck is that my exchange sends mail via a postfix server (Internet -> Postfix -> Exchange) and that we can add sender to mails with postfix.

What I understand is that I can replace things like "*@mydomain.com" to a single static mail address, always the same, that I can choose like "mailer@myStylishDomainName.com" but what I would like to do is add the real sender mail address to the "from". And I would like to do this only if it is a "automatic reply" kind of mail.

How could I add a "from" value to my out of office mails so that gmail and other external mail servers accept my MDNs please?

Update 1 : in addition ton DKIM/DMARC, I saw those roads :

  • fill in external postmaster

You can configure and manage the external postmaster address. The external postmaster address is used as the sender for system-generated messages and notifications sent to message senders that exist outside the Microsoft Exchange Server 2010 organization. An external sender is any sender that has an e-mail address that contains a domain not defined in the list of accepted domains for the Exchange 2010 organization.

https://docs.microsoft.com/en-us/previous-versions/office/exchange-server-2010/bb430765(v=exchg.141)

  • change OOF mails format from TNEF to something else: it is possible to avoid TNEF for "normal" mail but I don't know how to force OOF mails to be sent in usual MIME type

Update 2 : if I remove the Postfix MTA in between my Exchange and the Internet, Out of office mails are sent and received/accepted by Gmail because they do have a Return-Path and a From. So it must be Postfix that is messeing with this.

Philipili
  • 23
  • 1
  • 9
  • I think external postmaster address could be used for DSN, in my testing OOF would not use this. – Shaw Lu Apr 26 '19 at 09:36
  • I could be used but it will not be used? Why do you point this then? By the way, I tried to set the external postmaster but, indeed, OOF don't use it. Do you have any other information? – Philipili Apr 29 '19 at 12:22
  • I’m afraid it cloud not change the blank sender“<>” for OOF message. Maybe it could try to create an rule with an OOF message template. https://support.office.com/en-us/article/use-rules-to-create-an-out-of-office-message-9f124e4a-749e-4288-a266-2d009686b403 – Shaw Lu May 02 '19 at 09:40
  • It works only when Outlook is opened (client rule) :D So, this is not a good solution. Thank you anyway :) – Philipili May 02 '19 at 11:24

1 Answers1

0

In my research, it seems related to “Return-Path <>” is empty for MDM notification. It is by default in RFC. I found this related case, maybe you could check the SPF and DKIM policy.

Shaw Lu
  • 339
  • 1
  • 4
  • Thank you for your answer. I already had the SPF but added DKIM and DMARC but it seams to still throw the same error. – Philipili Apr 23 '19 at 11:17