In my server i configured SPF, DKIM and DMARC.
Those record are checked by me sending a test email from my domain to for example Gmail then checking email headers confirm all records are passed.
Recently I discovered that if I use the default myhostname in the file /etc/postfix/main.cf I am able to receive the Delivery Status Notification email only if from my domain I send an email to an inexistent email address for example inexistent Gmail account
[email protected] used also in the Google Guide for explain things.
BUT
from my test if a Gmail account write to an not existent email address of mine, no Delivery Status Notification is delivered to the sender.
Now the Plesk support changed my default myhostname in the file /etc/postfix/main.cf from the default to my domain, the same of my PTR record.
They showed a screenshot where an email sent from Gmail to a not existent email generate the correct Delivery Status Notification.
I'm unable to replicate this as I continue to get no Delivery Status Notification Email.
I discovered that if I change my default myhostname in the file /etc/postfix/main.c to a custom one I never get anymore Delivery Status Notification when I write from my domain to a not existent email address.
A server log say this:
Code:
May 31 01:47:12 peopleinside postfix-local[74857]: 69C4761BCD: dkcheck: stderr: PASS May 31 01:47:12 peopleinside dmarc[74862]: 69C4761BCD: SPF record was not found in Authentication-Results May 31 01:47:12 peopleinside dmarc[74862]: 69C4761BCD: DMARC: smtpdomain= maildomain=peopleinside.it [email protected] stamp=1685490432 ip=unknown adkim=relaxed aspf=relaxed p=REJECT sp=REJECT pct=100 aligndkim=fail alignspf=fail spfres=unknown dkimres=unknown dmarccheck=DMARCPOLICY_REJECT dmarcstatus=STOP
May 31 01:47:12 peopleinside postfix-local[74857]: 69C4761BCD: dmarc: stderr: STOP
May 31 01:47:12 peopleinside postfix-local[74857]: message discarded by a mail handler
So the agent in the ticket said to me the issue was the DMARC record where, the suggestion was: change the DMARC record for the recipient domain. Change "p=quarantine" or "p=reject" to "p=none" at Domains > example.com > DNS Settings.
I set "p=quarantine" but the issue still be the same.
What I can see is the logs say an unknow IP is sending the email.
SPF and DKIM seems fail this can be the cause email are not delivered but I'm asking why this happen.
Why I share this in this discussion?
First for keep it updated.
Seconds because I'm asking if someone else has configured email in Plesk with a valid SPF and with a valid DKIM.
Umh I have also activate greylisting for prevent spam.
I think if a server is configured in this way, maybe some issues with the Delivery Status Notification can happen.
I'm still investigating this with the support by Ticket but I don't know IF I will finally find a solution
I don't know yet.
Looks strange to me I get the Delivery Status Notification only in some case, different if I change the myhostname.
I see also that changing myhostaname never remove fully the default domain from email headers of Delivery Status Notification, this means reading the email headers I found again, somewhere else the default myhostname.
I will try to update here if I found other things.