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

Re: exim and pipe aliases?




  Users don't need to exist.  There's a setting in /etc/exim/exim.conf
that tells it what user to execute the process as.  If I put a long
sleep in the script I can see user "mail" or even "robert" executing the
script.  I've put some touch commands and debug commands as well in the
script and they get created and with the right ownership.  If I execute
the command from CLI by hand everything works the same except I don't
get the failures such as the undefined scheme in Protocols.pm.  I tried
setting the scheme, I can even read it and it's set.  

Makes no sense.


Thus spake Hans Wilmer (lee@yun.yagibdah.de):

> On Wed, Jan 15, 2003 at 05:05:38PM -0500, Robert L. Harris wrote:
> 
> > I'm trying to create and alias as such:
> > 
> > robert-pager:   | /usr/local/bin/Pager.pl 6787586413
> 
> Quoting the right part of the alias should help:
> 
> 
> robert-pager:   "| /usr/local/bin/Pager.pl 6787586413"
> 
> 
> Please, as I'm not absolutely sure, verify the follwing in the exim
> documentation (info exim):
> 
> Afair, exim understands your setting as to send mail that is addressed
> to the 'robert-pager' alias to the three users '|',
> '/usr/local/bin/Pager.pl' and '6787586413'. These users probably do
> not exist, thus exim cannot determine their UIDs. The sender should
> get an error message, telling him that his mail couldn't be delivered
> because the users he sent it to do not exist. --- Running newaliases
> is not neccessarily required.
> 
> BTW, what about users named '|' or '/usr/local/bin/Pager.pl'? Are such
> usernames allowed? Does anyone know what MTAs are supposed to do when
> they encounter such usernames (cd to /home/usr/local/bin/Pager.pl to
> deliver the mail to the users mailbox ...)?
> 
> As an example, the following entries in /etc/aliases work fine for me
> (needed for a mailing list I'm running):
> 
> 
> # Aliases for 'xk-users' mailing list.
> xk-users: "|/usr/lib/listar/listar -s xk-users"
> xk-users-request: "|/usr/lib/listar/listar -r xk-users"
> xk-users-repost: "|/usr/lib/listar/listar -a xk-users"
> xk-users-admins: "|/usr/lib/listar/listar -admins xk-users"
> xk-users-moderators: "|/usr/lib/listar/listar -moderators xk-users"
> xk-users-bounce: "|/usr/lib/listar/listar -bounce xk-users"
> xk-users-owner: lee@yun.yagibdah.de
> 
> 
> GH
> -- 
> Flying in shared space, keep your vidcom open.



: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: pgp2VfiduiUWf.pgp
Description: PGP signature


Reply to: