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!

FormMail no longer working on cPanel 70?

Discussion in 'E-mail Discussion' started by Edwin Tjallings, May 23, 2018.

Tags:
  1. Edwin Tjallings

    Joined:
    May 23, 2018
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Netherlands
    cPanel Access Level:
    Root Administrator
    Since cpanel v70 we have issues with formail. Tested multiple servers, also a 71/72 edge server and one that is not managed by us. When you go to hostname.domain/cgi-sys/formmail.pl it shows a 500 internal server error. At a 68 server the same url shows a formmail page.

    Looks like a bug in cpanel with the new perl version but can not find information about it in the bug topic and nothing about formmail in the release notes.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Edwin Tjallings,

    Can you confirm that you manually installed the formmail.pl script on the system? If so, can you let us know the output to /usr/local/apache/logs/error_log when you see the internal server error message?

    Note that formmail was previously included with cPanel & WHM as part of the CGI Center feature. This feature was deprecated in cPanel & WHM version 60, and removed in cPanel & WHM version 64.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,762
    Likes Received:
    116
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    Was this ever resolved?

    Seems cPanel 70 (or 68, I skipped 68) upgraded cPanel's perl from perl 5.24 to perl 5.26 but you forgot to recompile your perl binaries to link to the newer perl version.

    # ldd /usr/local/cpanel/cgi-sys/formmail.pl
    linux-vdso.so.1 => (0x00007ffd4aa98000)
    libgdbm.so.2 => /usr/lib64/libgdbm.so.2 (0x00007fc642e89000)
    /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/5.24.1/x86_64-linux-64int/CORE/libperl.so => not found
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc642c6c000)
    libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fc642a53000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007fc64284f000)
    libm.so.6 => /lib64/libm.so.6 (0x00007fc6425cb000)
    libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fc642394000)
    libutil.so.1 => /lib64/libutil.so.1 (0x00007fc642191000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fc641dfd000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fc64308f000)
    libfreebl3.so => /lib64/libfreebl3.so (0x00007fc641bfa000)


    /usr/local/cpanel/cgi-sys/formmail.pl is trying to link to /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/5.24.1/x86_64-linux-64int/CORE/libperl.so which doesn't exist. It should be linking to /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/5.26.0/x86_64-linux-64int/CORE/libperl.so

    I suspect that there may be other compiled perl binaries that face this same issue.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @sparek-3,

    The /usr/local/cpanel/cgi-sys/formmail.pl file was provided as part of the CGI Center feature in cPanel. This feature was deprecated in cPanel & WHM version 60, and removed from the product in cPanel & WHM version 64. This is documented at:

    cPanel Deprecation Plan - cPanel Knowledge Base - cPanel Documentation

    Do you know which version of cPanel & WHM was utilized when cPanel was first installed on this system? Version 64 included a case that should have automatically removed the formmail.pl file:

    Fixed case CPANEL-12008: Remove CGI Center apps.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,762
    Likes Received:
    116
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    I can't be sure what version was installed initially, but I'd have to believe it was before cPanel 64.

    Yea, been reading on this ever since I submitted this. Wasn't aware that it had been deprecated. That's on me. I might suggest making the deprecation plans a bit louder, but it's also definitely on me for not following this.

    Does anyone happen to know of an easy to use drop-in replacement? We've got a lot of clients that still depend on formmail for sending their forms contents. This is going to be a booger to work around.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Here's a third-party URL where an alternative is suggested:

    Site5 KnowledgeBase » cPanel FormMail Support

    Though, this would still require uploading it to each account that needs it.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice