| Author |  | 
      
        | live2 Newbie
 
  
 
 Joined: 02 November 2008
 Location: Austria
 Online Status: Offline
 Posts: 6
 | 
          Today we are run tests with direct send and domain key sign.
           | Posted: 17 May 2013 at 10:23am | IP Logged |   |  
           | 
 |  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 |     | 
       
       
        |  | 
        | live2 Newbie
 
  
 
 Joined: 02 November 2008
 Location: Austria
 Online Status: Offline
 Posts: 6
 | 
          Update:
           | Posted: 17 May 2013 at 10:57am | IP Logged |   |  
           | 
 |  I have read the documentation of DKIM and the body of the mail is also relevant.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          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.
           | Posted: 20 May 2013 at 12:33am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | live2 Newbie
 
  
 
 Joined: 02 November 2008
 Location: Austria
 Online Status: Offline
 Posts: 6
 | 
          Today i send multiple mails too a test address of http://www.brandonchecketts.com.
           | Posted: 21 May 2013 at 1:31am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          But, do you have any issues with one single mail sent out?
           | Posted: 21 May 2013 at 1:39am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          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?
           | Posted: 21 May 2013 at 1:42am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | live2 Newbie
 
  
 
 Joined: 02 November 2008
 Location: Austria
 Online Status: Offline
 Posts: 6
 | 
          Yes i can this is my simple test script.
           | Posted: 21 May 2013 at 1:56am | IP Logged |   |  
           | 
 |  
 
 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 |     | 
       
       
        |  | 
        | live2 Newbie
 
  
 
 Joined: 02 November 2008
 Location: Austria
 Online Status: Offline
 Posts: 6
 | 
          The same result with test on a other service
           | Posted: 21 May 2013 at 2:07am | IP Logged |   |  
           | 
 |  
 http://www.unlocktheinbox.com/resources/dkim/
 send to this email address "mailtest@unlocktheinbox.com"
 
 the report goes on the from address.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Thanks for the code. Indeed DKIM fails with this sample. Will work through this out and let us know when we find the solution.
           | Posted: 21 May 2013 at 6:51am | IP Logged |   |  
           | 
 |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          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.
           | Posted: 24 May 2013 at 1:06am | IP Logged |   |  
           | 
 |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |