Page 1 of 1

Sender Rewriting Scheme (SRS)

Posted: 03 Feb 2019 10:41
by Woger
Hi,
I've been struggling for some time to find out why my mail is blocked by Gmail, Hotmail etc.
I now installed SRS on the server and it seems it solved my problems. As I didn't find any info about installing SRS (postsrsd) on the EFA server I'll tell what I did to make it work.
First: SRS is made to be sure SPF is intact when you forward messages.

FIrst, install the program:
>cd /tmp/
>curl -L -o postsrsd.zip https://github.com/roehling/postsrsd/archive/master.zip
>unzip postsrsd.zip
>cd postsrsd-master/
>yum install cmake (We need cmake to install)
>make
>make install

Then copy the lines inside /usr/local/share/doc/postsrsd/main.cf.ex to /etc/postfix/main.cf
You can simply cat it to your main.cf but I prefer to do it manually so:
>less /usr/local/share/doc/postsrsd/main.cf.ex
>nano /etc/postfix/main.cf (and copy it underneath everything

Check if this comes back with your domain:
>postconf -h mydomain
if not, edit the default config of postsrsd and put in your domain here:
SRS_DOMAIN=example.com

Now enable postsrsd
>service postsrsd start
If no errors reload postfix
>service postfix reload

If all is working you get now strange from addresses in mailwatch, but your mails won't be blocked anymore by Gmail, hotmail etc.

Greetz