Advertisement

03.05.2008 at 03:13PM PST, ID: 23217905
[x]
Attachment Details

Howto read STDIN from sendmail using perl

Asked by MKrauss in Perl Programming Language, SendMail Email Server

How do i read STDIN from sendmail ?
i'm trying to pipe the message through the sendmail alias file like:
help:       |/usr/local/bin/help.pl
All attemps to read are failed, like:

#!/usr/binperl

while (<STDIN>) {
#....
}

#or simply
print <STDIN>;

#or trying Mail::Message
my $msg = Mail::Message->read(\*STDIN);

the messag is always:

Mar  5 23:54:01 mail sm-mta[14609]: m25MrwNS014595: SYSERR(root): putbody: write error: Broken pipe
...
...
Mar  5 23:54:01 mail sm-mta[14609]: m25MrwNS014595: m25Ms1NS014609: DSN: unknown mailer error 2


could somebody help to point me to thr right track ?




Start Free Trial
[+][-]03.05.2008 at 03:27PM PST, ID: 21055814

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.05.2008 at 04:20PM PST, ID: 21056186

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.05.2008 at 09:58PM PST, ID: 21057729

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.05.2008 at 11:19PM PST, ID: 21058072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.06.2008 at 03:43AM PST, ID: 21059203

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.06.2008 at 06:32AM PST, ID: 21060454

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.06.2008 at 09:01AM PST, ID: 21062316

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.06.2008 at 09:32AM PST, ID: 21062704

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, SendMail Email Server
Sign Up Now!
Solution Provided By: Adam314
Participating Experts: 2
Solution Grade: B
 
 
[+][-]03.06.2008 at 09:41AM PST, ID: 21062786

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628