Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signing mails sent through SMTP with DKIM

I have setup DKIM in my google apps for mail signing, when sending mails through GMail interface it signs the mail but when I send a mail through my webserver using SMTP (from CodeIgniter) it doesnt signs the mail.

Can anybody help me what should I do?

like image 470
Shishant Avatar asked Jan 17 '11 11:01

Shishant


2 Answers

Yes, it's actually a server configuration thing. But since you posted on SO, there is also a way to sign the mails manually from within PHP. http://php-dkim.sourceforge.net/

Also had been covered before here: Setting up DomainKeys/DKIM in a PHP-based SMTP client

like image 100
mario Avatar answered Oct 06 '22 00:10

mario


I create new project in googlecode. the name was phpMailDomainSigner It support DKIM-Signature and DomainKey-Signature in Object Oriented Style.

Here some 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);
like image 33
amarullz Avatar answered Oct 05 '22 23:10

amarullz