Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Mailer-Daemon and Mail Queue Manager Show Subject and To Encoded in Base64

Discussion in 'E-mail Discussions' started by linux4me2, Nov 13, 2016.

Tags:
  1. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    168
    Likes Received:
    36
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I'm using WHM 60 build 17. I got a delay message from the Mailer-Daemon that has both the subject of the message and the "to" encoded in Base64. I checked the message in Mail Queue Manager, and both display the subject of the message like this:
    There aren't any special characters in the original subject. Decoded from Base64, it simply says, "New private message has arrived".

    At first, I thought there was a problem with the bulletin board that attempted to send the message, but I tested it and the emails it sends for a new private message, when received in my email client, display the subject in UTF-8 as they should.

    Is this a bug in WHM, by design, or do I have something configured incorrectly? It seems like encoding the subject and "to" of a message makes it more difficult to troubleshoot email issues.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you search for the message in /var/log/exim_mainlog and see if the same subject shows up there? EX:

    Code:
    exigrep MSGID /var/log/exim_mainlog
    It seems possibly related to the issue discussed on the following third-party URL:

    Exim4 Fix Wrongly Decoded Mail Subject — Martin Klepsch

    Thank you.
     
    linux4me2 likes this.
  3. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    168
    Likes Received:
    36
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Thanks for the info. That does sound like the source of the problem.

    I searched exim_mainlog with the message ID I had, but it showed the subject of the failure message and not the original message's subject. I couldn't find the message ID for the original message, though I searched /var/log/exim_mainlog using the recipient's email address too. The original message has been removed from the queue, so I can't get the message ID there, either. I'll check the next time I get one of these.
     
    cPanelMichael likes this.
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can also verify that check_rfc2047_length is set to "False" in your /etc/exim.conf file (It should be set to "False" by default in cPanel):

    Code:
    # grep check_rfc2047_length /etc/exim.conf
    check_rfc2047_length = false
    Feel free to post the output from /var/log/exim_mainlog for one of these messages the next time one comes through.

    Thank you.
     
    linux4me2 likes this.
  5. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    168
    Likes Received:
    36
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Yes, check_rfc2047_length is set to "false". I'll post when I get another one of these messages. Thanks for the help.
     
  6. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    168
    Likes Received:
    36
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Here's the output from /var/log/exim_mainlog for one of these messages that just came through:
    Code:
    2016-11-23 22:19:32 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1c9lVU-0003Gp-AQ
    
    2016-11-25 02:32:57 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1c9lVU-0003Gp-AQ
    
    2016-11-25 02:32:57 1cABwH-0003lN-Rr <= <> R=1c9lVU-0003Gp-AQ U=mailnull P=local S=2634 T="Warning: message 1c9lVU-0003Gp-AQ delayed 24 hours" for forums@thedomain.com
    2016-11-25 02:32:58 1cABwH-0003lN-Rr => firstuser (forums@thedomain.com) <forums@thedomain.com> R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 <firstuser@thedomain.com> yN9VATr3N1iPOAAA1I9b2Q Saved"
    2016-11-25 02:32:58 1cABwH-0003lN-Rr -> seconduser (forums@thedomain.com) <forums@thedomain.com> R=virtual_user T=dovecot_virtual_delivery C="250 2.0.0 <seconduser@thedomain.com> yN9VATr3N1iPOAAA1I9b2Q:2 Saved"
    2016-11-25 02:32:58 1cABwH-0003lN-Rr Completed
    
    2016-11-25 10:36:02 cwd=/usr/local/cpanel/whostmgr/docroot 3 args: /usr/sbin/exim -Mvh 1c9lVU-0003Gp-AQ
    
    2016-11-25 10:36:02 cwd=/usr/local/cpanel/whostmgr/docroot 3 args: /usr/sbin/exim -Mvb 1c9lVU-0003Gp-AQ
    
    +++ 1c9lVU-0003Gp-AQ has not completed +++
    2016-11-23 22:19:32 1c9lVU-0003Gp-AQ <= forums@thedomain.com H=host.hostdomain.com [XX.XX.XX.XXX]:60659 P=esmtpsa X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no A=dovecot_login:system@thedomain.com S=1422 id=d3d5d680655c22f37781b7824bddd158@thedomain.com T="New private message has arrived" for recipient@anotherdomain.com
    2016-11-23 22:19:32 1c9lVU-0003Gp-AQ SMTP connection outbound 1479961172 1c9lVU-0003Gp-AQ thedomain.com recipient@anotherdomain.com
    2016-11-23 22:19:32 1c9lVU-0003Gp-AQ == recipient@anotherdomain.com R=dkim_lookuphost defer (-1): host lookup did not complete
    2016-11-23 23:33:46 1c9lVU-0003Gp-AQ == recipient@anotherdomain.com R=dkim_lookuphost defer (-1): host lookup did not complete
    2016-11-24 00:33:44 1c9lVU-0003Gp-AQ == recipient@anotherdomain.com R=dkim_lookuphost defer (-1): host lookup did not complete
    2016-11-24 02:33:41 1c9lVU-0003Gp-AQ == recipient@anotherdomain.com R=dkim_lookuphost defer (-1): host lookup did not complete
    2016-11-24 04:33:37 1c9lVU-0003Gp-AQ == recipient@anotherdomain.com R=dkim_lookuphost defer (-1): host lookup did not complete
    2016-11-24 07:33:32 1c9lVU-0003Gp-AQ == recipient@anotherdomain.com R=dkim_lookuphost defer (-1): host lookup did not complete
    2016-11-24 11:33:25 1c9lVU-0003Gp-AQ == recipient@anotherdomain.com R=dkim_lookuphost defer (-1): host lookup did not complete
    2016-11-24 17:33:14 1c9lVU-0003Gp-AQ == recipient@anotherdomain.com R=dkim_lookuphost defer (-1): host lookup did not complete
    2016-11-25 02:32:57 1c9lVU-0003Gp-AQ == recipient@anotherdomain.com R=dkim_lookuphost defer (-1): host lookup did not complete
    
     
    #6 linux4me2, Nov 25, 2016
    Last edited by a moderator: Dec 7, 2016
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @linux4me2,

    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    linux4me2 likes this.
  8. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    168
    Likes Received:
    36
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I would if I could, but I don't believe I can. My web host is the licensee for cPanel, so I don't think I have the ability to create support tickets. I will get in touch with them and see if they'll open a support ticket for me and post back.
     
    cPanelMichael likes this.
  9. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    168
    Likes Received:
    36
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    My web host opened a support ticket for me. The ticket number is 8040999.
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  11. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    168
    Likes Received:
    36
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I don't have access to the full explanation in the support ticket, and this seems like it might be over my pay grade, but I have to ask. Is the sending client the web app that sent the original email, or the server that bounced that message? In either case, at what point does it get encoded in Base64?
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It's happening on the email client used to send the message, and that's where the encoding happens. You can start at "5. Use of encoded-words in message headers" in the URL referenced on my last response for additional information. For instance:

    Thank you.
     
    linux4me2 likes this.
  13. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    168
    Likes Received:
    36
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Thanks for the explanation. As far as I'm concerned, you can mark this one resolved.
     
    cPanelMichael likes this.
Loading...

Share This Page