cPanel as a relay and DKIM
AnsweredHello!
I have a cPanel server (cpanel.domain.tld) that serves domain.tld, thus sending from whatever@domain.tld to another@gmail.com works great, all is green, DKIM is OK.
Now this domain.tld is used primarily from a local MS Exchange server and this MS Exchange server relays the mails to cpanel.domain.tld (with adding the Exchange's IP to /etc/alwaysrelay and other places).
All is fine except the DKIM, because in this setup (Exchange with whatever.domain.tld as from -> cpanel.domain.tld -> another@gmail.com) for some reason DKIM is not added to the mail. It should be added by cPanel because Exchange is not capable...
So my question is how to enable DKIM in a cPanel environment so that a server on the net could use this cPanel server's SMTP (with relaying) but also do DKIM signing?
Thank you,
Dan
-
Not sure if it is possible (without massaging stuff in the exim configuration) to have cPanel DKIM-sign an unauthenticated, relayed email.
If it were me, I'd just install opendkim on some linux box, set it up to DKIM sign for the domain in question, and relay the traffic through that server. I did that for years with a CentOS server, running Sendmail, with OpenDKIM installed and signing mails being relayed through it. That was back in ancient days when we were using Imail on Windows for legacy customers and there was no DKIM support. All the outbound mail from the Imail server was passed through the machine running OpenDKIM and Sendmail, and that machine was set up to DKIM-sign every domain that we had active on the Imail server. Worked well.
Considering how little it costs to spin up a droplet at Digital Ocean or some other place, that's what I would do.
0 -
Thanks mtindor!
You are probably right there!
I have ended up using SMTP AUTH instead and all became fine but your idea is also a good workaround!
Thanks,
Daniel2
Please sign in to leave a comment.
Comments
2 comments