Signing emails sent through SMTP using DKIM

I have a DKIM setting in my Google applications for signing mail, when sending letters via the GMail interface, it signs the mail, but when I send mail through my web server using SMTP (from CodeIgniter), it does not sign the mail.

Can someone help me what should I do?

+4
source share
2 answers

Yes, this is actually a server configuration. But since you hosted on SO, there is also a way to sign mail manually from PHP. http://php-dkim.sourceforge.net/

Also examined here: Setting DomainKeys / DKIM in an SMTP client in PHP

+5
source

I am creating a new project in googlecode. The name was phpMailDomainSigner. It supports the DKIM signature and the DomainKey signature in an object-oriented style.

Here is an example:

// Create mailDomainSigner Object include_once './lib/class.mailDomainSigner.php'; $mds = &new mailDomainSigner($domain_priv,$domain_d,$domain_s); $new_data = $mds->sign( $mail_data, "Message-ID:Subject:From:Content-Type:MIME-Version:Content-Transfer-Encoding:Received:To:Date", true,true,false); 
+4
source

Source: https://habr.com/ru/post/1335822/


All Articles