Hello people,
I’m not sure if Ghost can do such thing but it would be nice to enable DKIM and TLS for outgoing mail.
I’ve installed sendmail and successfully enabled DKIM on it which allowed the email to have this extra header only when sending emails using the console. Sending emails from ghost won’t use DKIM for some reason.
I’d like to know if it’s possible to use DKIM with sendmail or other software such as exim.
Can I also use the Let’s encrypt ssl with the email as well?
I’m sorry if the question is stupid. I don’t know a lot about ghost and this is the first time I use anything other than wordpress.
Thank you!
1 Like
I was just wondering the same thing.
By default, Ghost uses Nodemailer for direct sending of emails. I can see DKIM is supported by Nodemailer (DKIM :: Nodemailer) but I’m unsure how to add the configuration to Ghost. The article on Nodemailer’s site shows the following config for Nodemailer itself:
let transporter = nodemailer.createTransport({
host: "smtp.example.com",
port: 465,
secure: true,
dkim: {
domainName: "example.com",
keySelector: "2017",
privateKey: "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg..."
}
});
but it is not clear to me how the DKIM configuration could be passed from Ghost.
Another option is to configure Ghost to use your local sendmail
instance. Editing your sites configuration should do that I believe. I suspect something like the below (note I’ve not tested this):
"mail": {
"transport": 'SMTP',
"options": {
"host": 'MAILSERVER-HERE',
"port": PORT-NUMBER-HERE,
"secureConnection": true
}
}
Did you ever find a solution @ahmadafef? I can see that using Mailgun is an option too.