Mail Filters configuration at Exim,

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mail Filters configuration at Exim,

William Marcelo Piovezan
Hi,
 
I was thinking to setup server based mail rules to forward messages to specific IMAP folders and so on. Apparently the easiest way to do this is configuring the Mail Filtering at Exim.
 
So I’ve configured the Ingo Frontend from Horde Webmail to use the Sieve filtering and Dovecot/ManageSieve to upload the script to the server.
 
Now I know that would need to configure some Router/Transport at exim.conf to use that Sieve files. Anyone has configured some similar environment? I’m not an expert at Exim configuration and since Exim4u has customized a lot the exim.conf, I’m afraid to make some mistake at configuration.
 
Anyway, I did the following router configuration and placed it just before the virtual_domains_SA_off router
 
virtual_filters:
  driver = redirect
  allow_fail
  file = HOME_VIRTUAL/.dovecot.sieve
  check_ancestor
  allow_filter
  data = ${lookup mysql{select smtp 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}}
  condition = ${if exists{HOME_VIRTUAL/.dovecot.sieve} {yes} {no} }
             
# local_part_suffix = -*
# local_part_suffix_optional
  retry_use_local_part
  file_transport = virtual_delivery
  reply_transport = address_reply
  pipe_transport = address_pipe
  no_verify
  no_expn
 
 
The HOME_VIRTUAL has been defined as:
 
HOME_VIRTUAL = ${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}}
 
I would like to know if anyone has configured some server based mail rules and could share information with me.
 
Best Regards,
 
William.

_______________________________________________
users mailing list
[hidden email]
https://exim4u.org/mailman/listinfo/users