Re: [exim] Users Forward File

Top Page
Delete this message
Reply to this message
Author: Magnus Holmgren
Date:  
To: exim-users
Subject: Re: [exim] Users Forward File
On Saturday 03 February 2007 15:48, Michael Sprague wrote:
> # Query macros
> POP = ${lookup mysql{select pop from users,domains where localpart =
> '${quote_mysql:$local_part}' and domain = '${quote_mysql:$domain}' and
> domains.enabled = '1
> ' and users.enabled = '1' and users.domain_id = domains.domain_id}}
> QUOTED = ${lookup mysql{select pop from users,domains where localpart =
> '${quote_mysql::$local_part}' and domain = '${quote_mysql::$domain}' and
> domains.enabled = '1' and users.enabled = '1' and users.domain_id =
> domains.domain_id}}


A probably better solution is to change the list separator to one that is not
present above, like the documentation suggests:

 # Look for a user's .mfilter file and process if any.
 mfilter:
    debug_print = "R: mfilter for $local_part@$domain"
    driver = redirect
    file = POP/.forward
    require_files = <| vexim:POP/.forward


-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans