Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: DomainKeysSign - Error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
live2
Newbie
Newbie


Joined: 02 November 2008
Location: Austria
Online Status: Offline
Posts: 6
Posted: 17 May 2013 at 10:23am | IP Logged Quote live2

Today we are run tests with direct send and domain key sign.
The first tests with small mails are successful but then we are send bigger mails and the receive server said signing is invalid. As example send a mail with more than 2000 chars. The DomainKeysSign runs without errors. If it strange as the content of the mail is not relevant for signing.

We are need this for sending our newsletter.

mailer.Message.DomainKeysSign(false, null, @"C:\Temp\rsa512.private", true, "dk", DomainKeysTypes.Both);
Back to Top View live2's Profile Search for other posts by live2
 
live2
Newbie
Newbie


Joined: 02 November 2008
Location: Austria
Online Status: Offline
Posts: 6
Posted: 17 May 2013 at 10:57am | IP Logged Quote live2

Update:
I have read the documentation of DKIM and the body of the mail is also relevant.
Back to Top View live2's Profile Search for other posts by live2
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 20 May 2013 at 12:33am | IP Logged Quote Igor

Well, we have never had any issues with DKIM, regardless of body size. I'd suggest to try reproducing this in terms of a single, non-loop example to eliminate chance of any bodies/attachments reused from previous iterations.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
live2
Newbie
Newbie


Joined: 02 November 2008
Location: Austria
Online Status: Offline
Posts: 6
Posted: 21 May 2013 at 1:31am | IP Logged Quote live2

Today i send multiple mails too a test address of http://www.brandonchecketts.com.

1/10 Mails the result of the check is fail by direct sending.

DKIM Information:
Validating Signature
result = fail
Details: message has been altered
Back to Top View live2's Profile Search for other posts by live2
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 21 May 2013 at 1:39am | IP Logged Quote Igor

But, do you have any issues with one single mail sent out?

This doesn't actually seems to be caused by MailBee, but rather by SMTP server used by either party. As a wild guess, I'd suggest to check whether the message might be altered by some antispam and/or antivirus software, comparing the message which is sent out with its copy obtained by the recipient might help.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 21 May 2013 at 1:42am | IP Logged Quote Igor

Just to clarify my previous question - can you get a reproducible behavior with any specific mail message, so if check fails for it, it fails on any subsequent sending attempt for the same message?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
live2
Newbie
Newbie


Joined: 02 November 2008
Location: Austria
Online Status: Offline
Posts: 6
Posted: 21 May 2013 at 1:56am | IP Logged Quote live2

Yes i can this is my simple test script.


var smtpMailer = new Smtp();
smtpMailer.DnsServers.Add("8.8.8.8");

var headersToSign = new string[] { "from", "to", "subject", "date" };
var key1 = "";

var mailMessage = new MailMessage();
mailMessage.Subject = String.Format("Test {0}", DateTime.Now);
mailMessage.From.AsString = "test@test.com";
mailMessage.To.AddFromString("xxxxxxx@www.brandonchecketts.com");
mailMessage.Date = DateTime.Now;
mailMessage.MailTransferEncodingHtml = MailTransferEncoding.Base64;
mailMessage.MailTransferEncodingPlain = MailTransferEncoding.Base64;
mailMessage.BodyHtmlText = "ddddddddddddddddddddddddddddddddddddd7dddddddddddddddddddddddddd5555555555555 sdfSDFSDF dsfdfsfff \r\ndf dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddd";
mailMessage.BodyPlainText = "dddddddddddsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssddddddddddudddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddd";
mailMessage.MessageID = "test123456";


mailMessage.DomainKeysSign(false, headersToSign, key1, false, "dk", MailBee.Security.DomainKeysTypes.Both);


smtpMailer.Message = mailMessage;

try
{
    smtpMailer.Send();
}
catch (Exception exception)
{
}
Back to Top View live2's Profile Search for other posts by live2
 
live2
Newbie
Newbie


Joined: 02 November 2008
Location: Austria
Online Status: Offline
Posts: 6
Posted: 21 May 2013 at 2:07am | IP Logged Quote live2

The same result with test on a other service

http://www.unlocktheinbox.com/resources/dkim/
send to this email address "mailtest@unlocktheinbox.com"

the report goes on the from address.
Back to Top View live2's Profile Search for other posts by live2
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 21 May 2013 at 6:51am | IP Logged Quote Alex

Thanks for the code. Indeed DKIM fails with this sample. Will work through this out and let us know when we find the solution.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 May 2013 at 1:06am | IP Logged Quote Alex

What happens if you run the sample multiple times. In our tests, dkim failed only once but running it another time (and 3rd, 4th, etc) no longer produces any issues. I.e. the problem is not reproducible.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide