Postsrsd compatibility with Virtualmin for fixing SPF forwarding issues

SYSTEM INFORMATION
OS type and version debian 12
Webmin version 2.501
Virtualmin version 7.40.0

Hi all,

I’m having a lot of emails rejected due to SPF failures when my server forwards messages to external providers like Gmail. This is the classic forwarding problem.

I’ve identified that Sender Rewriting Scheme (SRS) is the solution, and postsrsd seems to be the standard tool for Postfix.

Before I install it, I need to know:

Is postsrsd fully compatible with a standard Virtualmin setup?

Will Virtualmin overwrite the manual changes I need to make to Postfix’s main.cf and master.cf?

Is there a recommended procedure for integrating postsrsd with Virtualmin to avoid future issues?

I’m looking for the safest way to implement this without breaking my Virtualmin email configuration.

Thanks for any help.

1 Like

@Jamie @Ilia I know you guys are looking at redoing the email system but I think that the time has come for SRS to be added :smiley: , email forwarding is used by a lot of people to foward email from their domains to the free outlook/gmail accounts. I do it all of the time on my other servers because clients do not understand technology but they do have a mobile phone with a gmail account that their kids setup for them.

1 Like

Specifically this guide posted in one of the threads above worked for me.

1 Like

no custom build needed. The “postsrsd” package is in the official Debian repos.

Installing and starting tests now.

Thank you all for the quick and helpful answers. I really appreciate the guidance!