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.

Exim Failed need urgent help!!

Discussion in 'General Discussion' started by karl0s, Aug 8, 2004.

  1. karl0s

    karl0s Member

    Joined:
    Aug 5, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hi every1 ive just had to reinstall my whole server and went to check exim logs as it failed i have tried reinstalling it about 20times already and any ideas on this error?

    2004-08-08 15:02:39 1Bsqtr-0000Sy-73 == serveradmin@fushost.com R=dnslookup defer (-1): lowest numbered MX record points to $
    2004-08-08 15:02:39 1Bsqtr-0000Sy-73 Failed to create directory "/var/spool/exim/db": Permission denied

    Thank you
    Karl Glover
     
  2. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    check the owner:group on the /var/spool/exim folder and make sure its mailnull:mail

    if not set it that way

    and make sure the permissions are 0750 for the /var/spool/exim directory
     
  3. karl0s

    karl0s Member

    Joined:
    Aug 5, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Ok tried that and,


    root@firefox [~]# chown -Rf mailnull:mail /var/spool/exim
    chown: `mailnull:mail': invalid user
    root@firefox [~]# chmod -Rf 0750 /var/spool/exim
    chmod: cannot access `/var/spool/exim': No such file or directory
     
  4. sjackson909

    sjackson909 Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Columbus, OH
    What OS are you running? also do a ls -lsa /var/spool/ and also do a locate exim and paste your results.

    Thanks
    -Seth
     
  5. karl0s

    karl0s Member

    Joined:
    Aug 5, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I am currently running Fedora Core 2 and heres the results...


    root@firefox [~]# ls -lsa /var/spool/
    total 64
    4 drwxr-xr-x 16 root root 4096 Aug 8 17:31 ./
    4 drwxr-xr-x 26 root root 4096 Aug 8 17:34 ../
    4 drwxr-xr-x 2 root root 4096 Aug 5 18:06 anacron/
    4 drwx------ 3 daemon daemon 4096 Aug 5 17:56 at/
    4 drwxrwx--- 2 smmsp smmsp 4096 Aug 5 19:23 clientmqueue/
    4 drwx------ 2 root root 4096 Aug 5 20:32 cpcpan/
    4 drwx------ 2 root root 4096 Aug 5 20:23 cpmysqlrpm/
    4 drwx------ 2 root root 4096 Aug 8 03:03 cpupdates/
    4 drwx------ 2 root root 4096 Aug 8 20:30 cron/
    4 drwxr-xr-x 3 root root 4096 Aug 5 20:48 lpd/
    4 drwxrwxrwt 3 root mail 4096 Aug 8 17:23 mail/
    4 drwxr-xr-x 2 rpm rpm 4096 Apr 16 21:34 repackage/
    4 drwxrwxrwt 2 root root 4096 May 6 16:32 samba/
    4 drwxr-x--- 3 23 squid 4096 Aug 5 20:48 squid/
    4 drwxr-xr-x 2 root root 4096 May 11 21:19 up2date/
    4 drwxr-xr-x 2 root root 4096 Mar 3 02:19 vbox/
     
    #5 karl0s, Aug 8, 2004
    Last edited: Aug 8, 2004
  6. karl0s

    karl0s Member

    Joined:
    Aug 5, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    root@firefox [~]# locate exim
    /usr/bin/rmail.exim
    /usr/bin/newaliases.exim
    /usr/bin/rsmtp.exim
    /usr/bin/runq.exim
    /usr/local/cpanel/etc/exim
    /usr/local/cpanel/etc/exim/perl
    /usr/local/cpanel/etc/exim/perl/boxtrapper
    /usr/local/cpanel/etc/exim/perl
    /usr/local/cpanel/etc/exim/cf
    /usr/local/cpanel/etc/exim/cf/virtual_userdelivery
    /usr/local/cpanel/etc/exim/cf/virtual_user
    /usr/local/cpanel/etc/exim/cf/localuser
    /usr/local/cpanel/etc/exim/cf
    /usr/local/cpanel/etc/exim
    /usr/local/cpanel/etc/eximstats.sql
    /usr/local/cpanel/etc/chkserv.d/eximstats
    /usr/local/cpanel/etc/eximstats.sql.in
    /usr/local/cpanel/3rdparty/mailman/tests/bounces/exim_01.txt
    /usr/local/cpanel/src/3rdparty/gpl/mailman-2.1.3/tests/bounces/exim_01.txt
    /usr/local/cpanel/src/3rdparty/gpl/mailman-2.1.5/tests/bounces/exim_01.txt
    /usr/local/cpanel/whostmgr/docroot/themes/x/icons/exim.gif
    /usr/local/cpanel/whostmgr/docroot/cgi/eximtop.cgi
    /usr/local/cpanel/whostmgr/docroot/cgi/eximuser.cgi
    /usr/local/cpanel/bin/eximstats
    /usr/local/cpanel/bin/eximstatspass
    /usr/local/cpanel/bin/starteximstats
    /usr/local/cpanel/bin/updateeximstats
    /usr/share/man/man8/eximstats.8.gz
    /usr/share/man/man8/exim.8.gz
    /usr/share/doc/exim-4.33
    /usr/share/doc/exim-4.33/README
    /usr/share/doc/exim-4.33/README.UPDATING
    /usr/share/doc/exim-4.33/ACKNOWLEDGMENTS
    /usr/share/doc/exim-4.33/NOTICE
    /usr/share/doc/exim-4.33/doc
    /usr/share/doc/exim-4.33/doc/README
    /usr/share/doc/exim-4.33/doc/filter.txt
    /usr/share/doc/exim-4.33/doc/dbm.discuss.txt
    /usr/share/doc/exim-4.33/doc/ChangeLog
    /usr/share/doc/exim-4.33/doc/pcretest.txt
    /usr/share/doc/exim-4.33/doc/README.SIEVE
    /usr/share/doc/exim-4.33/doc/exiscan-acl-examples.txt
    /usr/share/doc/exim-4.33/doc/exim.8
    /usr/share/doc/exim-4.33/doc/OptionLists.txt
    /usr/share/doc/exim-4.33/doc/spec.txt
    /usr/share/doc/exim-4.33/doc/NewStuff
    /usr/share/doc/exim-4.33/doc/exiscan-acl-spec.txt
    /usr/share/doc/exim-4.33/doc/pcrepattern.txt
    /usr/share/doc/exim-4.33/doc/Exim3.upgrade
    /usr/share/doc/exim-4.33/doc/Exim4.upgrade
    /usr/share/doc/exim-4.33/doc
    /usr/share/doc/exim-4.33/LICENCE
    /usr/share/doc/exim-4.33/unknownuser.sh
    /usr/share/doc/exim-4.33
     
    #6 karl0s, Aug 8, 2004
    Last edited: Aug 8, 2004
  7. syserror

    syserror Member

    Joined:
    Jun 1, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Wiltshire, UK
    Heres a bit of info about the box that Karl is on about.

    Firstly the whole of the /var has been copied from the old box, FC2, same setup.
    Secondly we copied the shadow and passwd files from the old box to the new as well.
    Thirdly when restoring the accounts from the backups (<username>.tar.gz) i had to first userdel -r <username> before it would install, and on some accounts, there was a matching group <username> that i had to remove, as well as the entry in httpd.conf.
    Fourthly, the group and user Exim has been deleted, and the group and user for mailnull (or nullmail, cant remember which) mail and mailman still exist.
    Fifthly, the owner for /var/log has been changed, to 93 (UID?)
    Sixthly, the owner for /var/spool/exim was mailnull (or nullmail, cant remember which), chmoded to exim, changed back by itself, chmod'ed back to exim, and it hasnt changed since.

    The chowning of /var/spool/exim was in attemt to cure the 'permission denied' error, and even setting permissions to 0777 still gave that error.

    Hope this helps.



    Tony. {Admin}
     
    #7 syserror, Aug 8, 2004
    Last edited: Aug 8, 2004
  8. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    The ownerships for /var/spool/exim and all subdirectories is supposed to be mailnull:mail if it is not exim will fail. You need to correct that first.

    drwxr-x--- 5 mailnull mail 4096 Jan 30 2003 ./
    drwxr-xr-x 18 root root 4096 Jul 14 05:35 ../
    drwxr-x--- 2 mailnull mail 4096 Jul 17 09:08 db/
    -rw-r--r-- 1 mailnull mail 5 Jan 30 2003 exim-daemon.86.pid-bd
    -rw-r--r-- 1 mailnull mail 5 Aug 8 04:14 exim-daemon.pid
    drwxr-x--- 2 mailnull mail 73728 Aug 8 15:52 input/
    drwxr-x--- 2 mailnull mail 32768 Aug 8 15:52 msglog/
     
  9. syserror

    syserror Member

    Joined:
    Jun 1, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Wiltshire, UK
    The users are foobar, re-creating mailnull : mail account/groups
     
  10. syserror

    syserror Member

    Joined:
    Jun 1, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Wiltshire, UK
    ok, progress, new errors in logs.

    2004-08-08 21:25:00 no host name found for IP address 212.158.244.38
    2004-08-08 21:25:00 lowest numbered MX record points to local host: syserror.co.uk (while verifying <system@syserror.co.uk> from host (Osiris) [212.158.244.38])
    2004-08-08 21:25:00 H=(Osiris) [212.158.244.38] sender verify defer for <system@syserror.co.uk>: lowest numbered MX record points to local host
    2004-08-08 21:25:00 H=(Osiris) [212.158.244.38] F=<system@syserror.co.uk> temporarily rejected RCPT <server@syserror.co.uk>: Could not complete sender verify

    Osiris is my Hostname, and there is my IP, DoS me if you feel like it :P

    not sure what RCPT is, any help welcomed :)

    EDIT: turned off 'verify the existance of mail senders' and - exim failed to restart. :(
    EDIT: Since that change it refuses to start, enabling 'Verify existance... ' and it still refuses to start :S - it did start origionally tho, since i setup the new account/group and chown. checking perms now.
    EDIT: Perms are fine, dont know why it wont start now :S

    BIG-EDIT: god knows how but i got it working, (chmod 777 * ? ;P) anyway, it starts now, just rejects me saying it cant verfiy the sender (me :s) - in other words back to square 1, with the error above
     
    #10 syserror, Aug 8, 2004
    Last edited: Aug 8, 2004
  11. syserror

    syserror Member

    Joined:
    Jun 1, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Wiltshire, UK
    Enough bloody edits.

    Here is the problem, plain and simple.

    Code:
    Message 1BtvMW-0003Fu-VU is no longer frozen
    LOG: MAIN
      lowest numbered MX record points to local host: syserror.co.uk
    LOG: MAIN
      == system@syserror.co.uk R=dnslookup defer (-1): lowest numbered MX record points to local host
    LOG: MAIN
      Frozen
    thats from whm=>manage mail queue=>deliver now.

    tell me whats going on, someone, otherwise im gunna go crazy !

    ** starts dancing to you drive me crazy **
     
Loading...

Share This Page