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 April 3rd, 2004, 11:50 PM
limitup limitup is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 7 limitup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Programatically parse incoming emails?

I need to learn how to parse incoming emails that are sent a particular address on my system. Can anyone point me in the right direction? I would probably be using Perl. Would this be handled via Sendmail, procmail, etc? I don't know anything about mail "stuff" but my techie is out of town for a bit and I figure now is a good time to start learning.

Reply With Quote
  #2  
Old April 5th, 2004, 03:23 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
Install qmail and put a pipe to a program in the relevant dot-qmail file. This pipe should point to a Perl program, which will receive a copy of the mail on standard input for parsing.

If you don't understand much of that, then go install qmail, and come back for further, more detailed, instructions
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
  #3  
Old April 6th, 2004, 12:59 AM
limitup limitup is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 7 limitup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the reply.

From what I read, it is not recommended to run Sendmail and qmail - so basically you are suggesting that I replace Sendmail with qmail? That sounds like a larger project than I should try to tackle myself, but I can get help with that. It's a pretty busy live application server and I don't want to risk messing something up.

I was under the impression that I could do what I want to do using procmail along with sendmail, which seems a lot simpler. I'm curious as to why you recommend qmail? Can I NOT do what I want to do using procmail??

Thanks!

Last edited by limitup : April 6th, 2004 at 01:09 AM.

Reply With Quote
  #4  
Old April 7th, 2004, 03:41 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:
Thanks for the reply.

From what I read, it is not recommended to run Sendmail and qmail - so basically you are suggesting that I replace Sendmail with qmail?

Yes. I did it yesterday on a fairly busy production server handling a lot of outgoing mail and a handful of incoming mail boxes, and it took a few hours with no downtime at all. It's relatively straightforward; I can give you more in-depth advice and assistance if you need.
Quote:
That sounds like a larger project than I should try to tackle myself, but I can get help with that. It's a pretty busy live application server and I don't want to risk messing something up.

This is always a risk. Providing you test everything immediately after the qmail upgrade, you will be OK, since you can just turn it off and bring sendmail back up until the problem is fixed. The way I handled yesterday's migration was to run qmail on an alternate port (say, 26) while it was in test mode, and manually deliver an email via telnet to port 26, and check that it arrived in the right mail box. This won't mess up any existing incoming mail, as that all comes in on port 25.
Quote:
I was under the impression that I could do what I want to do using procmail along with sendmail, which seems a lot simpler. I'm curious as to why you recommend qmail? Can I NOT do what I want to do using procmail??

You probably can, but it is probably more hassle (though it might not sound like it!) to just replace the entire thing with qmail, which has this feature built in.

Sendmail and procmail are two complex pieces of software which have to be integrated together (Sendmail is also buggy and extremely complicated). qmail is one simple piece of software. You make the choice

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Programatically parse incoming emails?


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 6 hosted by Hostway