Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 12th, 2004, 02:24 AM
hanumani hanumani is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: wendell, mass, USA
Posts: 87 hanumani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 18 sec
Reputation Power: 9
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

Reply With Quote
  #2  
Old February 12th, 2004, 03:10 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
What MTA (or mail server) are you using?
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old February 12th, 2004, 03:36 PM
hanumani hanumani is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: wendell, mass, USA
Posts: 87 hanumani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 18 sec
Reputation Power: 9
sendmail

Reply With Quote
  #4  
Old February 12th, 2004, 04:35 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
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.

Reply With Quote
  #5  
Old February 12th, 2004, 09:38 PM
hanumani hanumani is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: wendell, mass, USA
Posts: 87 hanumani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 18 sec
Reputation Power: 9
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]

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > maximum char in pipe?, Can't get long strings to go through


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT