Hi all,
I moved my CommuniMail instance to a new server and when I attempt to run ./cmaild.pl I get the following error:
Net::CMD (Net::SMTP) DATAEND command failed.
Last server message was:Enter message, ending with "." on a line by itself
Administrative prohibition
This probably represents a problem with newline encoding at utils.pm line 150
I have been able to send emails from other programs. Any idea what this means?
Thanks,
Joe
CommuniMail - Administrative prohibition error sending email
I took a look at the logs and found some more info:
[Sat Dec 1 10:38:08 2007] User.pm: "my" variable $sth masks earlier declaration in same scope at /home/bpbs/public_html/cgi-bin/communimail/clibs/SQL/CMAIL/User.pm line 157.
[Sat Dec 1 10:38:08 2007] signup.cgi: Use of uninitialized value in string eq at utils.pm line 569.
[Sat Dec 1 10:38:08 2007] signup.cgi: Use of uninitialized value in string eq at utils.pm line 569.
[Sat Dec 1 10:38:08 2007] signup.cgi: Use of uninitialized value in string eq at signup.cgi line 94.
[Sat Dec 1 10:38:08 2007] signup.cgi: Net::CMD (Net::SMTP) DATAEND command failed.
Notice the code on this line :
my $sth = $self->{ dbh }->prepare( "select COUNT(*) as c from Users" ) ||&html_die( "DB Error: " . $self->{ dbh }->errstr);
$sth->execute() || &html_die( "DB Error: " . $self->{ dbh }->errstr);
my $db_class = $sth->fetch();
&utils::smsg('limit_users') if $db_class->[0] >= $libraries::db_class;
my $sth = $self->{ dbh }->prepare( "select * from Users where login = ?" ) || &html_die( "DB Error: " . $self->{ dbh }->errstr);
The my seems to reset the variable. Any ideas on this?
Thanks,
Joe
[Sat Dec 1 10:38:08 2007] User.pm: "my" variable $sth masks earlier declaration in same scope at /home/bpbs/public_html/cgi-bin/communimail/clibs/SQL/CMAIL/User.pm line 157.
[Sat Dec 1 10:38:08 2007] signup.cgi: Use of uninitialized value in string eq at utils.pm line 569.
[Sat Dec 1 10:38:08 2007] signup.cgi: Use of uninitialized value in string eq at utils.pm line 569.
[Sat Dec 1 10:38:08 2007] signup.cgi: Use of uninitialized value in string eq at signup.cgi line 94.
[Sat Dec 1 10:38:08 2007] signup.cgi: Net::CMD (Net::SMTP) DATAEND command failed.
Notice the code on this line :
my $sth = $self->{ dbh }->prepare( "select COUNT(*) as c from Users" ) ||&html_die( "DB Error: " . $self->{ dbh }->errstr);
$sth->execute() || &html_die( "DB Error: " . $self->{ dbh }->errstr);
my $db_class = $sth->fetch();
&utils::smsg('limit_users') if $db_class->[0] >= $libraries::db_class;
my $sth = $self->{ dbh }->prepare( "select * from Users where login = ?" ) || &html_die( "DB Error: " . $self->{ dbh }->errstr);
The my seems to reset the variable. Any ideas on this?
Thanks,
Joe
One more update. I'm seeing the following in the logs. Looks like the from address isn't being populated, though I'm entering it into the tool:
2007-12-03 09:33:16 1IzDIK-0001C9-5G <= <> H=localhost [127.0.0.1]:53639 I=[127.0.0.1]:25 P=esmtp S=1130 T="Test from new server" from <> for [email protected]
2007-12-03 09:33:16 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1IzDIK-0001C9-5G
2007-12-03 09:33:16 1IzDIK-0001C9-5G ** [email protected] F=<> R=send_to_gateway T=remote_smtp: SMTP error from remote mail server after MAIL FROM:<>: host gateway.websitewelcome.com [74.52.222.226]: 553 This message is a bounce back or malformed e-mail. ( )
2007-12-03 09:33:16 1IzDIK-0001C9-5G <= <> H=localhost [127.0.0.1]:53639 I=[127.0.0.1]:25 P=esmtp S=1130 T="Test from new server" from <> for [email protected]
2007-12-03 09:33:16 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1IzDIK-0001C9-5G
2007-12-03 09:33:16 1IzDIK-0001C9-5G ** [email protected] F=<> R=send_to_gateway T=remote_smtp: SMTP error from remote mail server after MAIL FROM:<>: host gateway.websitewelcome.com [74.52.222.226]: 553 This message is a bounce back or malformed e-mail. ( )
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
At this point, the emails are consistently sending, which is good. When they arrive, they have a FROM address populated, so I'm not sure why the log shows that there's no FROM address.
My only complaint is that it takes a long time for all the emails to send (up to an hour or more). It's unusual because all other emails from the server send instantaneously.
Any help tracking this down would be great.
Thanks,
Joe
My only complaint is that it takes a long time for all the emails to send (up to an hour or more). It's unusual because all other emails from the server send instantaneously.
Any help tracking this down would be great.
Thanks,
Joe
CommuniMail has a built-in throttle that controls how fast the messages are sent out. Too many messages going out at once can possibly trip the abuse monitor of your service provider, and too many messages arriving at once from the same source (ESPECIALLY to AOL subscribers) can get you put on blocklists. It is best that it sends out the messages slowly over a period of time, but you can adjust the setting. (sorry, I don't remember where it is, but it is pretty obvious that it is a timing parameter when you see it)