Re: [exim] Users Forward File

Top Page
Delete this message
Reply to this message
Author: Michael Sprague
Date:  
To: exim-users
Subject: Re: [exim] Users Forward File
Magnus Holmgren wrote:
> 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


Duh. I forgot you can even do that. Thanks.

mikeS

-- 
Michael F. Sprague     | mfs@???
http://www.saneinc.net | Provider of SpamOnion anti-spam service
System and Network Engineering (SaNE), Inc