Re: [newbie] Postfix and CGI scripts

2001-12-12 Thread Randy Kramer

Miark wrote:
 The basic purpose of the script is to grab
 some information, and then mail it. In the
 script I'm using the following format:
 
 ---
 open(MAIL, | sendmail);
 print MAIL To: somebody\@someplace.com
 From: me\@mydomain.com
 Subject: Whatever
 
 The data goes here.;
 close(MAIL);
 ---
 
 I tried a little itty-bitty script just like
 this after su'ing to nobody and it did not
 work. But it works from the two user
 accounts on the box. I'm thinking it must be
 because the scripts are run by Apache as
 nobody, but at this point I'm willing to
 entertain any ideas.


Miark,

Thanks for your response!  

Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Postfix and CGI scripts

2001-12-11 Thread Randy Kramer

Miark wrote:
 I've got myself in a real bind. I've spent this night
 replacing sendmail with Postfix and everything works
 except my CGI scripts which is more or less disasterous.

Miark,

Sometime after you've had some sleep, would you mind posting a brief
explanation of what the CGI scripts have to do (or how they interact
with) Postfix?  Or, do they only interact with Apache, but somehow your
installation of Postfix stopped them  working with Apache?

Trying to learn,
Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Postfix and CGI scripts

2001-12-11 Thread Miark

Franki,

Yes, I expected my experience to be just as yours was.
Doing a which on sendmail brings up /usr/sbin/sendmail
and this is where sendmail is executed from in my CGI
scripts. As you said, this shouldn't be affected anyway.

I do still have sendmail installed but only because install 
instructions said I could, and recommended running both for
a day or two to make sure all the old mail gets picked up.
I was pretty careful to following the directions to the T.

I don't think old sendmail was written over the new because
it _does_ work for regular users. Or do I misunderstand? 

Incidentally, here is the exact test script that I'm using:


#!/usr/bin/perl

open(MAIL, |sendmail);

print MAIL To: miark
From: art\@gardnerbusiness.com
Subject: test

This is a test.;

close MAIL;
-

I can run it. Art can run it. If I su to nobody,
I run it, but the mail doesn't get sent.

Miark


 One day I saw the error of my ways and took the leap, 
 installing and configuring postfix..

 All my mailing CGI scripts continued to work fine.
 
 are you sure that you have the path to sendmail in your scripts??
 
 I would also ask if for ose reason you have both sendmail and postfix
 installed.
 
 if so, that is very likely your problem as its possible that the
 postfix/sendmail binary was replaced by the sendmail/sendmail binary, which
 will not work and will cause the problem you describe.



 rgds
 
 Frank
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Randy Kramer
 Sent: Tuesday, 11 December 2001 10:24 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] Postfix and CGI scripts
 
 
 Miark wrote:
  I've got myself in a real bind. I've spent this night
  replacing sendmail with Postfix and everything works
  except my CGI scripts which is more or less disasterous.
 
 Miark,
 
 Sometime after you've had some sleep, would you mind posting a brief
 explanation of what the CGI scripts have to do (or how they interact
 with) Postfix?  Or, do they only interact with Apache, but somehow your
 installation of Postfix stopped them  working with Apache?
 
 Trying to learn,
 Randy Kramer
 
 
 
 





 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com
 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [newbie] Postfix and CGI scripts

2001-12-11 Thread Franki

you can have both installed, but only if they put the sendmail binary in
different locations..

if they are putting then in the same place, that is the problem, it is the
sendmail binary that is being used, and since it doesn't work with postfix,
the mail will not be sent..

if you installed from mandrake rpms, then you have a problem...

if you must have both, then get the src of postfix and configure it for a
differnt sendmail binary location.. and point your scripts at that...


rgds


frank..

-Original Message-
From: Miark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 12 December 2001 1:59 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [newbie] Postfix and CGI scripts


Franki,

Yes, I expected my experience to be just as yours was.
Doing a which on sendmail brings up /usr/sbin/sendmail
and this is where sendmail is executed from in my CGI
scripts. As you said, this shouldn't be affected anyway.

I do still have sendmail installed but only because install
instructions said I could, and recommended running both for
a day or two to make sure all the old mail gets picked up.
I was pretty careful to following the directions to the T.

I don't think old sendmail was written over the new because
it _does_ work for regular users. Or do I misunderstand?

Incidentally, here is the exact test script that I'm using:


#!/usr/bin/perl

open(MAIL, |sendmail);

print MAIL To: miark
From: art\@gardnerbusiness.com
Subject: test

This is a test.;

close MAIL;
-

I can run it. Art can run it. If I su to nobody,
I run it, but the mail doesn't get sent.

Miark


 One day I saw the error of my ways and took the leap,
 installing and configuring postfix..

 All my mailing CGI scripts continued to work fine.

 are you sure that you have the path to sendmail in your scripts??

 I would also ask if for ose reason you have both sendmail and postfix
 installed.

 if so, that is very likely your problem as its possible that the
 postfix/sendmail binary was replaced by the sendmail/sendmail binary,
which
 will not work and will cause the problem you describe.



 rgds

 Frank

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Randy Kramer
 Sent: Tuesday, 11 December 2001 10:24 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [newbie] Postfix and CGI scripts


 Miark wrote:
  I've got myself in a real bind. I've spent this night
  replacing sendmail with Postfix and everything works
  except my CGI scripts which is more or less disasterous.

 Miark,

 Sometime after you've had some sleep, would you mind posting a brief
 explanation of what the CGI scripts have to do (or how they interact
 with) Postfix?  Or, do they only interact with Apache, but somehow your
 installation of Postfix stopped them  working with Apache?

 Trying to learn,
 Randy Kramer










 Want to buy your Pack or Services from MandrakeSoft?
 Go to http://www.mandrakestore.com





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Postfix and CGI scripts

2001-12-11 Thread Miark

Frank, you talked me into nuking sendmail and 
re-installing Postfix from the tarball. It's done.

The old main.cf is fine. I did a newaliases. 
I did a postfix reload. I have sent a few messages 
and they seem to be working. Some got caught in the 
queue earlier but they've been dribbling out slowly. 
(Is there a way to have postfix send everything in 
the queue immediately?)

Anyway, the regular accounts seem fine. Unfortunately,
my CGI scripts are _still_ not sending e-mail.

Any other ideas? An aliases problem? Permissions?
A configuration setting? What could it be?!!

Thanks for your help thus far.

Miark


- Original Message - 
From: Franki [EMAIL PROTECTED]
To: NEWBIE Mandrake List [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 10:59 AM
Subject: RE: [newbie] Postfix and CGI scripts


 you can have both installed, but only if they put the sendmail binary in
 different locations..
 
 if they are putting then in the same place, that is the problem, it is the
 sendmail binary that is being used, and since it doesn't work with postfix,
 the mail will not be sent..
 
 if you installed from mandrake rpms, then you have a problem...
 
 if you must have both, then get the src of postfix and configure it for a
 differnt sendmail binary location.. and point your scripts at that...
 
 
 rgds
 
 
 frank..
 
 -Original Message-
 From: Miark [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, 12 December 2001 1:59 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [newbie] Postfix and CGI scripts
 
 
 Franki,
 
 Yes, I expected my experience to be just as yours was.
 Doing a which on sendmail brings up /usr/sbin/sendmail
 and this is where sendmail is executed from in my CGI
 scripts. As you said, this shouldn't be affected anyway.
 
 I do still have sendmail installed but only because install
 instructions said I could, and recommended running both for
 a day or two to make sure all the old mail gets picked up.
 I was pretty careful to following the directions to the T.
 
 I don't think old sendmail was written over the new because
 it _does_ work for regular users. Or do I misunderstand?
 
 Incidentally, here is the exact test script that I'm using:
 
 
 #!/usr/bin/perl
 
 open(MAIL, |sendmail);
 
 print MAIL To: miark
 From: art\@gardnerbusiness.com
 Subject: test
 
 This is a test.;
 
 close MAIL;
 -
 
 I can run it. Art can run it. If I su to nobody,
 I run it, but the mail doesn't get sent.
 
 Miark
 
 
  One day I saw the error of my ways and took the leap,
  installing and configuring postfix..
 
  All my mailing CGI scripts continued to work fine.
 
  are you sure that you have the path to sendmail in your scripts??
 
  I would also ask if for ose reason you have both sendmail and postfix
  installed.
 
  if so, that is very likely your problem as its possible that the
  postfix/sendmail binary was replaced by the sendmail/sendmail binary,
 which
  will not work and will cause the problem you describe.
 
 
 
  rgds
 
  Frank
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Randy Kramer
  Sent: Tuesday, 11 December 2001 10:24 PM
  To: [EMAIL PROTECTED]
  Subject: Re: [newbie] Postfix and CGI scripts
 
 
  Miark wrote:
   I've got myself in a real bind. I've spent this night
   replacing sendmail with Postfix and everything works
   except my CGI scripts which is more or less disasterous.
 
  Miark,
 
  Sometime after you've had some sleep, would you mind posting a brief
  explanation of what the CGI scripts have to do (or how they interact
  with) Postfix?  Or, do they only interact with Apache, but somehow your
  installation of Postfix stopped them  working with Apache?
 
  Trying to learn,
  Randy Kramer
 
 
 
 
 
 
 
 
 
 
  Want to buy your Pack or Services from MandrakeSoft?
  Go to http://www.mandrakestore.com
 
 
 
 





 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com
 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Postfix and CGI scripts - FIXED

2001-12-11 Thread Miark

Hi all,

The problem is fixed. For anyone interested, here's
what happened. My CGI scripts were set up to use
sendmail, which they should, but they also had
sendmail-specific switchs added--something like
/usr/sbin/sendmail -oi -t or somethinglike that.
Anyway, Postfix didn't like the switches, so I 
eradicated them, and everything works beautifully. 

sigh

Miark

- Original Message - 
From: Miark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 4:58 AM
Subject: [newbie] Postfix and CGI scripts


 Hi all,
 
 I've got myself in a real bind. I've spent this night
 replacing sendmail with Postfix and everything works
 except my CGI scripts which is more or less disasterous.
 
 The CGI scripts are set up to use /usr/sbin/sendmail.
 It works as normal users, but nobody (which apache
 runs as) can't seem to do it.
 
 I've read through the Postfix website for clues, but
 it's coming on 5 am and I'm about fried. If anyone 
 has an idea, _please_ let me know at your earliest
 convenience.
 
 Thanks,
 Miark
 
 
 





 Want to buy your Pack or Services from MandrakeSoft? 
 Go to http://www.mandrakestore.com
 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com