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

#acl data Exim4.6 Config

#################################################################
# ACL DATA #
#################################################################

acl_check_data:

# accept hosts = :
# deny message = Possible Sobig.f rejected
# condition = ${if and{{eq{$h_x-mailscanner:}{Found to be clean}}\
# {match{$h_message-id:}{@$primary_hostname>\$}}}{true}{false}}

# --- BEGIN EXISCAN configuration ---
warn message = X-Contentscanner: use exiscan

# Reject messages that have serious MIME errors.

deny
message = Serious MIME defect detected ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}

# Unpack MIME containers and reject file extensions used by worms.
# This calls the demime condition again, but it will return cached results.
# Note that the extension list may be incomplete.
#
deny
message = We do not accept ".$found_extension" attachments here, \
please create an archive like zip or tgz or rar to send your file. thx.
demime = bat:btm:cmd:com:cpl:dll:exe:lnk:msi:pif:prf:reg:scr:vbs:url:sh

#add a header
warn message = X-MASH: \
added by $primary_hostname

warn message = X-Proto: \
${if def:received_protocol {with ${received_protocol}}} \
${if def:tls_cipher {(tls_cipher ${tls_cipher})}} \
${if def:tls_peerdn {(tls_peerdn ${tls_peerdn})}}

#achtung durch accept auth=* wird erreicht das gesendete mails von authed
#usern nicht durch.... geprueft werden etc
#oder eine der folgenden acldata rules gecheckt wird

accept authenticated = *

#lokale hosts duerfen alles senden

accept hosts = +relay_from_hosts
#@mx_any



#######
####### KEIN GREYLISTING , KEIN Viruscheck fuer authed users und relay_hosts!!!!!!!
#######


###greylisting:
#ne feine sache, aber authed user ausnehmen und lokal auch!!! und ausgiebig testen, manchem
#mailer brauchen ewig
#achtung, fuehrt evtl zu problemen wenn der sendende host noch nicht eingetragen ist und sender
#ueberpruefung startet
#
#aus dem irc:
#verblendet ...and another small question about sender-checking and greylisting: i set up greylisting acl
# and it just works fine, saves at least 50% of spam, woooot.
#verblendet but i heared that sender-checking is or could be a problem with greylisting... is this true?
#verblendet i see no problems so far, and senderchecking saves a lot of spam too
#verblendet i dont want to miss that, but what happens if a nother server will try senderchecking and
# the server/host is not greylisted yet? does it fail then?
#nutmeg verblendet: Not greylisting mail from empty sender and postmaster should get around that.

warn set acl_m7 = ${lookup pgsql{SQL_GREYLIST_TEST}{$value}{0}}

defer message = Greylisted - please try again a little later.
condition = ${if eq{$acl_m7}{0}{1}}
condition = ${lookup pgsql{SQL_GREYLIST_ADD}{yes}{no}}

defer message = Greylisted - please try again shortly.
condition = ${if eq{$acl_m7}{1}{1}}
###

#vscan
# Messages larger than MESSAGE_SIZE_SPAM_MAX are accepted without
# spam or virus scanning
accept
condition = ${if >{$message_size}{MESSAGE_SIZE_SCAN_MAX} {true}}
logwrite = :main: Not classified \
(message size larger than MESSAGE_SIZE_SPAM_MAX)

# --------------------------------------------------------------------
# Anti-Virus scanning
# This requires an 'av_scanner' setting in the main section.
#

warn message = X-Virus-ScanC: clamd by exiscan

deny
message = This message may contain a virus ($malware_name). please check your system. thx.
demime = *
malware = */defer_ok
# --------------------------------------------------------------------

#finally accept mail
accept

>>PopUP / Drucken / Print<<
blablabla