Email forwarding fails SPF

Bug Report Template


When configuring a mailbox to forward mail, it uses the senders address to do so, meaning that SPF alignment / DKIM fails, resulting in emails undelivered.

Is it possible to change the forwarding configuration to forward these emails from the servers email address to avoid this?

Forwarded emails are restamped using PostSRSd. This feature is dependent upon mail_enabled set to true, which can be toggled with cpcmd scope:set mail.enabled true.

The Return-Path is rewritten to the server hostname, which passes SPF/DKIM alignment checks. Related to your other post, SPF domain alignment mismatch - #9 by AptHeart.