System Engineering

Install SRSd with Postfix on OpenSUSE

Postfix Sender Rewriting Scheme(SRS) daemon

zypper install postsrsd

vi /etc/default/postsrsd
SRS_DOMAIN=xxx.com

vi /etc/postfix/main.cf

inet_interfaces = all
inet_protocols = ipv4
myhostname = smtp.xxx.com
mynetworks_style = subnet
mynetworks = 10.3.0.0/16, 192.168.1.0/24
relay_domains = $mydestination, hash:/etc/postfix/relay
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual

# Aiden: 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

# Aiden: Optimizing
maximal_queue_lifetime = 1d
bounce_queue_lifetime = 1d
maximal_backoff_time = 30m
minimal_backoff_time = 5m
queue_run_delay = 5m

vi /etc/postfix/virtual
@sss.com webmaster@company.com
alert@ttt.com aiden@company.com,tom@company.com
owner@ttt.com jane@company.com

vi /etc/postfix/relay
xxx.com OK
sss.com OK
ttt.com OK

systemctl restart postsrsd
systemctl restart postfix

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.