ansible-mailserver-debian/journal-postfix/templates/main.yml

46 lines
1.9 KiB
YAML

# Configuration for journal-postfix, see /srv/journal-postfix
# To enable startup of systemd unit journal-postfix set this to yes:
startup: {{ 'yes' if startup else 'no' }}
# PostgreSQL database connection parameters
postgresql:
hostname: {{ mailserver.postgresql.host | default('127.0.0.1') }}
port: {{ mailserver.postgresql.port | default('5432') }}
database: {{ mailserver.postgresql.dbname | default('mailserver') }}
username: {{ mailserver.postgresql.username | default('mailserver') }}
password: {{ mailserver.postgresql.password | default('*************') }}
# Postfix parameters
postfix:
# Systemd unit name of the Postfix unit. Only one unit is supported.
systemd_unitname: postfix@-.service
# If you have configured Postfix to rewrite envelope sender
# addresses of outgoing mails so that it includes a VERP
# (Variable Envelope Return Path) of the form
# {local_part}+{verp_marker}-{id}@{domain}, where id is an
# integer, then set the verp_marker here:
verp_marker: {{ mailserver.postfix.verp_marker | default('') }}
# Poll timeout in seconds for fetching messages from the journal.
journal_poll_interval: 10.0
# How much time may pass before committing a database transaction?
# (The actual maximal delay can be one journal_poll_interval in addition.)
max_delay_before_commit: 60.0
# How many messages to cache at most before committing a database transaction?
max_messages_per_commit: 10000
# Delete delivery records older than this number of days.
# A value of 0 means that data are never deleted.
# Note: Deliveries may have a substantial time intervals over which they
# are active; here the age of a delivery is determined by its start time.
delete_deliveries_after_days: 30
# The time interval in seconds after which a deletion of old
# delivery records is triggered. (Will not be smaller than
# max_delay_before_commit + journal_poll_interval.)
delete_interval: 3600