I'm using Postfix v2.9.5 and just noticed this in the maillog.
What is triggering this is a php mail script I'm using to keep clients updated.
I'm not sure if it's a problem with my php script - or a postfix setting.
Any ideas?
Code:
Mar 4 17:55:37 localhost postfix/smtpd[13928]: connect from localhost[127.0.0.1]
Mar 4 17:55:37 localhost postfix/smtpd[13928]: improper command pipelining after HELO from localhost[127.0.0.1]: MAIL FROM: <support@example.com>\r\nRCPT TO: <****@gmail.com>\r\nDATA\r\nTo: ****@gmail.com
Mar 4 17:55:37 localhost postfix/smtpd[13928]: 7F0B345018: client=localhost[127.0.0.1]
Mar 4 17:55:37 localhost postfix/smtpd[13928]: lost connection after QUIT from localhost[127.0.0.1]
Mar 4 17:55:37 localhost postfix/smtpd[13928]: disconnect from localhost[127.0.0.1]
What is triggering this is a php mail script I'm using to keep clients updated.
Code:
$smtpServer = "localhost";
$localhost = "127.0.0.1";
$port = "25";
$timeout = "45";
$newLine = "\r\n";
$from = "support@example.com";
$smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout);
fputs($smtpConnect, "HELO $localhost". $newLine);
fputs($smtpConnect, "MAIL FROM: <$from>" . $newLine);
fputs($smtpConnect, "RCPT TO: <$Email>" . $newLine);
fputs($smtpConnect, "DATA" . $newLine);
$subj = "Weekly Newsletter";
$mesg .= "Here is what's been happening this past week :\n\n";
$mesg .= "Then my newsletter info goes here ...\n\n";
$headers = "MIME-Version: 1.0" . $newLine;
$headers .= "Content-type: text/plain; charset=iso-8859-1" . $newLine;
fputs($smtpConnect, "To: $Email\r\nFrom: $from\r\nSubject: $subj\r\n$headers\r\n\r\n$mesg\r\n.\r\n");
fputs($smtpConnect,"QUIT" . $newLine);
fclose($smtpConnect);
I'm not sure if it's a problem with my php script - or a postfix setting.
Any ideas?