[Exim] Procmail Exim and Virtual hosts.

Página Inicial
Delete this message
Reply to this message
Autor: Dev
Data:  
Para: procmail, exim-users
Assunto: [Exim] Procmail Exim and Virtual hosts.
Hello all,

I am trying to get the last version of procmail (downloaded and installed
today) to work with EXIM and my virtual hosts.
Any suggestions from either list would be appreciated.


In my EXIM config I have.
# TRANSPORTS CONFIGURATION
  procmail_pipe:
         driver = pipe
         command = /usr/bin/procmail
         return_fail_output = false
         return_output = false
         # Add useful headers
         delivery_date_add = true
         envelope_to_add = true


         # Keep someone's broken procmailrc from filling up your logs
         log_defer_output = false
         log_fail_output = false
         log_output = false


         # Keep procmail from making group- or world-writeable files
         umask = 0022


         # Use this only if you have group-writeable mailboxes;
         # for mailboxes in a sticky directory, remove it.
         group = mail


virtual_local_delivery:
driver = appendfile
#driver = pipe
create_directory = true
directory_mode = 700
file = /var/spool/virtual/${domain}/${local_part}
group = mail
mode = 0660
mode_fail_narrower = false

virtual_notfound:
         driver = autoreply
         to = $reply_address
         from = mailer-daemon@${domain}
         subject = "Mail delivery failed : User unknown"
         text = "Original message :"
         user = mail
         group = mail
         return_message


# DIRECTOR #
procmail:
         driver = localuser
         require_files = /etc/virtual/${domain}/${local_part}_procmailrc
         transport = procmail_pipe


userforward:
driver = forwardfile
file = .forward
no_verify
no_expn
check_ancestor
# filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

virtual_localuser:
    driver = aliasfile
    transport = virtual_local_delivery
    domains =  "pgsql;select mail_domains.domain where
mail_domains.domain='${domain}'"
    query = "select pop.mbox where pop.domain='$domain' and
pop.mbox='$local_part'"
    search_type = pgsql
    user = mail


virtual_alias:
    driver = aliasfile
    domains = "pgsql;select mail_domains.domain where
mail_domains.domain='${domain}'"
    query = "SELECT alias.email_add WHERE alias.mbox='${local_part}' OR
alias.mbox='*' AND alias.domain='${domain}' LIMIT 1"
    search_type = pgsql
    user = mail
    qualify_preserve_domain