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.

Sendmail Segmation Fault

Discussion in 'E-mail Discussions' started by shoppingroom, Sep 8, 2005.

  1. shoppingroom

    shoppingroom Member

    Joined:
    Sep 7, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Op Sys: Fedura Core 4

    This is whats causing mail not being sent from users and webscripts there is a segmentation fault.

    I've delete the sendmail software and reloaded it and recompiled but still showing fault.

    I believe this happen across all linux server types and is a bug upto 8.11 but I installed 8.14 and still not working

    Any solutions?

    Thanks

    Mr B
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Erm, cPanel servers should not have sendmail installed at all, never mind running. cPanel uses exim as its MTA and provides a wrapper binary called sendmail for compatibility purposes.
     
  3. shoppingroom

    shoppingroom Member

    Joined:
    Sep 7, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Sendmail

    It was the exim sendmail wrapper that was causing the segmentation fault, after diagnosing different situations. I unstalled everything reloaded and still segmentation fault. so i deleted exim sendmail wrapper from /usr/sbin/sendmail.

    I then created a binary from the sendmail package and installed it as sendmail in the same directory.

    Guest what working like a babe.

    Techies at cpanel, fedora core 4 as a sendmail wrapper problem within exim creating scripts and local users not to send mail or receive from local users.
     
  4. ZuRiCh

    ZuRiCh Member

    Joined:
    Sep 14, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    we know it's your sendmail wrapper who's causing the problem, but, what's the solution?
     
  5. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    I tried grabbing sendmail from an RPM. it didn't work.. didn't understand the arguments their wrapper does
    the date on the wrapper is old, so I'm wondering what else happened that broke it

    -rwxr-sr-x 1 root mailtrap 8854 Jul 28 05:09 /usr/sbin/sendmail*

    Linux HOSTNAME 2.6.12-1.1447_FC4 #1 Fri Aug 26 20:29:51 EDT 2005 i686 i686 i386 GNU/Linux

    [EDIT] I'm on the release tree 10.8.0.C57
    I'm going back to the stable tree to see if that fixes it.. I'll report back

    that didn't seem to make a difference..
    /usr/sbin/sendmail
    Segmentation fault

    I'm guessing some FC4 library was updated by yum in last nights cpanel update.. but I'm guessing that's the problem.

    [EDIT AGAIN]
    to the cpanel folks:
    ldd sendmail
    linux-gate.so.1 => (0x005a9000)
    libc.so.6 => /lib/libc.so.6 (0x00652000)
    /lib/ld-linux.so.2 (0x00634000)

    that should give some clues..
     
    #5 freedman, Oct 5, 2005
    Last edited: Oct 6, 2005
  6. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Texas USA
    cPanel Access Level:
    Root Administrator
    So have you tried an "/scripts/eximup --force"?
     
  7. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18

    Yep, several times.
    also made sure there weren't package dependancy issues and everyhting is at the latest.
    /usr/sbin/sendmail is core dumping

    exim_mainlog shows:
    2005-10-05 23:41:35 1ENPRe-0005Ok-8R ** EMAIL@ADDR.COM R=virtual_sa_user T=virtual_sa_userdelivery: Child process of virtual_sa_userdelivery transport (running command "/usr/sbin/sendmail -bS") was terminated by signal 11 (Segmentation fault)

    can you try recompiling your sendmail wrapper on fc4 and uploading that?
    for FC4
     
    #7 freedman, Oct 6, 2005
    Last edited: Oct 6, 2005
  8. ZuRiCh

    ZuRiCh Member

    Joined:
    Sep 14, 2004
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    The solution is:

    rm -Rf /etc/exi*; rm -Rf /var/spool/exim; /scripts/eximup --force​

    Regards
     
  9. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18

    thanks.. I'll look into the spamassassin and clamd sections to see if anything has to be readded.
     
  10. junglecat

    junglecat Well-Known Member

    Joined:
    Jul 6, 2004
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    How safe is it to indiscriminately run this command? I see the topic was started by someone with fedora (I have centos), and I also see mention of checking afterward for "the spamassassin and clamd sections to see if anything has to be readded" which I wouldn't know what I'm looking for if I looked in those.
     
  11. BenThomas

    BenThomas Well-Known Member

    Joined:
    Feb 12, 2004
    Messages:
    598
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Texas USA
    cPanel Access Level:
    Root Administrator
    Removing /var/spool/exim will delete all queued messages, and I would generally say that this is a bad thing. The "/scripts/eximup --force" should be all you need, and will not result in any lost messages.
     
  12. junglecat

    junglecat Well-Known Member

    Joined:
    Jul 6, 2004
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    I ran /scripts/eximup --force and it instantly fixed the problem I've been pulling my hair out for 2 weeks trying to fix. :D

    It also makes me feel stupid because the solution was so easy. :rolleyes:
     
  13. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    I was having similar problems with Fedora core 4. The problem was Yum was updating Exim to 4.54 which is not compatable with Cpanel. Just add exim to the yum ignore config solved the problem.

    That is why eximup worked as it installed from Cpanel - not Ferdora...
     
  14. bofla

    bofla Member

    Joined:
    Sep 1, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I had the same problem, was banging my head for a while and noticed that wrapper checks for /etc/eximmailtrap, I've removed it and no more segfaults and mails are getting delivered, woohoo :)
     
  15. PanelGuy

    PanelGuy Well-Known Member

    Joined:
    Oct 13, 2004
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    2 questions then

    When you say you got it to work, are you saying withthe old version of Exim or with the new version?

    Second questions is, how did you remove the wrapper? I'm lost, step by step on that please.
     
  16. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    I had the same problem on FC4 for several times.
    Just delete the eximmailtrap file and no more "Segmentation fault", there's no need to delete mail queue or to reinstall exim:
    Code:
    rm -f /etc/eximmailtrap
     
  17. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If that file continues to appear, edit /var/cpanel/cpanel.conf and set:

    eximmailtrap=0
     
  18. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    Thanks!

    The exact file is /var/cpanel/cpanel.config

    What does exactly do this eximmailtrap? Is it tracking the origin of mail by adding the X-Source headers as is written in tweak settings?
     
  19. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    AFAIK, it's meant to be used for blocking nobody emails and I think the SMTP Tweak which prevents use of the local SMTP server, but it seems a little borked if those options are disabled (i.e. it leaves the setting to 1 which keep recreating the file in /etc whenever you save WHM > Tweak Settings).
     
  20. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    That it's incredible.

    Solution for a feautre of Cpanel it's deactivate feature.

    I think that solution it's "Thecnnical team of Cpanel correct problem"

    One more time, several problems of this panel go way to improper solutions.

    Please, Cpanel team. Correct problems...
     
Loading...

Share This Page