#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    wendell, mass, USA
    Posts
    87
    Rep Power
    15

    Exclamation maximum char in pipe?, Can't get long strings to go through


    Okay this is driving me nuts. My health is suffering, my boss is PISSED.

    I made this slick little mailing list manager in PHP and I was all excited about it! It takes an email message from standard in and based on criteria in the subject (ex. [my_fav_users] my subject here) it queries the DB and sends out the emails. Handles both HTML and plain text in multipart emails.

    the process is something like:

    1. User sends email to mailinglist@mydomain.com
    2. in the aliases file there is an alias:

    mailinglist: "|/home/myuser/do_mailing.php"


    I thought it was a well oiled machine until the first live run. After 6 hours of debugging trying to find what was creating the error, I realized it was the length of the email. If it's over 1670 charachters or so, my script doesn't even receive it.

    I log the activity comming into do_mailing.php so I know that these longer mails are not getting through. THey aren't even getting to the script, it's a problem with relaying it.

    But this is how mailman does it, what is the problem?

    THANK YOU!!!!!!

    Jacob
  2. #2
  3. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    What MTA (or mail server) are you using?
    Alex
    (http://www.alex-greg.com)
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    wendell, mass, USA
    Posts
    87
    Rep Power
    15
    sendmail
  6. #4
  7. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    sendmail
    Upgrade to qmail (instructions here). More security, more reliability, no random limits.

    You need to post your PHP script as well, so we can verify that there isn't something obvious in there causing the problem with longer emails.
    Last edited by alexgreg; February 12th, 2004 at 04:41 PM.
    Alex
    (http://www.alex-greg.com)
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    wendell, mass, USA
    Posts
    87
    Rep Power
    15
    I can't justify an upgrade just for othe mentioned benefits, sendmail works fine, it's a busy server and I don't want to screw around really. If I knew that it was indeed impossible with sendmail (which I'm pretty sure it's not because mailman uses a simular procedure) I would consider upgrading.

    I could post the script, but i'm sure it's not the problem because I have the following 2 lines at the top of the script:

    PHP Code:
    $fp fopen("/var/log/mailing_list/run_log","a");
    fwrite($fp,date("Y-m-d H:i:s")."\n\"); 
    So I know if the script runs or not. It is seriously the difference of one char too much in the mail.

    Weird, huh?
    [/PHP]

IMN logo majestic logo threadwatch logo seochat tools logo