January 27, 20233 yr Hi, has someone a solution for SPF when forwarding a mail-address to a external address. For example if i have a address foo@bar.de and this address is forwarding to a address which is not running on my server and someone with @gmail.com sends a mail to foo@bar.de the postfix relaies the mail with the old from address and SPF will fail since my server is not allowed to send mails from @gmail.com My solution would be to rewrite the "envelop from" address to foo@bar.de but i didn't find the right postfix config yet.
January 27, 20233 yr postfix can't do that, you'd need something like this: https://github.com/roehling/postsrsd
February 3, 20233 yr Author Thanks for the information. Does someone has a working configuration for postfix where only mails, which are forwarded, are rewritten ?
February 3, 20233 yr You can have "excludes" on a domain base in postsrsd, maybe even on an address-base, but never checked/needed that. Forwarding emails used to be so simple But yeah, SPF and co make things way harder (as intended somehow)
Create an account or sign in to comment