Re: Trouble sending mail to a piped alias
On Wednesday 04 March 2009 10:19:01 Wietse Venema wrote: > Kirk Strauser: > > $ sudo /usr/local/www/data/bugzilla/email_in.pl < /tmp/bugtest > > This executes the command as ROOT. This test is invalid because: > > Mar 4 09:46:31 web2 local[61974]: fatal: execvp > > /usr/local/www/data/bugzilla/email_in.pl: No such file or directory > > This executes the command as NON-ROOT. For the benefit of others: Fixed by creating a new aliases-www file with group www and adding that to alias_maps and alias_database, then moving the alias to that file so the piped command runs with group www. -- Kirk Strauser
Re: Trouble sending mail to a piped alias
Kirk Strauser: > $ sudo /usr/local/www/data/bugzilla/email_in.pl < /tmp/bugtest This executes the command as ROOT. This test is invalid because: > Mar 4 09:46:31 web2 local[61974]: fatal: execvp > /usr/local/www/data/bugzilla/email_in.pl: No such file or directory This executes the command as NON-ROOT. Wietse
Re: Trouble sending mail to a piped alias
* Kirk Strauser : > I'm trying to allow users to reply to Bugzilla emails, but I'm having trouble > getting Postfix to execute the command that > handles this. The proper alias is defined: > > $ postconf | grep ^alias_maps > alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases > $ grep bugzilla-daemon /etc/aliases > bugzilla-daemon:"| /usr/local/www/data/bugzilla/email_in.pl" > > The program exists and works when tested on a local file: > > $ ls /usr/local/www/data/bugzilla/email_in.pl > /usr/local/www/data/bugzilla/email_in.pl > $ sudo /usr/local/www/data/bugzilla/email_in.pl < /tmp/bugtest > $ > > However, when I sent mail to that alias, I get: > > Mar 4 09:46:31 web2 postfix/qmgr[58081]: DC2E855E59D: from=, > size=305, nrcpt=1 (queue > active) > Mar 4 09:46:31 web2 local[61974]: fatal: execvp > /usr/local/www/data/bugzilla/email_in.pl: No such file or directory > Mar 4 09:46:31 web2 postfix/local[61973]: DC2E855E59D: > to=, relay=local, delay=1126, > delays=1126/0.01/0/0.04, dsn=4.3.0, status=deferred (temporary failure. > Command output: local: fatal: execvp > /usr/local/www/data/bugzilla/email_in.pl: No such file or directory ) Did you maybe chroot local? -- Ralf Hildebrandt (ralf.hildebra...@charite.de) snick...@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de "I rigged my cellular to send a message to my PDA, which is online with my PC, to get it to activate the voicemail, which sends the message to the inbox of my email, which routes it to the PDA, which beams it back to the cellular. Then I realized my gadgets have a better social life than I do." !" - Tom Ostad.
Trouble sending mail to a piped alias
I'm trying to allow users to reply to Bugzilla emails, but I'm having trouble getting Postfix to execute the command that handles this. The proper alias is defined: $ postconf | grep ^alias_maps alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases $ grep bugzilla-daemon /etc/aliases bugzilla-daemon:"| /usr/local/www/data/bugzilla/email_in.pl" The program exists and works when tested on a local file: $ ls /usr/local/www/data/bugzilla/email_in.pl /usr/local/www/data/bugzilla/email_in.pl $ sudo /usr/local/www/data/bugzilla/email_in.pl < /tmp/bugtest $ However, when I sent mail to that alias, I get: Mar 4 09:46:31 web2 postfix/qmgr[58081]: DC2E855E59D: from=, size=305, nrcpt=1 (queue active) Mar 4 09:46:31 web2 local[61974]: fatal: execvp /usr/local/www/data/bugzilla/email_in.pl: No such file or directory Mar 4 09:46:31 web2 postfix/local[61973]: DC2E855E59D: to=, relay=local, delay=1126, delays=1126/0.01/0/0.04, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /usr/local/www/data/bugzilla/email_in.pl: No such file or directory ) I'm sure I'm missing something simple, but don't know where to go from here. -- Kirk Strauser