Re: [exim] Shadowing individual users in a multi-domain envi…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: W B Hacker
Fecha:  
A: exim users
Asunto: Re: [exim] Shadowing individual users in a multi-domain environment
David M Walker wrote:

> We host multiple domains on our mail server and all mail for that domain
> must pass through this server.
> We have a requirement to shadow certain users for certain domains.
> We need to do this for all incoming and outgoing mail
>
> The domain specific configuration files are held in /clients/${domain}/etc
>
> So the need is this:
>
> For any message that passes through the system, look up the sender,
> recipient and cc/bcc in /clients/${domain}/etc/shadow_users, if the user
> exists then copy the message to a file (ideally that can be specified in
> some other config file) whilst allowing the message to continue. The
> purpose here being to audit rather than filter
>
> I have played with filters and transports with varying degrees of success
>
> What is the appropriate method ?
>
> Can anyone provide or point me to a pertinant example ?
>
> Thanks
> davidw
>


Our way uses extra boolean 'flag' fields in an SQL DB, but 'extra' fields, are
by no means limited to an SQL DB.

Ergo, you can use ONE file, and ONE lookup operation, just return the
'audit_flag', 'quarantine_flag', etc. at the same time you pull the rest of the
addressee-specific information.

Put a test for the flag(s) into your archiver/shadow router(s) and call
appropriate transports...

- or use what you have retrieved to alter the storage location..

Bill