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.

Auto responder perl error - charset

Discussion in 'E-mail Discussions' started by 4u123, Mar 19, 2018.

  1. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    832
    Likes Received:
    12
    Trophy Points:
    168
    Got a support ticket today from a customer where sending an Email to an account with an autoresponder results in a delivery failure...

    Code:
    This message was created automatically by mail delivery software.
    
    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:
    
    pipe to |/usr/local/cpanel/bin/autorespond accounts@mydomain.com /home/username/.autorespond
    generated by accounts@mydomain.com
    
    The following text was generated during the delivery attempt:
    
    ------ pipe to |/usr/local/cpanel/bin/autorespond accounts@mydomain.com /home/username/.autorespond
    generated by accounts@mydomain.com ------
    
    Use of uninitialized value in concatenation (.) or string at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Email/MIME/Encode.pm line 72, <$res_fh> line 1.
    The auto responder does reply but the subject is a random string of characters. The message is correctly delivered to the mailbox which has the auto responder enabled.

    So I look at the auto responder and the first thing I notice is the character set they have chosen is "Windows-31j" which is available from a very long list of different character sets.

    I changed it to UTF-8 and the error went away. So I'm guessing there is an issue with the script that processes the auto responder and this charset.

    I'm not sure why there are so many to choose from. Most end users don't even know what a character set is - and I'm sure only a very small percentage of my customers would need to set something specific here.

    It seems like overkill. when it comes to end users I think it's important to keep things as simple as possible.

    My suggestion here would be to make this field fixed to UTF-8 - so they are not forced to choose something they have absolutely no knowledge of - then have a button or link for those that specifically need a different charset "choose a specific character set for this message".
     
    #1 4u123, Mar 19, 2018
    Last edited by a moderator: Mar 19, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi @4u123,

    I'd like to reproduce this behavior on a test environment and open an internal case if necessary. My initial attempt at reproducing this issue was unsuccessful, as the autoresponder with the windows-31j character set worked without any error messages or bounces. Could you provide an example of the message body or subject that leads to the error/bounce?

    Also, I did find one other instance of the "Use of uninitialized value in concatenation" error. In that particular instance, the issue was related to the use of the ASSP plugin. Is that plugin installed on the affected system?

    Thank you.
     
Loading...

Share This Page