Email alias to send to external email using postSRSd


I have been using postsrsd for some time and just want to share about postsrsd (Postfix Sender Rewriting Scheme daemon).
I hope in future: postsrsd will be add in Nethserver.

Email sent to email alias with recipient of external email, without postsrsd: it may be rejected since it considered not legit’s email from their server.

We co-work with multiple external partner. With postsrsd, I can easily create email alias with their external email address.
In example: L3Partner@MY.EMAIL.DOMAIN with member:

Staff1 and related partner can easily communicate within group with email alias L3Partner@MY.EMAIL.DOMAIN

I installed in manually as below:

yum -y groupinstall "Development tools"
yum -y install gcc-g++ git-core wget links zip unzip unrar
yum -y install cmake
mkdir /root/postsrsd-src
cd /root/postsrsd-src
unzip master
cd postsrsd-master
make install

CREATE Template:

mkdir -p /etc/e-smith/templates-custom/etc/postfix/
vi /etc/e-smith/templates-custom/etc/postfix/

and add below code:

#PostSRSd settings.
sender_canonical_maps = tcp:localhost:10001
sender_canonical_classes = envelope_sender
recipient_canonical_maps = tcp:localhost:10002
recipient_canonical_classes= envelope_recipient,header_recipient

and expand template

expand-template /etc/postfix/

Configure postsrsd

vi /etc/default/postsrsd

and edit as below:


Enable and start postsrsd services

chkconfig postsrsd on
service postsrsd restart

Restart postfix

signal-event nethserver-mail-common-save
service postfix reload
signal-event nethserver-mail-server-update