Set email headers so bounced emails go to a specific address

后端 未结 5 961
温柔的废话
温柔的废话 2021-01-01 09:01

From our rails app we send out some system-generated emails with the \'from\' address set to noreply@ourdomain.com. If these bounce they get sent back to this address by ou

5条回答
  •  心在旅途
    2021-01-01 09:35

    Errors-To is deprecated, so mail servers will typically ignore this header - most servers will bounce will to the 'envelope sender'.

    This is the email address that your mail client sends as part of the connection to the SMTP server (not necessarily the From address - though it typically is the same).

    I don't know Rails all that well, but I found this - although, as far as I can tell Return-Path is reset by MTAs to match the MAIL FROM information from the client, so it seems you can't actually set it.

    I think the only thing you can do is set the bounce address in your server.

提交回复
热议问题