Sitemap
Kontakt
Links
+++ erd.trabant +++

+++ erd.trabant +++

blablabla

blablabla

Exim4 - VHost/PGSQL/SA/VScan Configuration

  1. #main
  2. #sql makros
  3. #acl rcpt
  4. #acl data
  5. #router
  6. #transports
  7. #retry
  8. #rewrite
  9. #auth

#router Exim4.6 Config

#################################################################
# ROUTERS #
#################################################################

begin routers

#hmmm, opt headers wont work, no error, but also no header
#opt_headers:
# driver = accept
# verify = false
# expn = false
# unseen = true
# headers_add = X-added-header: added by $primary_hostname\n\
# X-added-second: another added header line
# transport = dummy_transport


#archiver:
# driver = accept
# verify = false
# expn = false
# unseen = true
# transport = archiv_delivery

#backup:
# driver = accept
# verify = false
# expn = false
# unseen = true
# transport = backup_delivery

#amavis disabled for use with clamav, could be aneabled, then mails get checked twice
# :O, no we use exiscan , the smart way with clamav!
#amavis_router:
# driver = accept
## #condition = "${if or{ {eq {$received_protocol}{scanned-ok}} \
# {eq {$received_protocol}{spam-scanned}} } {0}{1}}"
# condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
# domains = *
# transport=amavis

###spamcheck router for use with spamassassin
#spamcheck_router:
# driver = accept
# # When to scan a message :
# # - it isn't already flagged as spam
# # - it isn't already scanned
# # - its not a local user
# condition = "${if and { {!def:h_X-Spam-Flag:} \
# {!eq {$received_protocol}{spam-scanned}}} {1}{0}}"
# #check_local_user #not set for not checking if local user blablabla
# no_verify
# transport = spamcheck


emailcopy:
driver = redirect
data = ${lookup pgsql{SQL_COPY_TO}{$value}}
unseen

emailcopy_alias:
driver = redirect
data = ${lookup pgsql{SQL_COPY_TO_ALIAS}{$value}}
unseen


##weiterleiten aller emails an domainaliase an die echte domain
##per frowarding aller *@alias.de an *@domain wobei alias.de=alias fuer domain.de ist
virtual_domainaliasing:
driver = redirect
data = ${local_part}@${lookup pgsql{SQL_DOMAIN_ALIAS) }{$value}fail}
#no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

local_user_alias_forward:
driver = redirect
data = ${lookup pgsql{SQL_FORWARD_LOCAL_ALIAS}{$value}fail}
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

local_useralias:
driver = accept
domains = ${lookup pgsql{SQL_LOCAL_ALIAS}{$value}fail}
#domains = +local_domains
transport = local_alias_delivery

local_user_forward:
driver = redirect
data = ${lookup pgsql{SQL_FORWARD_LOCAL}{$value}fail}
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

localuser:
driver = accept
domains = +local_domains
check_local_user
transport = local_delivery

autoresponder:
driver = accept
domains = +relay_to_domains

condition = ${if and \
{ \
{!match {$header_subject:}{\N^\*\*\*\*\*SPAM\s\(score\:\d{1,2}\.\d{1,2}\)\s\*\*\*\*\*(.*)$\N}} \
{!eq {} {${lookup pgsql {SQL_AUTORESPOND}}} } \
} \
{1}{0} \
}

# condition = ${if eq{} {${lookup pgsql {SQL_AUTORESPOND}}}{0}{1}}

senders = ! ^.*-request@.*:\
! ^bounce-.*@.*:\
! ^.*-bounce@.*:\
! ^owner-.*@.*:\
! ^postmaster@.*:\
! ^webmin@.*:\
! ^listmaster@.*:\
! ^mailer-daemon@.*:\
! ^support@.*:\
! ^root@.*

no_verify
no_expn
unseen
transport = send_autorespond

autoresponder_alias:
driver = accept
domains = +relay_to_domains


condition = ${if and \
{ \
{!match {$header_subject:}{\N^\*\*\*\*\*SPAM\s\(score\:\d{1,2}\.\d{1,2}\)\s\*\*\*\*\*(.*)$\N}} \
{!eq {} {${lookup pgsql {SQL_AUTORESPOND_ALIAS}}} } \
} \
{1}{0} \
}

# condition = ${if eq{} {${lookup pgsql {SQL_AUTORESPOND_ALIAS}}}{0}{1}}
senders = ! ^.*-request@.*:\
! ^bounce-.*@.*:\
! ^.*-bounce@.*:\
! ^owner-.*@.*:\
! ^postmaster@.*:\
! ^webmin@.*:\
! ^listmaster@.*:\
! ^mailer-daemon@.*:\
! ^root@.*
no_verify
no_expn
unseen
transport = send_autorespond_alias

virtual_user_forward:
driver = redirect
data = ${lookup pgsql{SQL_FORWARD}{$value}fail}
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply


virtual_user_alias_forward:
driver = redirect
data = ${lookup pgsql{SQL_FORWARD_ALIAS}{$value}fail}
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

virtual_known_local_user:
driver = accept
domains = ${lookup pgsql {SQL_VDOMAIN}{$value}fail}
transport = virtual_delivery

virtual_known_local_useralias:
driver = accept
domains = ${lookup pgsql {SQL_VDOMAIN_ALIAS}{$value}fail}
transport = virtual_alias_delivery

virtual_unknown_local_user:
driver = accept
domains = ${lookup pgsql {SQL_VDOMAIN_UNKNOWN}{$value}fail}
transport = virtual_catchall_delivery

dnslookup:
driver = dnslookup
domains = !+relay_to_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0:127.0.0.0/8
no_more


#no need for a fail router
#just fine to deny sending mails to unknown addresses when sending over smtp ,
# e.g. authed users preventing send spam....on smtp time
#fail:
# driver = redirect
# domains = +local_domains
# allow_fail
# data = :fail: unknown address




>>PopUP / Drucken / Print<<
blablabla