Malformed Mail Header Info

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
cozbaldwin
Posts: 52
Joined: Wed Mar 08, 2006 3:24 pm

Malformed Mail Header Info

Post by cozbaldwin »

Hi,
I installed 2.0.15 and during testing, I submitted new question and submitted new content. The function worked, but the mail caused my mail server to go over quota (+200 per hour) so the emails were rejected and sent back to myself from mailer deamon.

I sent my host an email asking why this happened. They took a look at my headers and my logs. They sent this back to me:
Hello,

Thank you for the headers, I was able to track this issue down in our
logs. The reason for these errors is because somehow sending malformed
header information or omitting a from address in the message.

There are a few ways to get this fixed, both are minimally invasive but
require a little working around to insure the header information is not
corrupted as the message is sent.

Simply passing the mail through sendmail will avoid the problems with the
SMTP 'MAIL FROM' command that's causing the problems with the mail being
rejected randomly by using the following command:

echo "test" |sendmail -f sender@domain.com recipient@domain.com

You need to substitute the sender address with the one you're using and
the recipient is the recipient. Making that change in your script will
ensure that your mail will not get bounced again unless it really goes
over the 200/hr limit.

Also, many open source software allows you to change the mail settings to
use SMTP instead. If you simply change your email script to send messages
via our SMTP servers instead of the local MTA that seems to fix this bug
(because we use the SMTP login to track email addresses not the from
address). You can find some information about how to use an SMTP server
to send email with PHP here: http://phpmailer.codeworxtech.com/ (most any
other language will have a similar module you can use)
I figure Thorsten or someone else might know what this means... because I don't, really. Or... I don't know where to go to edit the header information or if I can switch to SMTP (i thought PMF did use smtp). So I know Thorsten is on vacation, but I hope someone will have an answer to this or he will when he's back.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Malformed Mail Header Info

Post by Thorsten »

Hi,

we added a new mail subsystem in version 2.5 because of these problems. SMTP isn't supported yet but will be added during the 2.5 release cycles.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply