dkim interview questions
Top dkim frequently asked interview questions
I'm trying to sign emails with DKIM using PHPMailer Class and i can't get it to work.
When i see the headers in my emails on gmail, i find that the class is successfully injecting DKIM in the email header but gmail doesn't even care.
The question is that i've viewed the headers of linkedIn emails and i found out that they are using 2 DKIM headers, DomainKey-Signature
& DKIM-Signature
.
What's the difference? and is that why Gmail doesn't verify my emails? & do you recommend any alternative & robust classes to sign emails with domain keys on php?
Thanks
Source: (StackOverflow)
I`m using PHPmailer to sent email.
I installed postfix service and DKIM-Milter to generate the key.
It works fine if i use command line to sent mail, and the mail is with DKIM signature displaying "signed-by:mydomain.com"
Authentication-Results: mx.google.com; spf=pass (google.com: domain of root@mydomain.com designates 182.50.xxx.xxx as permitted sender) smtp.mail=root@mydomain.com; dkim=pass header.i=@mydomain.com
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mydomain.com; s=default;
t=1325531456; bh=+gZFhu4Id2AXb8UVbFLzDVVlChWGhvxvJUIdjdMLQsk=;
h=To:Subject:Message-Id:Date:From;
b=mH4GV8ayicc6UMn1uopCc9VJb5v2MiOKQpEtwJjckzoJ8ePhRKQIZI5KnzSdSoSP3
BtmehOQhMn9kIR/TlL2dlSog2EkRNeAaWcmO1K3khtCZ7rkXHGJsDn9C6l49K0tJa2
rplPOSI7wS8+3NCEiuc5sjZimPo4v9WuTECVqxkg=
But i want to use PHPmailer (5.1) to sent mail with DKIM signature supported, but returns this:
Authentication-Results: mx.google.com; spf=pass (google.com: domain of info@mydomain.com designates 182.50.xxx.xxx as permitted sender) smtp.mail=info@mydomain.com; dkim=neutral (bad format) header.i=info@mydomain.com
DKIM-Signature: v=1; a=rsa-sha1; q=dns/txt; l=70; s=default;
t=1325533594; c=relaxed/simple;
h=From:To:Subject;
d=mydomain.com; i=@mydomain.com;
z=
|
|Subject:=20Testing=20email=20from=20phpmailer;
bh=lC+16EvauA2HuJG03ArE6CtgLuY=;
b=
I checked the class.phpmailer.php file, and it has some DKIM options:
public $DKIM_selector = 'default';
/**
* Used with DKIM DNS Resource Record
* optional, in format of email address 'you@yourdomain.com'
* @var string
*/
public $DKIM_identity = '';
/**
* Used with DKIM DNS Resource Record
* optional, in format of email address 'you@yourdomain.com'
* @var string
*/
public $DKIM_domain = '';
/**
* Used with DKIM DNS Resource Record
* optional, in format of email address 'you@yourdomain.com'
* @var string
*/
public $DKIM_private = '';
How to configure this option? I know the public key and private key, but what`s is $DKIM_private and $DKIM_identity?
Source: (StackOverflow)
I'm working on a digital gifting platform that relies on email reaching the inbox. Email is sent through Amazon SES, and has high quality (recipient's name in the email, single recipient, personally crafted message, extremely low bounce and complaint rate). However, I am still seeing very mixed results as to spam filter behaviour. Some get marked as spam some don't on the same ISPs.
I currently have no DKIM, SPF, or Sender ID set (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/authentication.html)
Is there any downside to using all of these together, or should I pick and choose?
Source: (StackOverflow)
I'm trying to figure out how to send mails using the MailGun Golang API without having it sent 'on behalf of'.
This is how the From address currently looks (where foo.com is the sender's email domain and bar.com is my domain):
john=foo.com@mail.bar.com on behalf of John Smith <john@foo.com>
What do I need to do so that it looks like this instead:
John Smith <john@foo.com>
I've set up SPF and DKIM according to the MailGun instructions and everything passes as being correct. I've also used SetDKIM(true)
when I'm sending out the mail. Is there some setting I'm missing or additional validation I need to do?
Source: (StackOverflow)
I need to add DKIM to a Postfix installation. I've found two implementations that work with Postfix. OpenDKIM, and dkim-milter dkim-milter. The former claims to be a fork of the latter.
OpenDKIM appears to be the more active project, judging from releases and mailing list activity.
Which of these implementations (or another) should I use?
Source: (StackOverflow)
I would like to create a form that allows users to contact our local city council. I want to make it easy, so they can just fill out the form and send it. I am just not 100% sure how this would work in regards to spam filtering.
I know how to send e-mail through php usind sendmail, and also via Google Apps smtp server.
Mail from our domain has both SPF and DKIM applied, and it is working correctly
What I'm wondering is if someone fills out the form and we use their e-mail address in the from field will it be blocked as spam?
I am not sure how the verification that we have set up to verify mail from our domain will affect mail sent from our server, with a from address that has a different domain.
Any ideas?
Source: (StackOverflow)
We are using an external service for our newsletter, which has required the followin DKIM setup in our domain gipote.dk:
_domainkey.gipote.dk. 43200 IN TXT "o=~"
default._domainkey.gipote.dk. 43200 IN TXT "k=rsa\; p=MIGf...ibnrkoqQIDAQAB"
(I truncated the public key for purpose of readability...)
However we are also sending out e-mail from our own server, which I would also like to sign.
Is it possible to have more than one public-key TXT record in our domain gipote.dk? If so, how should it be set up?
EDIT: I do not have access to the private key, that is used by the newsletter service. So I will not be able to just install that on my own server.
/ Carsten
Source: (StackOverflow)
We're using the ActionMailer with SMTP as our delivery method and Amazon SES as our outgoing mail provider.
We want to sign the emails with DKIM.
How can we do that?
Thanks
Source: (StackOverflow)
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?
Source: (StackOverflow)
I'm configuring DKIM for my MailChimp campaigns.
What do i need to do, other then checking the 'authenticate this campaign' checkbox, in order for my domain to recognize MailChimp? Do i need to install openDKIM on my machine for this?
Source: (StackOverflow)
Mail chimp offers three levels of authentication when doing email campaigns.
- Manual Authentication
- No Authentication
- Auto Authentication
From what I understand Manual Authentication is when you set up your own SPF/DKIM records on your DNS.
No Authentication is when no body sets up anything, and I'm pretty sure deliverability goes way down.
The Auto Authentication is what I am curious about. All they do is require the person sending the email to approve that their email address is ok to send from with a validation email. I'm done research, and I can't figure out how mail chimp and other people do this auto-authentication.
Is there any service out there, or would we have to set up our own email servers to accomplish something like this.
Also what kind of effect on deliverability is the "auto" authentication.
Source: (StackOverflow)
Is there a library or a way to do this without an external library? I am using apache james as my mail server and currently send email like this:
public void sendMessage(String to, String subject, String content) {
MimeMessage message = new MimeMessage(session);
try {
message.addRecipients(Message.RecipientType.TO, to);
message.setFrom(new InternetAddress(from));
message.setSubject(subject);
message.setContent(content, "text/html; charset=utf-8");
Transport.send(message);
} catch (MessagingException e) {
e.printStackTrace();
}
}
But i'd like to sign the email with DKIM before hand. I understand I need to implement DKIM signing into the james server and plan on use jDKIM to do this, I also understand I need to create the keys using something like www.port25.com, but how do I actually sign the email in java before I send it out?
Source: (StackOverflow)
I'm hacking some support for DomainKeys and DKIM into an open source email marketing program, which uses a python script to send the actual emails via SMTP. I decided to go the quick and dirty route, and just write a perl script that accepts an email message from STDIN, signs it, then returns it signed.
What I would like to do, is from the python script, pipe the email text that's in a string to the perl script, and store the result in another variable, so I can send the email signed. I'm not exactly a python guru, however, and I can't seem to find a good way to do this. I'm pretty sure I can use something like os.system
for this, but piping a variable to the perl script is something that seems to elude me.
In short: How can I pipe a variable from a python script, to a perl script, and store the result in Python?
EDIT: I forgot to include that the system I'm working with only has python v2.3
Source: (StackOverflow)
When sending emails from Amazon SES, gmail shows "sent via amazonses.com". How do I remove this?
According to Google,
I'm a sender and I don't want my recipients to see the "via" link. What can I do?
Gmail checks whether emails are correctly authenticated. If your messages are sent by a bulk mailing vendor or by third-party affiliates, please publish an SPF record2 that includes the IPs of the vendor or affiliates which send your messages and sign your messages with a DKIM3 signature that is associated with your domain.
I have added both SPF and DKIM records. When looking at the original email, it shows both passed.
Received-SPF: pass
Authentication-Results: mx.google.com; spf=pass ...; dkim=pass ...
Any ideas?
Answer:
Great step by step answer posted here Remove via from SES emails
Source: (StackOverflow)
I am trying to set up a DKIM record on Amazon's Route 53. I just choose to add TXT record with name like this: mandrill._domainkey.domain.com
and the value is:
"v=DKIM1; k=rsa;
p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrLHiExVd55zd/IQ/J/mRwSRMAocV/hMB3jXwaHH36d9NaVynQFYV8NaWi69c1veUtRzGt7yAioXqLj7Z4TeEUoOLgrKsn8YnckGs9i3B3tVFB+Ch/4mPhXWiNfNdynHWBcPcbJ8kjEQ2U8y78dHZj1YeRXXVvWob2OaKynO8/lQIDAQAB;"
but Route 53 keeps complaining about:
The record set could not be saved because:
- The Value field contains invalid characters or is in an invalid format.
Source: (StackOverflow)