mailcow-dockerized icon indicating copy to clipboard operation
mailcow-dockerized copied to clipboard

[Postfix] Fix DMARC aligment for bounces

Open dragoangel opened this issue 2 years ago • 6 comments

dragoangel avatar Jun 29 '22 18:06 dragoangel

Let's assume MAILCOW_HOSTNAME=mail.example.com, then this settings will change email of bounce from [email protected] to [email protected] and in this case ARC signing will aling checks and DMARC will not fail.

I run mailcow with this setting more then a year and have strict DMARC without issues. @navossoc asked for help and this change fixed his situation when gmail reject bounces due to strick not aligned DMARC. @DerLinkman I sure it safe to apply, but can you please double check in your setup?

dragoangel avatar Jun 29 '22 18:06 dragoangel

Let's assume MAILCOW_HOSTNAME=mail.example.com, then this settings will change email of bounce from [email protected] to [email protected] and in this case ARC signing will aling checks and DMARC will not fail.

I run mailcow with this setting more then a year and have strict DMARC without issues. @navossoc asked for help and this change fixed his situation when gmail reject bounces due to strick not aligned DMARC. @DerLinkman I sure it safe to apply, but can you please double check in your setup?

Is there a way how i can test this?

DerLinkman avatar Jun 30 '22 12:06 DerLinkman

Send email to user which over quotas in imap for example and check what bounce dmarc status will be without this PR and with it :) Note: better send from gmail

dragoangel avatar Jun 30 '22 12:06 dragoangel

Tested:

Before: image

After: image

DerLinkman avatar Jul 05 '22 08:07 DerLinkman

This will change the sender origin to a domain that might be a mailcow domain. I don't really want this. The origin should imo remain the mail host as it is mailer daemon sending the mail. The service accounts belong to the mailcow hostnames fqdn.

This does "fix" dmarc alignment with a strange workaround and might not be wanted.

andryyy avatar Jul 05 '22 08:07 andryyy

Furthermore there are hints to setup dmarc in the config which this PR would not remove or edit.

andryyy avatar Jul 05 '22 08:07 andryyy

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

milkmaker avatar Sep 03 '22 11:09 milkmaker