# default for module: srv-mail
#
[srv-mail]
  use_content_filter	true
  keep_content_filter	false		# if use_content_filter=false, needs to keep packages?
  use_dkim		true

[postfix]
  mailname		::network.hostname::.::network.domain::
  protocols		all
  loopback		127.0.0.0/8 [\::1]/128 [fe80\::]/10
  mynetworks		::network.network::.0/24
  message_size_limit	52428800	# 50Mb, warn, many servers uses 10485760
  relayhost				# if empty uses "transport" table
  add_destinations
  recipient_add_rules
  rbl_url_list		zen.spamhaus.org	 # alternatives: sbl or xbl
  soft_bounce		no		# for test/debug: temporaly use 'yes' when testing config changes
  debug_peer_list			# for test/debug
  compatibility_level	2		# see http://www.postfix.org/COMPATIBILITY_README.html if you need to set this

[dovecot]
  auth_debug		no
  ldap_hosts		::ldap.server::
  ldap_base		::ldap.base::
  ldap_user		uid=dovecot,ou=::ldap.slot_sysusers::,::ldap.base::
  ldap_password		::auth.dovecot.ldap_password::
  max_userip_conn	20
  auth_mechanisms	plain login
  tmp_ssl_ca_define
  imap_custom_options
  default_process_limit	100
  default_client_limit	1000
  create_mailboxes	subscribe	# create, subscribe or no

  # virtual mails
  #
  vmail_user		vmail		# WARN! use name here, not uid
  vmail_gid		users		# you can use name or gid here
  vmail_homes		/home/::dovecot.vmail_user::	# virtual users homes (%u will be appended)
  vmail_quota		1G		# default quota


[clamav]
  workdir		::path.workdir::/clamav

[amavis]
  workdir		::path.workdir::/amavis
  auto_load_virtuals	1
  notify_email
  enable_domains

[spamassassin]
  #channels		updates.spamassassin.org sought.rules.yerp.org
  channels		updates.spamassassin.org
  whitelist_from
  whitelist_from_rcvd
  blacklist_from
  blacklist_from_rcvd


# local spamassassin WHITELIST rule sample
#
[nospam.kubackup]
  fields		Subject
  header		=~ /^kubackup-run/

# local spamassassin BLACKLIST rule sample
#
[spam.viagra]
  fields		Subject From
  header		=~ /pfizer/i
  header_or		=~ /viagra/i
  score			5.0


# ku-all-mail-sync cronjob
#
[mail-sync]
  cron_command		/usr/sbin/ku-all-mail-sync
  cron_daytime		*/5  7-19      * * *
  cron_nighttime	*/30 20-23,0-6 * * *
  cron_custom		# append custom lines to cronjob

[dkim]
  user			opendkim
  group			opendkim
  rundir		/var/spool/postfix/var/run/opendkim

  # socket will be properly converted to 'unix:' and 'local:' where needed
  socket		local\:::dkim.rundir::/opendkim.sock
  #socket		inet:localhost:8891

