pmeerw's blog

May 2022

Tue, 24 May 2022

Sender Rewriting Scheme (SRS) setup

SRS is rewriting an email's envelope sender so that it can be forwarded. Otherwise, the receiving mail server would use the sender's address (from the email's envelope), look up the corresponding SPF record from DNS, and find that the forwarding mail server does not match the legitimate mail servers listed in SPF.

For example, writes to, which is forwarded to a Gmail account. Gmail will likely reject from that email from because the SPF record for does not list

SRS will replace the from address in the email's envelope ( to Note that the From: header in the email is not changed, so the recipient will not see any difference.

Setup for postfix is easy, just install the postsrsd Debian package.

posted at: 16:11 | path: /configuration | permanent link

Made with PyBlosxom