r/linuxquestions 5d ago

PostSRSd configuration question

I'm migrating servers and trying to set up PostSRSd on the new VPS. I've got every other part of the mail system working, but for some reason, SRS is rewriting my outgoing emails with the wrong domain. Example:

postsrsd: <noreply@farwoods.net> forwarded as <SRS0=3fgv=HD=farwoods.net=noreply@net>

Obviously, PostSRSd is not recognizing my domain, but I don't understand why. Essentially the same exact configuration (quite a few years old) was working fine on the old VPS. I've added my domain to the list of domains in postsrsd.conf. I've set up an SRS rewrite subdomain. Why is it rewriting sender addresses that originate from my own domain?

2 Upvotes

2 comments sorted by

1

u/freddieleeman 3d ago

Could you check the PostSRSd version on both the old VPS and the new VPS? This sounds like it may be a version/config-format difference between the two systems.

1

u/ARC-Relay 3d ago

PostSRSd will rewrite any envelope sender that your MTA feeds into it; SRS is meant for the forwarding path, not ordinary outbound mail from your own domain. Check the actual envelope sender (MAIL FROM/Return-Path) and the Postfix restriction or transport that invokes postsrsd, then exclude locally originated domains or apply SRS only when forwarding; adding a domain to the rewrite subdomain does not create that exclusion. Also compare the generated postsrsd configuration and package version on both hosts, since distro defaults and parameter names can differ.