[FIXED] What is this "550 Administrative prohibition&qu

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
kigoobe
Forum Commoner
Posts: 38
Joined: Mon Jul 10, 2006 3:26 am

[FIXED] What is this "550 Administrative prohibition&qu

Post by kigoobe »

I was configuring SM for a contact page. It was working this morning, however, after sending two or three batches (to two email addresses, both are mine) while testing, I couldn't send any more emails. I'm getting a message that mail is getting send, but in reality, I am receiving nothing.

On checking the log ($mailer->transactions, 1), i'm having this -

Code: Select all

Array
(
    [0] => Array
        (
            [command] => 
            [time] => 0.09971800 1176137326
            [response] => 220-kgb.kigoobe.com ESMTP Exim 4.63 #1 Mon, 09 Apr 2007 18:48:46 +0200 
220-We do not authorize the use of this system to transport unsolicited, 
220 and/or bulk e-mail.

        )

    [1] => Array
        (
            [command] => EHLO www.notreparis.com

            [time] => 0.10527300 1176137326
            [response] => 250-kgb.kigoobe.com Hello nobody at www.notreparis.com
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP

        )

    [2] => Array
        (
            [command] => MAIL FROM: 

            [time] => 0.10655800 1176137326
            [response] => 250 OK

        )

    [3] => Array
        (
            [command] => RCPT TO: 

            [time] => 0.10672400 1176137326
            [response] => 250 Accepted

        )

    [4] => Array
        (
            [command] => DATA

            [time] => 0.10690300 1176137326
            [response] => 354 Enter message, ending with "." on a line by itself

        )

    [5] => Array
        (
            [command] => To: support@kigoobe.com
From: Sou"r'av xxxyz 3 
Reply-To: 
Subject: 1 dead in Detroit-area office shooting
Date: Mon, 09 Apr 2007 18:48:46 +0200
X-Mailer: Swift 2.1.17 by Chris Corbyn
Content-Type: text/html; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable

A gunman opened fire on three people inside a suburban Detroit office bui=
lding this morning, killing one and injuring the others, police said. Troy P=
olice Lt. Gerry Scherlinck said the shooter used a either a rifle or a shotg=
un and was a former employee of one of the offices in the building. Officers=
 said they were not sure whether the gunman still was inside.
.

            [time] => 0.10710000 1176137326
            [response] => 550 Administrative prohibition

        )

    [6] => Array
        (
            [command] => MAIL FROM: 

            [time] => 0.13847600 1176137326
            [response] => 250 OK

        )

    [7] => Array
        (
            [command] => RCPT TO: 

            [time] => 0.13864400 1176137326
            [response] => 250 Accepted

        )

    [8] => Array
        (
            [command] => DATA

            [time] => 0.13878600 1176137326
            [response] => 354 Enter message, ending with "." on a line by itself

        )

    [9] => Array
        (
            [command] => To: sourav@kigoobe.com
From: Sou"r'av xxxyz 3 
Reply-To: 
Subject: 1 dead in Detroit-area office shooting
Date: Mon, 09 Apr 2007 18:48:46 +0200
X-Mailer: Swift 2.1.17 by Chris Corbyn
Content-Type: text/html; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable

A gunman opened fire on three people inside a suburban Detroit office bui=
lding this morning, killing one and injuring the others, police said. Troy P=
olice Lt. Gerry Scherlinck said the shooter used a either a rifle or a shotg=
un and was a former employee of one of the offices in the building. Officers=
 said they were not sure whether the gunman still was inside.
.

            [time] => 0.13896100 1176137326
            [response] => 550 Administrative prohibition

        )

)
Any help? What I'm doing wrong?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Oh, now there's something I can fix 8O Swift is clocking up "passes" as the RCPT TO command works, but is not waiting until the end of DATA before using that tally. I'll change that logic a little so that Swift correctly reports a fail in this scenario (where sending fails at the final hurdle).

May I suggest that you upgrade Swift? You're using a deprecated version so there won't be any bugfixes made to your version.

The 550 error isn't actually anything to do with Swift. 550 means that the server is refusing to deliver to that address unless you're logged in. I'm not sure why your inital batches would have worked but not this one. Have you contacted the SMTP server admin?
kigoobe
Forum Commoner
Posts: 38
Joined: Mon Jul 10, 2006 3:26 am

Post by kigoobe »

Thanks Chris. I was using Swift-2.1.17-php4, yes I see you have released version 3.

Will you be fixing the bug anytime soon? In that case I would wait for a few days before to upgrade, otherwise I'll upgrade now. One possible reason I thought - that I sent 6 emails to my addresses at 3 batches this morning from the same site (while testing). Yesterday, for the same reason I sent some 8 / 10 mails as well. Probably, the antispam is doing something here.

I've contacted my server guys. May be, somewhere the contact page from where I was testing the swift got listed as spam, or something. It would be strange though as I was sending from one site's address to another site's address, both are mine and hosted with the same host.

Anyway, thanks for your clarification.
Best
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

If I was a spam filter I would flag that message as spam based solely on its content. And having received tens of such messages... uhm... what do spam filters do in such situations?
kigoobe
Forum Commoner
Posts: 38
Joined: Mon Jul 10, 2006 3:26 am

Post by kigoobe »

Weirdan wrote:If I was a spam filter I would flag that message as spam based solely on its content. And having received tens of such messages... uhm... what do spam filters do in such situations?
Well messages were not the same ... some were only written test, some with some newspaper articles, to check paragraph breaks, quotes, etc. Like, from one webadress, as they do EHLO http://www.notreparis.com, I sent several mails to two addresses, say some 15 mails, within less than 24 hours, can that be considered as a spam or something?

Otherwise, what can be the problem ? Looks strange ...

And incase i'm doing anything wrong, here's the code -

Code: Select all

$psq = @mysql_query("SELECT email FROM contact LIMIT 1");
	if (!$psq) { die('<p> Erreur : '. mysql_error() .'</p>'); }
	$num_rows = mysql_num_rows($psq);
	if ($num_rows > 0) {
		while ($asq=mysql_fetch_array($psq)) {
		$recipients=stripslashes($asq['email']);
		$recipients = explode(",", $recipients);
		}
	}
	 
		$visitor_name = html_entity_decode($_POST['visitor_name'],ENT_QUOTES);
		$visitor_mail = $_POST['visitor_mail'];
		$subject_mail = html_entity_decode($_POST['subject_mail'],ENT_QUOTES);
		$themessage = html_entity_decode(html_entity_decode($_POST['themessage']));
		$sender = $visitor_name.' <'.$visitor_mail.'>';
		require('Swift-2.1.17-php4/Swift.php');
		require('Swift-2.1.17-php4/Swift/Connection/Sendmail.php');
		$connection = new Swift_Connection_Sendmail;
		$mailer = new Swift($connection, $_SERVER['SERVER_NAME']);
	
	if ($mailer->isConnected())
	{
		if ($mailer -> send($recipients,$sender,$subject_mail,$themessage,"text/html")) {
		?>
		<div style="padding:50px;" align="center">
		<strong>Hi <?=$visitor_name?></strong><br /><br />
		Your message has been sent<br />
		<br />
		<br /><br />
		<a href="index.php" class="menu">Go back</a>
		</div>
		<?php
		print "Log: <pre>".print_r($mailer->transactions, 1)."</pre>";
		} else {
		print '<div align="center" style="color:#FF0000;font-size:21px;padding:50px;">Error : Please try again</div>';
		}
		$mailer->close();
		
		//print "Log: <pre>".print_r($mailer->transactions, 1)."</pre>";
	}
	else print "Error : Please try again <pre>".print_r($mailer->errors, 1)."</pre><br />
		Log: <pre>".print_r($mailer->transactions, 1)."</pre>";
    ?>
kigoobe
Forum Commoner
Posts: 38
Joined: Mon Jul 10, 2006 3:26 am

Post by kigoobe »

Well, the problem is solved. Thanks for your relies. It was basically a server's error. My host fixed it. Thanks again.
Post Reply