Exim + Avelsieve

Jens Bergmann <[email protected]>
Newsgroups gmane.mail.exim.vexim.devel
Message-ID <[email protected]>
Hi,

I've finally managed to get a special avelsieve version and vexim work 
together.

I've got this guide[1] by david from a friend and followed the steps and 
tweaked it for vexims special needs.

So far everything seems to be working. Probably some of you might find 
this helpful too.

( sieve_vacation_directory isn't working. I didn't even try to get it 
working )

My router and transport can be found in the attachment. I would have put 
them in the wiki but i'm not able to create a new page (user jb).

Router has to be right before virtual_domains.

Cheers,
Jens

[1] http://dfoerster.de/opensource/exim-sieve-howto.html

_______________________________________________
Vexim mailing list
[email protected]
http://silverwraith.com/mailman/listinfo/vexim
vexim-sieve-transport.conf (text/plain, 1.8 KB)
Transport:
sieve_transport:
  debug_print = "T: sieve_transport for $local_part@$domain"
  driver = appendfile
  delivery_date_add
  envelope_to_add
  return_path_add
  mode = 0600
  maildir_format = true
  create_directory = true
  directory = ${lookup mysql{select smtp from users,domains \
        where localpart = '${quote_mysql:$local_part}' \
        and domain = '${quote_mysql:$domain}' \
        and users.domain_id = domains.domain_id}}/${sg {$address_file} {^(INBOX|inbox)} {}}
  user = ${lookup mysql{select users.uid  from users,domains \
        where localpart = '${quote_mysql:$local_part}' \
        and domain = '${quote_mysql:$domain}' \
        and users.domain_id = domains.domain_id}}
  group = ${lookup mysql{select users.gid from users,domains \
        where localpart = '${quote_mysql:$local_part}' \
        and domain = '${quote_mysql:$domain}' \
        and users.domain_id = domains.domain_id}}
  quota = ${lookup mysql{select users.quota from users,domains \
        where localpart = '${quote_mysql:$local_part}' \
        and domain = '${quote_mysql:$domain}' \
        and users.domain_id = domains.domain_id}{${value}M}}
  quota_is_inclusive = false
  #quota_size_regex = ,S=(\d+):
  quota_warn_threshold = 75%
  maildir_use_size_file = false
  quota_warn_message = "To: $local_part@$domain\n\
                        Subject: Mailbox quota warning\n\n\
                        This message was automatically generated by the mail delivery software.\n\n\
                        You are now using over 75% of your allocated mail storage quota.\n\n\
                        If your mailbox fills completely, further incoming messages will be automatically\n\
                        returned to their senders.\n\n\
                        Please take note of this and remove unwanted mail from your mailbox.\n"
vexim-sieve-router.conf (text/plain, 1.6 KB)
Router:
sieve:
  driver = redirect
  allow_fail
  user = www-data
  check_ancestor
  group = www-data
  file = /var/local/squirrelmail/data/$local_part@$domain.sievesource
  sieve_vacation_directory=$home/.sieve_vacation_db
  no_verify
  no_expn
  owners = www-data
  owngroups = www-data
  headers_add = ${if >{$spam_score_int}{${lookup mysql{select users.sa_tag * 10 from users,domains \
        where localpart = '${quote_mysql:$local_part}' \
        and domain = '${quote_mysql:$domain}' \
        and users.on_spamassassin = '1' \
        and users.domain_id=domains.domain_id }{$value}fail}} {X-Spam-Flag: YES\n}{} }
  headers_remove = ${if or { { <{$spam_score_int}{1} } \
                             { <{$spam_score_int}{${lookup mysql{select users.sa_tag * 10 from users,domains \
                       where localpart = '${quote_mysql:$local_part}' \
                       and domain = '${quote_mysql:$domain}' \
                       and users.on_spamassassin = 1 \
                       and users.domain_id=domains.domain_id}{$value}fail}} } \
                     { eq {0}{${lookup mysql{select users.sa_tag * 10 from users,domains \
                       where localpart = '${quote_mysql:$local_part}' \
                       and domain = '${quote_mysql:$domain}' \
                       and users.on_spamassassin = 0 \
                       and users.domain_id=domains.domain_id}{$value}fail}}} \
                   } {X-Spam-Score:X-Spam-Report} }
  local_part_suffix = -*
  local_part_suffix_optional
  retry_use_local_part
  pipe_transport = address_pipe
  reply_transport = address_reply
  file_transport = sieve_transport
  allow_filter = true
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.