This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Exim, .forward and DBD::Oracle


Hello Dmitry,

Dmitry Melekhov wrote:
> >
> >
> > Is Exim's PATH correct?  Can you print it from the script?
> 
> Shure. It is only /usr/bin.
> But I set my own enviroment with
> $ENV{PATH}=...
> with PATH /cygdrive/c/oracle/ora81/bin included.
> 
> Do I need to set enviroment for exim?

The way it works is that exim running as SYSTEM setuid 
to "tabel" and forks a delivery process. 
The PATH in the delivery process is /usr/bin,
see "path" in sections 28.3 and 28.4 of the exim user
guide http://www.exim.org/exim-html-4.10/doc/html/spec.html

Where do you set  $ENV{PATH}=...
Is it in the script?    
  (by the way, I don't know perl)

Try to print debug information 
 (e.g. commands "mount", "id", "env") from inside the script
  after you have set the PATH and other stuff.
Can you execute other simple commands from inside the script?
 
> > When does exim call this during mail processing?
> 
> Hmm.
> Exim calls this script because there is following
> string in .forward for user:
> |/home/tabel/test.pl
> 
> > Is it from a .forward file (guess from the Subject: line)
> 
> Yes.
> And it runs from user tabel, not from SYSTEM (exim runs from SYSTEM),
> as I see in task manager.
> 
> > Is there an error message in the exim log?
> Yes.
> 
> 2003-04-11 08:18:09 HD5T67-0002I4-N0 ** |"/home/tabel/test.pl"
> <tabel at center dot bel
> kam.com> R=userforward T=address_pipe: Child process of address_pipe
> transport r
> eturned 255 (could mean shell command ended by signal 127 (NULL)) from
> command:
> /home/tabel/test.pl

Pierre

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]