OSEC

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

From: Magnus Bäck (magnusdsek.lth.se)
Date: Mon Feb 07 2005 - 14:06:44 CST


On Monday, February 07, 2005 at 20:19 CET,
     Tomasz Grobelny <tomaszgrobelny.oswiecenia.net> wrote:

> On Monday 07 of February 2005 07:25, Magnus Bäck wrote:
>
> > No, but you can define a pipe(8)-based service in master.cf and
> > point virtual_transport to that service.
>
> You mean a line like this in master.cf:
> vscan unix - n n - 10 pipe user=<user> argv=/my/program ${sender}
> ${recipient}
> and set transport to vscan instead of virtual?

Yes.

> If so I have a few questions:
> 1. What do I have to do for the process to be run with privileges from
> mysql db as happens now for virtual?

The process will run with a fixed uid.

> 2. Should /my/program read message from stdin then write it to stdout or
> deliver the message to mailbox.

Your program will accept responsibility for each message, so you will
typically deliver it to a mailbox.

> 3. What can I use instead of /my/program? Amavis, maildrop?

What problem are you trying to solve? If all you want to do is deliver
the message to a mailbox, why won't virtual(8) do?

--
Magnus Bäck
magnusdsek.lth.se