##
## LDA specific settings (also used by LMTP)
##
## Version 2.2.x (AR14759611)

# --------------------------------------------------------------------
# *** Please read this section before modifying this file ***
#
# Several of the keys and values within this file are modified by
#   Apple's Server Admin application.  Each key that is automatically
#   modified by the Server Admin app is identified with a comment
#   preceding the key with this note:
#   
# Note: This key is managed by Server Admin. See above before making changes
# 
# --------------------------------------------------------------------

# Address to use when sending rejection mails.
# Default is postmaster@<your domain>. %d expands to recipient domain.
postmaster_address = postmaster@@domain@.@tld@

# Hostname to use in various parts of sent mails (e.g. in Message-Id) and
# in LMTP replies. Default is the system's real hostname@domain.
#hostname = 

# If user is over quota, return with temporary failure instead of
# bouncing the mail.
quota_full_tempfail = yes

# Binary to use for sending mails.
sendmail_path = @PREFIX@/sbin/sendmail

# If non-empty, send mails via this SMTP host[:port] instead of sendmail.
#submission_host =

# Subject: header to use for rejection mails. You can use the same variables
# as for rejection_reason below.
#rejection_subject = Rejected: %s

# Human readable error message for rejection mails. You can use variables:
#  %n = CRLF, %r = reason, %s = original subject, %t = recipient
#rejection_reason = Your message to <%t> was automatically rejected:%n%r

# Delimiter character between local-part and detail in email address.
#recipient_delimiter = +
# Should be consistent with @PREFIX@/var/postfix/main.cf>recipient_delimiter
# `recipient_delimiter = +` used by CalendarServer
# Do *not* use `smtpd_recipient_restrictions = reject_unverified_recipient …`
# if `recipient_delimiter = yes` *and* dovecot-lmtp is used; also see
# dovecot/conf.d/15-lda.conf and dovecot/conf.d/20-lmtp.conf

# Header where the original recipient address (SMTP's RCPT TO: address) is taken
# from if not available elsewhere. With dovecot-lda -a parameter overrides this. 
# A commonly used header for this is X-Original-To.
#lda_original_recipient_header =

# Should saving a mail to a nonexistent mailbox automatically create it?
lda_mailbox_autocreate = yes

# Save messages to mailbox with mailbox name parsed from List-Id.  When enabled,
# the server will automatically create nonexistent mailboxes with name parsed from List-Id
#  Example: List-Id: List Header Mailing List <list-header.nisto.com>
#           mailbox name will would be: list-header
#lda_mailbox_listid_autosave = no

# Should automatically created mailboxes be also automatically subscribed?
#lda_mailbox_autosubscribe = no

# configuration for mail delivered by the `dovecot-lda` command. Shouldn't
# be needed since we are using LMTP, but kept for backwards compatibility.
protocol lda {
  # use fsync for write-safety - this deals with delivering actual mail
  mail_fsync = optimized
  # Space separated list of plugins to load (default is global mail_plugins).
  mail_plugins = $mail_plugins sieve push_notify
  # mail_plugins = $mail_plugins sieve
}
