Sitemap
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

#main Exim4.6 Config

#exim 4.6x cfg

#database config
hide pgsql_servers = host::port/database/username/password
#local domains
domainlist local_domains = @:pgsql;SELECT domain FROM domain WHERE aktiv=1 and "local"=1 and domain='$domain'

#relay domains /hosted virtual
domainlist relay_to_domains = pgsql;SELECT domain FROM domain WHERE aktiv=1 and "local"=0 and domain='$domain'

#relay hosts, local ips
#use official ip here for xxx.xxx.xxx.xxx that should relay
hostlist relay_from_hosts = 127.0.0.1:xxx.xxx.xxx.xxx:/home/Exim/etc/pop_b4_smtp.ip.log

##interfaces/ports the daeon listens on
#use official ip here for xxx.xxx.xxx.xxx
local_interfaces = 127.0.0.1 : xxx.xxx.xxx.xxx

primary_hostname = mail.fqdn
#full qualified mailserver hostname, rdns!!!

daemon_smtp_ports = 25 : 465
tls_on_connect_ports = 465

##ssl+tls mit openssl
# Added for TLS/SSL support
tls_advertise_hosts = *
tls_certificate = /home/Exim/etc/exim.crt
tls_privatekey = /home/Exim/etc/exim.key
#tls_dhparam = /etc/ssl/certs/dhparam.pem

##users
never_users = root
trusted_users = amavis

##look up dns for all hosts
host_lookup = *

##helo verification
helo_accept_junk_hosts = false
helo_try_verify_hosts = !local_domains

##strict rfc rules
rfc1413_hosts = *
rfc1413_query_timeout = 30s

##tuning

#max connections accept at once
smtp_accept_max = 192

# ..unless the system load is above 10
smtp_load_reserve = 10

#max connections per host (24 is a good value, some customers using ken and
# other gatewaysoftware for sending mail need that, 10 is not enough here)
smtp_accept_max_per_host = 24

#max message size (32M is ok too)
message_size_limit = 48M

##bounce messages
timeout_frozen_after = 7d
#freeze_tell = postmaster@some.domain.tld
ignore_bounce_errors_after = 2d

#thaw, e.g. unfreeze messages every X days
auto_thaw = 2d

#handle when warning emails are sent
delay_warning = 2h:8h:24h:48h

##check for free space
check_spool_space = 128M
check_spool_inodes = 1024

check_log_space = 128M
check_log_inodes = 2048

return_size_limit = 10k
message_body_visible = 1024

#max size of complete header
header_maxsize = 128k
#max size of single header line
header_line_maxsize = 7k

#systemfilter, for logging traffic
system_filter = /home/Exim/etc/smtp_trafficlog.filter
system_filter_user = exim

#avscanner setup for use with exiscan

#av_scanner = cmdline:\
# /home/Exim4/scr/oavscan %s:\
# FOUND:'(.+)'


av_scanner = clamd:127.0.0.1 3310
# max message size a mail get scanned for viruses
MESSAGE_SIZE_SCAN_MAX = 3M

#add a received header with more details

received_header_text = "Received: \
${if def:sender_fullhost {from ${sender_fullhost} \
${if def:sender_ident {(${sender_ident})}}} \
{${if def:sender_ident {from ${sender_ident} }}}} \
helo=$sender_helo_name \
by ${primary_hostname} \
${if def:received_protocol {with ${received_protocol}}} \
${if def:tls_cipher {(tls_cipher ${tls_cipher})}} \
${if def:tls_peerdn {(tls_peerdn ${tls_peerdn})}} \
(Exim ${version_number} #${compile_number} (mash)) \
id ${message_id} \
${if def:authenticated_id { by authid <$authenticated_id>}} \
${if def:authenticated_sender { by authsender <$authenticated_sender>}} \
${if def:sender_host_authenticated { with $sender_host_authenticated}} \
${if def:sender_address {\n\tfrom <$sender_address>}} \
${if def:received_for {\n\tfor <$received_for>}} \
"

##set up acl
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data


>>PopUP / Drucken / Print<<
blablabla