# Managed by Ansible — do not edit manually
set postmaster "postmaster"
set bouncemail
set logfile /dev/stdout
# Wake up every 60 seconds; each server's 'interval' is a multiplier of this
set daemon 60

{% for account in fetchmail_accounts | default([]) %}
poll {{ account.server }} proto {{ account.protocol | default('pop3') }}
  interval {{ account.poll_minutes | default(10) }}
  user "{{ account.username }}" password "{{ account.password }}"{% if account.ssl | default(true) %} ssl{% endif %}

  is {{ account.local_user }} here
  smtphost dovecot/24
  lmtp
  fetchall
  {{ 'keep' if account.keep | default(true) else 'no keep' }}

{% endfor %}
