Re: [Exim] SpamAssassin and virtual hosting

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Paul Shields
Date:  
À: exim-users
Nouveaux-sujets: Re: [exim] Logging to SysLog just some events, [Exim] alias & pipe does not work, Re: [Exim] ${if eq ... } in pipe command, Re: [exim] EBL: blacklist for email addresses in Reply-To and message bodies, [Exim] ${if eq ... } in pipe command, [Exim] address_pipe error, Re: [Exim] alias & pipe does not work, Re: [exim] EBL: blacklist for email addresses in Reply-To and message bodies, Re: [exim] EBL: blacklist for email addresses in Reply-To and message bodies, Re: [exim] Problem compiling Exim with libdomainkeys - SOLVED, Re: [exim] Strange problem with domainkeys, Re: [Exim] WebRT and rt-mailgate exim problem, Re: [Exim] getting exim to work with the "rt" request tracker?, Re: [Exim] getting exim to work with the "rt" request tracker?
Sujet: Re: [Exim] SpamAssassin and virtual hosting
One suggestion is that you use the SQL option within SpamAssassin. You simply
call spamc with "-u $local_part@$domain" in your Exim transport and run spamd
daemon with the correct switch for this (-q -x from memory). The userpref
table is keyed on the 'username' field, but this can contain the
$local_part@$domain. Only problem you have is writing something to keep the
DB up to date.

HTH

Paul


On Tuesday 25 Feb 2003 12:34 am, Jeremy C. Reed wrote:
> All my email is done with users having separate passwd files per hostname.
> Right now, only one UID is used for all mail (all virtual hosts).
>
> My plan is to use different user_prefs for each hostname. Each host has
> its own home directory.
>
> Does anyone have separate SpamAssassin configs per virtual host?
>
> One idea I had was to make a map of hostname:user and then with my
> spamcheck transport's transport_filter have it dynamically use different
> spamc -u user
> And also set the user and group and home_directory and current_directory.
> The home_directory and current_directory will be easy because I can just
> use /home/${domain}.
>
> (I would use the username as ${domain}, but need to confirm that long
> usernames are okay.)
>
> Any other suggestions?
>
> Thanks,
>
>   Jeremy C. Reed
>   http://www.isp-faq.com/    -- find answers to your questions