Error sending mail with perl

Discussion in 'Perl' started by murph, Feb 11, 2004.

  1. murph

    murph Guest

    Hi ,
    I have created a little script that is running as daemon ( it is hard
    to say as daemon :)) ) . Then i try to send a mail and the mail is
    refused from sendmail.

    I have no idea why it refuses it

    sub mail_message() {
    open(MAIL |"$sendmail -t ") || die "Can not open the mail
    programm \n";
    print MAIL "To: $mailto\n";
    print MAIL "Subject: $subject \n";
    print MAIL "At $date , $hour , $computer reported that :\n";
    print MAIL "$message\n";
    close(MAIL) || die "Error sending the Mail\n";
    }
    $sendmail , $subject , $mailto are initialized in the script

    that is the source of the procedure . The programm retrys to send the
    mail and sendmail refuses and refuses (/var/log/maillog )

    The error i receive is :

    Feb 11 13:10:20 leopard sendmail[20415]: i1BCAGM20415: from=root,
    size=342, class=0, nrcpts=1,
    msgid=<>,
    relay=root@localhost
    Feb 11 13:10:22 leopard sendmail[9551]: rejecting connections on
    daemon Daemon0: load average: 14
    Feb 11 13:10:22 leopard sendmail[20415]: i1BCAGM20415: to=root,
    ctladdr=root (0/0), delay=00:00:06, xdelay=00:00:02, mailer=local,
    pri=30342, dsn=2.0.0, stat=Sent

    Have u any ideas ???
     
    murph, Feb 11, 2004
    #1
    1. Advertising

  2. murph

    Joe Smith Guest

    murph wrote:

    > print MAIL "To: $mailto\n";
    > print MAIL "Subject: $subject \n";


    print MAIL "\n"; # A blank line here is mandatory

    > print MAIL "At $date , $hour , $computer reported that :\n";


    > Feb 11 13:10:22 leopard sendmail[9551]: rejecting connections on
    > daemon Daemon0: load average: 14


    Sendmail is refusing connections because the load average is too high.
    Check to see if your program is looping and firing up 15 simultaneous
    sendmail processes.
    -Joe
     
    Joe Smith, Feb 12, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    55,491
  2. Replies:
    0
    Views:
    1,377
  3. Luke
    Replies:
    2
    Views:
    4,730
    Nigel Wade
    Mar 15, 2007
  4. Replies:
    2
    Views:
    4,440
  5. Don Quijote de Nicaragua

    Error + Send Mail + ERROR: Failure sending mail.

    Don Quijote de Nicaragua, Jun 26, 2008, in forum: ASP .Net
    Replies:
    5
    Views:
    1,520
    Don Quijote de Nicaragua
    Jun 26, 2008
Loading...

Share This Page