[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim and pipe aliases?




This hit the nail on the head.  Only one problem now.  If I save an
email to a "file" and do a:

cat <file> |/usr/local/bin/pager as user "nomad" it works great.

If I set this to use user nomad and try to run it my logs show:

---------------------------------------------------------------------

system_aliases director succeeded for robert-pager
>>>>>> Local deliveries >>>>>>
delivering |/usr/local/bin/Pager.pl as |/usr/local/bin/Pager.pl using
address_pipe:
  uid=1000 gid=100 home=NULL current=/
  auxiliary group list: <none>
set_process_info:  9950 delivering 18Z0f2-0002aQ-00 to
|/usr/local/bin/Pager.pl using address_pipe
address_pipe transport entered
Writing message to pipe
set_process_info:  9952 reading output from |/usr/local/bin/Pager.pl
address_pipe transport yielded 7
LOG: 0 MAIN       
  ** |/usr/local/bin/Pager.pl <robert-pager@rdlg.net> D=system_aliases
T=address_pipe: Child process of a
ddress_pipe transport returned 255 (could mean shell command ended by
signal 127 (Unknown signal 127)) fr
om command: /usr/local/bin/Pager.pl
set_process_info:  9948 tidying up after delivering 18Z0f2-0002aQ-00
Processing retry items
Succeeded addresses:
robert-pager@rdlg.net: no retry items
Failed addresses: 
|/usr/local/bin/Pager.pl: no retry items
robert-pager@rdlg.net: no retry items
Deferred addresses:
end of retry processing

---------------------------------------------------------------------

I end up getting a bounce saying it couldn't submit the URL (using
LWP::Simple to submit).

Thoughts?
  Robert



Thus spake Shyamal Prasad (shyamal.prasad@sbcglobal.net):

>     "Robert" == Robert L Harris <Robert.L.Harris@rdlg.net> writes:
> 
>     Robert> I'm trying to create and alias as such:
>     Robert> robert-pager: | /usr/local/bin/Pager.pl 6787586413
> 
>     Robert> I execute newalias and send an email to "robert-pager" and
>     Robert> I get this in my /var/log/exim/mainlog:
> 
>     Robert> 2003-01-15 17:01:09 18Yvav-0001i8-00 Neither the
>     Robert> system_aliases director nor the address_pipe transport set
>     Robert> a uid for local delivery of | /usr/local/bin/Pager.pl
>     Robert> 6787586413
> 
>     Robert> I don't see any settings in /etc/exim/exim.conf which
>     Robert> would be relevant as the only entry as what uid's we won't
>     Robert> accept and exim runs as user mail, not root.
> 
>     Robert> Thoughts?  Robert
> 
> I don't do this, but my exim.conf has what seems to be the answer in
> the file comments:
> 
> # This director handles aliasing using a traditional /etc/aliases file.
> # If any of your aliases expand to pipes or files, you will need to set
> # up a user and a group for these deliveries to run under. You can do
> # this by uncommenting the "user" option below (changing the user name
> # as appropriate) and adding a "group" option if necessary.
> 
> system_aliases:
>   driver = aliasfile
>   file_transport = address_file
>   pipe_transport = address_pipe
>   file = /etc/aliases
>   search_type = lsearch
> # user = list
> 
> 
> Cheers!
> Shyamal
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



:wq!
---------------------------------------------------------------------------
Robert L. Harris                     | PGP Key ID: FC96D405
                               
DISCLAIMER:
      These are MY OPINIONS ALONE.  I speak for no-one else.
FYI:
 perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

Attachment: pgpa95Y19c1c0.pgp
Description: PGP signature


Reply to: