
### main/00_vexim_listmacrosdefs
#################################

hide mysql_servers = localhost::(/var/run/mysqld/mysqld.sock)/vexim/vexim/CHANGE

# domains
VEXIM_VIRTUAL_DOMAINS = SELECT DISTINCT domain FROM domains WHERE type = 'local' AND enabled = '1' AND domain = '${quote_mysql:$domain}'
VEXIM_RELAY_DOMAINS = SELECT DISTINCT domain FROM domains WHERE type = 'relay'  AND domain = '${quote_mysql:$domain}'
VEXIM_ALIAS_DOMAINS = SELECT DISTINCT alias FROM domainalias WHERE alias = '${quote_mysql:$domain}'

# domains and relay networks
MAIN_LOCAL_DOMAINS = MAIN_LOCAL_DOMAINS : ${lookup mysql{VEXIM_VIRTUAL_DOMAINS}} : ${lookup mysql{VEXIM_ALIAS_DOMAINS}}
MAIN_RELAY_TO_DOMAINS = MAIN_RELAY_TO_DOMAINS : ${lookup mysql{VEXIM_RELAY_DOMAINS}}

# primary hostname
#MAIN_HARDCODE_PRIMARY_HOSTNAME=myhostname

# add vexim system user
#MAIN_TRUSTED_USERS = www-data

# enable TLS
#MAIN_TLS_ENABLE = true

# enable av scanner
#av_scanner = clamd:/var/run/clamav/clamd.ctl

# use spamassassing
#spamd_address = 127.0.0.1 783

.ifdef MAIN_KEEP_ENVIRONMENT
keep_environment = MAIN_KEEP_ENVIRONMENT
.else
keep_environment =
.endif
.ifdef MAIN_ADD_ENVIRONMENT
add_environment = MAIN_ADD_ENVIRONMENT
.endif

# validation of sending mailserver
#CHECK_RCPT_REVERSE_DNS = true
#CHECK_RCPT_SPF = true


# Mailman-related options. Uncomment VEXIM_HAVE_MAILMAN and adjust the macros
# below if want to use Mailman with this installation.
# NOTE: we only have integration with Mailman 2 ready at the moment.

#VEXIM_HAVE_MAILMAN = yes


# Home dir for your Mailman installation - aka Mailman's prefix
# directory.
# On a Red Hat/Fedora system using RPM, use "/var/mailman"
# On Debian using the deb package use "/var/lib/mailman"
# This is normally the same as ~mailman

MAILMAN_HOME=/usr/local/mailman


# User and group for Mailman, should match your --with-mail-gid
# switch to Mailman's configure script.
# Value is normally "mailman"

MAILMAN_USER=mailman
MAILMAN_GROUP=mailman


# The path of the Mailman mail wrapper script

MAILMAN_WRAP=MAILMAN_HOME/mail/mailman


# The path of the list config file (used as a required file when
# verifying list addresses)

MAILMAN_LISTCHK = MAILMAN_HOME/lists/${lc::$local_part}/config.pck


# If the local-part suffix is used, mails to user+whatevertext@example.org will be delivered to user@example.org
# Comment this line if you want to disable it, instead of + you can use a different separator.
VEXIM_LOCALPART_SUFFIX = +*

CHECK_RCPT_LOCAL_ACL_FILE = /etc/exim4/vexim-acl-check-rcpt.conf
CHECK_DATA_LOCAL_ACL_FILE = /etc/exim4/vexim-acl-check-content.conf

# Exim will put the detailed spam report into an X-Spam-Report header by default.
# This report is really huge by default, but its template can be tweaked to make
# it look almost exactly like contents of the X-Spam-Status header, which
# SpamAssassin adds when scanning messages externally, and which is a much more
# compact version of the report. If you tweak your template this way, you may
# as well want to change the header name here.
VEXIM_SPAM_REPORT_HEADER_NAME = X-Spam-Report
