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!

Urgent: mail not working!

Discussion in 'E-mail Discussion' started by lukedyson, Jun 25, 2005.

  1. lukedyson

    lukedyson Member

    Joined:
    Jan 28, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    I recently installed this:

    http://layer0.layeredtech.com/showthread.php?t=75

    Now I can not send mail and my inboxes appear not to be recieving mail.

    Any help will be appreciated.

    What I tired to do was open the sendmail.real and replace sendmail with the sendmail.real

    Luke
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Make sure that the file permissions and ownerships are correct:

    chmod +x /usr/sbin/sendmail
    chmod g+s /usr/sbin/sendmail
    chown root:mailtrap /usr/sbin/sendmail


    The script isn't foolproof, but can help trap the spammers script access.

    If you find that it's all completely gone wrong, delete any versions of /usr/sbin/sendmail* and run:

    /scripts/updatenow
    /scripts/eximup --force
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. lukedyson

    lukedyson Member

    Joined:
    Jan 28, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151

    Thank you so much I did the later and it fixed it. Could you assist me on installing that other script properly cause I did what is said. That would be very kind of you.

    Luke :)
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Here's my procedure which is similar:

    service chkservd stop
    service exim stop
    mv /usr/sbin/sendmail /usr/sbin/sendmail.hidden
    pico -w /usr/sbin/sendmail


    Add the following:
    Code:
    #!/usr/local/bin/perl
    # use strict;
     use Env;
     my $date = `date`;
     chomp $date;
     open (INFO, ">>/var/log/spam_log") || die "Failed to open file ::$!";
     my $uid = $>;
     my @info = getpwuid($uid);
     if($REMOTE_ADDR) {
             print INFO "$date - $REMOTE_ADDR ran $SCRIPT_NAME at $SERVER_NAME\n";
     }
     else {
    
            print INFO "$date - $PWD -  @info\n";
    
     }
     my $mailprog = '/usr/sbin/sendmail.hidden';
     foreach  (@ARGV) {
             $arg="$arg" . " $_";
     }
    
     open (MAIL,"|$mailprog $arg") || die "cannot open $mailprog: $!\n";
     while (<STDIN> ) {
             print MAIL;
     }
     close (INFO);
     close (MAIL);
    
    chmod +x /usr/sbin/sendmail
    chmod g+s /usr/sbin/sendmail
    chown root:mailtrap /usr/sbin/sendmail

    touch /var/log/spam_log
    chmod 0777 /var/log/spam_log

    service exim start
    service chkservd start

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. lukedyson

    lukedyson Member

    Joined:
    Jan 28, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151

    Thanks I will have a pop at this one later! You don't know it anyone has made a Mod to show the Spam file in WHM?

    Luke
     
  6. lukedyson

    lukedyson Member

    Joined:
    Jan 28, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    I gave this one a go but it doesnt work, Exim stats just went down all the time and no mail was working.
     
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