Hello,
I've noticed an issue with CWP's automatic SSL renewal notification emails. Gmail rejects these messages because DKIM authentication is missing.
Environment:
- AlmaLinux 10
- Postfix + OpenDKIM
- CWP LTS and Edge (I've experienced this across different versions).
CWP Settings → Edit Settings:
- Admin Email: external Gmail address.
- Root forwarder: enabled, forwarding system emails to the same Gmail address.
The problem;
When CWP successfully renews an SSL certificate, it sends a notification using the external Gmail address as the visible sender, while the actual envelope sender is the server's local root account.
The headers look like this:
Return-Path: <root@[server-hostname]>
To: [Gmail address]
From: Centos Web Panel <[Gmail address]>
Subject: SSL Certificate renewed
The message has no DKIM signature, and Gmail rejects it with:
550-5.7.30 Your email has been blocked because DKIM
authentication didn't pass.
Postfix then generates a delivery failure notification, which is also forwarded to Gmail and ends up in the spam folder.
On another CWP server, where Admin Email is configured with an address belonging to the server's own domain, everything works correctly:
SPF: PASS
DKIM: PASS
DMARC: PASS
The notification is signed by OpenDKIM and Gmail accepts it.
I've experienced this behaviour with both LTS and Edge, so it doesn't appear to be specific to a particular release.
I think CWP should use an email address belonging to the server's own domain as the sender, while keeping the external Admin Email as the notification recipient.
Is there a way to configure this separately, or could this be addressed in CWP?
I'd prefer to keep receiving system notifications at my external Gmail address without having to modify CWP scripts or compromise email authentication.
Thanks!