473,418 Members | 4,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Error sending mail with perl

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=<20***********************@leopard.towerline .net>,
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 ???
Jul 19 '05 #1
1 2059
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
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
5
by: Xah Lee | last post by:
# -*- coding: utf-8 -*- # Python # Suppose you want to spam your friend, and you have lots of # friends. The solution is to write a program to do it. After a gander # at python docs, one easily...
5
by: Bernard | last post by:
Hi, I have a problem with a CGI script (Perl) on a Win2000 server. The script is for sending E-cards and was written by Jason Maloney:...
2
by: Michael | last post by:
I know that in order to send an e-mail using Perl there must be a '\' in front of the '@' symbol. For example department\@company.com. And it works. The problem that I am having is that we have...
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
2
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
3
by: virtualweb | last post by:
Hello: I need to send a bit of HTML and Javascrpt on the body of an email from my perl script in order to have the recipient get a link that will openup a new window with a PopUp. For some...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.