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.

Cannot send mail from web-based mail clients

Discussion in 'E-mail Discussions' started by apodigm, Jul 20, 2003.

  1. apodigm

    apodigm Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Strangeness today. I don't know when this all started, but this was something that was working correctly in earlier days. Perhaps it has something to do with the new stable release (which I love otherwise).

    FYI... CPanel 7.2.1 S67

    Basically, the mail works fine if you connect using Outlook Express or Outlook. I have not tested other email clients, but I would assume for the most part they would be fine. However, when you log into one of the web-based email clients, you are not able to send mail
    Neomail just gives a message stating the message could not be sent.
    Squirrelmail doesn't give an error, but it stores the outbound email without actually sending it.
    Hordemail gives an interesting error message:

    There was an error sending your message: sendmail [/usr/sbin/sendmail] not executable


    I went to this location on the server and I do not see a sendmail executable in the directory. Where did it go? Can someone help me build a symlink to the real location so I can test if that is the problem?

    cPanel.net Support Ticket Number:
     
  2. apodigm

    apodigm Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Guys,

    I think I found this. I was scrubbing through some of the older threads. Apparently this has been around before.

    Here is the command...

    go to the /usr/sbin directory and verify that there is no sendmail link there. (I don't know what happened to it!)

    Sendmail is just a symbolic link to exim as the main mail handler. So enter this command

    ln -s /usr/sbin/exim sendmail


    After I did this, everything started working great again.


    JG

    cPanel.net Support Ticket Number:
     
  3. Nodnarb

    Nodnarb Member

    Joined:
    Jul 5, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    I wonder what to do when the symbolic link exists, and Squirrelmail still won't send out email?

    cPanel.net Support Ticket Number:
     
  4. zccopwrx

    zccopwrx Member
    PartnerNOC

    Joined:
    Apr 20, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    This can happen when exim was not properly installed.

    run /scripts/exim4 or /scripts/eximup to fix it
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's probably not worth digging up a two year old thread for this ;)
     
  6. Aquitaine

    Aquitaine Member

    Joined:
    May 7, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Calcutta
    on the contrary : )

    Im really glad it was updated !! I just needed that on my setup and eximup worked great !

    --

    There was an error sending your message: sendmail [/usr/sbin/sendmail] not executable

    sendmail not executable

    missing link to sendmail
    sendmail exim
    sendmail soft link exim
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Hi Jason,

    Type in the following from the root shell prompt after logging in over SSH:

    /scripts/updatenow

    then:

    /scripts/exim4 --latest
     
  8. jscott14

    jscott14 Member

    Joined:
    May 3, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    You know, I'm having the same sendmail problem, and it looks like the sendmail LINK is actually broken. Specifically, there is no "exim" file in the urs/sbin directory. I tried following the advice above to reinstall exim by running either exim4 or eximup. However, I'm completely new to Linux and servers. I don't even know how to "run" those files. I used Putty to connect to my server, and went to the "scripts" directory. You can see what I tried to do below, and what Putty returned:

    root@www01 [/scripts]# eximup
    -bash: eximup: command not found
    root@www01 [/scripts]# run eximup
    -bash: run: command not found

    It's saying "command not found", but I know that the "eximup" file exists in that directory. Can anyone help? Thanks!

    Jason
     
  9. jscott14

    jscott14 Member

    Joined:
    May 3, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the uber-fast response, Chirpy. The first part of your suggestion (update now) worked perfectly. It doesn't look like exim installed properly, though. It first said that exim4 was depreciated, so it defalted to eximup, and it looks like the next several steps went without a hiccup. However, here's some stuff that just doesn't look right:

    Preparing... ########################################### [100%]
    1:exim warning: /etc/aliases created as /etc/aliases.rpmnew
    warning: /etc/eximrejects saved as /etc/eximrejects.rpmorig
    warning: /etc/localdomains created as /etc/localdomains.rpmnew
    warning: /etc/secondarymx created as /etc/secondarymx.rpmnew
    ########################################### [100%]
    error: unpacking of archive failed on file /usr/lib/libperl.so;428a1fe1: cpio: M D5 sum mismatch
    `/etc/localdomains.eximreset' -> `/etc/localdomains'
    `/etc/aliases.eximreset' -> `/etc/aliases'
    `/etc/secondarymx.eximreset' -> `/etc/secondarymx'
    chown: cannot access `/var/spool/exim': No such file or directory
    chown: cannot access `/etc/exim.crt': No such file or directory
    chown: cannot access `/etc/exim.key': No such file or directory
    Building exim.conf...Exim Binary not found! at /scripts/buildeximconf line 231.
    Done
    exim: no process killed
    exim: no process killed
    Waiting for exim to restart..............finished.

    mailnull 22300 0.0 0.2 7072 4712 ? S May03 0:00 /usr/bin/perl /us r/local/cpanel/bin/eximstats
    root 4934 0.0 0.0 3640 1584 ? S 11:46 0:00 antirelayd

    exim has failed, please contact the sysadmin.
    sh: line 8: /usr/sbin/exim_dbmbuild: No such file or directory
    sh: line 9: /usr/sbin/exim_dbmbuild: No such file or directory
    sh: line 10: /usr/sbin/exim_dbmbuild: No such file or directory
    sh: line 11: /usr/sbin/exim_dbmbuild: No such file or directory
    chmod: cannot access `/var/spool/exim/db/*': No such file or directory
    chown: cannot access `/var/spool/exim': No such file or directory
    Install Complete


    Any ideas? My sendmail command still doesn't work. Thanks in advance.

    Jason
     
  10. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    It very possible that the RPM packages don't match and/or got corrupted. Do the following:

    rm -f /var/lib/rpm/__db*
    Then this:
    rpm -vv --rebuilddb
    /scripts/eximup --force
     
  11. jscott14

    jscott14 Member

    Joined:
    May 3, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Okay, I did that, but the end result of running exim was quite similar, as shown below:

    14:17:13 (143.74 KB/s) - `exim-4.50-1_cpanel_smtpctl_av_rewrite_mm2_mmmtrap_exiscan_md5pass.i386.rpm' saved [967,792/967,792]

    Preparing... ########################################### [100%]
    1:exim warning: /etc/aliases created as /etc/aliases.rpmnew
    warning: /etc/exim.conf.dist saved as /etc/exim.conf.dist.rpmorig
    warning: /etc/exim.conf.mailman2.dist saved as /etc/exim.conf.mailman2.dist.rpmorig
    warning: /etc/exim.conf.mailman2.exiscan.dist saved as /etc/exim.conf.mailman2.exiscan.dist.rpmorig
    warning: /etc/eximrejects saved as /etc/eximrejects.rpmorig
    warning: /etc/localaliases created as /etc/localaliases.rpmnew
    warning: /etc/localdomains created as /etc/localdomains.rpmnew
    warning: /etc/secondarymx created as /etc/secondarymx.rpmnew
    warning: /etc/spammers saved as /etc/spammers.rpmorig
    ########################################### [100%]
    error: unpacking of archive failed on file /usr/lib/libperl.so;428a4339: cpio: MD5 sum mismatch
    `/etc/localdomains.eximreset' -> `/etc/localdomains'
    `/etc/aliases.eximreset' -> `/etc/aliases'
    `/etc/secondarymx.eximreset' -> `/etc/secondarymx'
    chown: cannot access `/var/spool/exim': No such file or directory
    chown: cannot access `/etc/exim.crt': No such file or directory
    chown: cannot access `/etc/exim.key': No such file or directory
    Building exim.conf...Exim Binary not found! at /scripts/buildeximconf line 231.
    Done
    exim: no process killed
    exim: no process killed
    Waiting for exim to restart..............finished.

    mailnull 22300 0.0 0.2 7072 4712 ? S May03 0:00 /usr/bin/perl /usr/local/cpanel/bin/eximstats
    root 7206 0.0 0.0 4388 1584 ? S 14:17 0:00 antirelayd

    exim has failed, please contact the sysadmin.
    sh: line 8: /usr/sbin/exim_dbmbuild: No such file or directory
    sh: line 9: /usr/sbin/exim_dbmbuild: No such file or directory
    sh: line 10: /usr/sbin/exim_dbmbuild: No such file or directory
    sh: line 11: /usr/sbin/exim_dbmbuild: No such file or directory
    chmod: cannot access `/var/spool/exim/db/*': No such file or directory
    chown: cannot access `/var/spool/exim': No such file or directory
    Install Complete


    I see that it says the unpacking of the archive failed because of an MD 5 checksum... does that have anything to do with it? The odd thing is that this is a brand new server... freshly formatted, and we just installed WHM/cPanel on it. I really thought it would be an easy process, but I'm beginning to wonder if we've made a mistake. Still the prompt help is VERY much appreciated. Any more tricks up your sleeve?
     
  12. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Is this Fedora C3 or RHEL 4 v3? If yes for any of the two, then you have a PreLink problem.
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Not sure about the perl problem, could be prelink as Andy suggested in which case, try:

    prelink -ua

    I've seen the last part before. Try this:

    mkdir /var/spool/exim
    mkdir /var/spool/exim/msglog
    mkdir /var/spool/exim/db
    mkdir /var/spool/exim/input
    chown -R mailnull:mail /var/spool/exim
    /scripts/exim4 --force


    Should be OK then.
     
Loading...

Share This Page