OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: DSPAM problem

From: mouss (usebsdfree.fr)
Date: Wed Oct 25 2006 - 07:19:47 CDT


Przemysław Czort wrote:
> I'm using dspam 3.6.8 + postfix 2.3.3,1
>
> i've create allias using:
>
> spam-test:
> "|/usr/local/bin/dspam --source=error --client --class=spam --user
> test --mode=teft"
>
> If i try to send email to spam-test i've receive an error:
>
> local [643] fatal: execvp /usr/local/bin/dspam: Permission denied
> local [646] fatal: execvp /usr/local/bin/dspam: Permission denied
>
> Permission denied? I don't understand what is wrong.
>
>

aliases are executed as the owner of /etc/aliases except if this root.
In this case, they are executed as "nobody".

two solutions:

- split /etc/aliases:
alias_maps = /etc/aliases /etc/aliases.dspam
chown $dspamuser /etc/aliases.dspam

- use transports instead of aliases.