Hi,
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:
-
local email address: Staff1@MY.EMAIL.DOMAIN and
-
external email address: partner1 at gmail.com, partner2 at yahoo.com, partner3 at outlook.com, partner4 at aol.com
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
wget https://github.com/roehling/postsrsd/archive/master.zip
unzip master
cd postsrsd-master
make
make install
CREATE Template:
mkdir -p /etc/e-smith/templates-custom/etc/postfix/main.cf
vi /etc/e-smith/templates-custom/etc/postfix/main.cf/90extra_options
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/main.cf
Configure postsrsd
vi /etc/default/postsrsd
and edit as below:
SRS_DOMAIN = MY.EMAIL.DOMAIN
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