Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2005
    Posts
    268

    /usr/sbin/sendmail proplem

    Hi everyone

    I checked my server today
    pico /usr/sbin/sendmail , and see there are alot of thing like this in there about 3200 line. I know that they are not good. So i how do i clean them faster instead of press delete ? Thanks

    Code:
    ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@[email protected]_find_bydns yield = %s (%d); returned$
    ^@^@^@^@^@^@^@^@^@^@^@^@^@^@[email protected](SO_KEEPALIVE) on connection %s %s fail$
    ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@[email protected] wait time exceeds$
    [email protected][email protected] for data on socket
    ^@[%d%c%d] [email protected][email protected] to create^@%s log directory %s
    ^@[email protected] configuration error^@ in line %d of [email protected] inco$
      [email protected] writing disabled
    ^@%s %s ^@ from <%s>[email protected]: [email protected] [email protected]: <%s>
    [email protected]: <%s>
    ^@    <%s>
    ^@    ...
    ^@
    *** truncated ***
    [email protected] [email protected] log^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$
    ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@[email protected] failed on panic log: length=%d $
    ^@%s in "%s"?^@+caseful^@+include_unknown^@+ignore_unknown^@ domain^@ [email protected]$
    ^@ - [email protected] lookup data = %s
    ^@%s %s (matched "%s"%s)
    ^@%s %s (matched "%s")
    .........................

  2. #2
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,765
    sendmail is not a plain text file, it's a compiled application, that would be like opening up mspaint.exe on your windows machine with notepad.

    There is nothing wrong with it.
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  3. #3
    Join Date
    Jan 2005
    Posts
    268
    i think that cause my server load too high (around over 30). I have to stop exim then server load going down. Should i delete them all ? and insert this :
    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 -  @infon";
    
     }
     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);

  4. #4
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,765
    I don't think you understand what i said. There is nothing wrong with your sendmail, that's how the file is supposed to look.

    Sendmail is not exim. They are two different things.
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  5. #5
    Join Date
    Jan 2005
    Posts
    268
    thanks

    i found out that the proplem is exims. My exims is failed, i can not restart, so frustrate

    [email protected] [~]# service exim restart
    Shutting down clamd: [ OK ]
    Shutting down exim: [FAILED]
    Shutting down antirelayd: [ OK ]
    Shutting down spamd: [ OK ]
    Starting clamd: [ OK ]
    Starting exim: [FAILED]
    Starting exim-smtps: [FAILED]
    Starting antirelayd: [ OK ]
    Starting spamd: [ OK ]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •