Changing permissions of postfixs "local"

Mike Bird mgb-ubuntu at
Thu Dec 14 17:39:27 UTC 2006

On Thursday 14 December 2006 00:55, Ingo Lantschner wrote:
> There is one thing I dont understand even after reading it several
> times: If deliveries are made with the rights of the receiving user
> (=nagios), why do I get this error:
> postfix/local[7570]:  to=<nagios at>, relay=local,
> delay=3, status=bounced (Command died with status 1:
> "/usr/local/nagios/libexec/eventhandlers/handle-RAID-mail". Command
> output: local: fatal: execvp
> /usr/local/nagios/libexec/eventhandlers/handle-RAID-mail: Permission
> denied )
> The line in /etc/aliases is:
> nagios: "|/usr/local/nagios/libexec/eventhandlers/handle-RAID-mail"
> this points to:
> -rwxrwxr-- 1 nagios admin  handle-RAID-mail
> which calls:
> -rwxrwxr-- 1 nagios admin  submit_check_result
> which outputs to:
> prw-rw---- 1 nagios nagcmd nagios.cmd
> In my understanding it should have been delivered, w/o making an extra
> aliases-file, since the receiving user has rw(x) on all files in the
> chain. My misunderstanding or wrong documentation?

When used as above in /etc/aliases, the string "nagios" is not interpreted
as a user, it is just a label.  You could also a line for "postmaster"
there even though you probably don't have a user called "postmaster".

--Mike Bird

More information about the ubuntu-server mailing list