zuazo/dovecot-cookbook

View on GitHub
templates/default/conf.d/20-lmtp.conf.erb

Summary

Maintainability
Test Coverage
# Generated by Chef

##
## LMTP specific settings
##

# Support proxying to other LMTP/SMTP servers by performing passdb lookups.
<%= DovecotCookbook::Conf.attribute(@conf, 'lmtp_proxy', false) %>

# When recipient address includes the detail (e.g. user+detail), try to save
# the mail to the detail mailbox. See also recipient_delimiter and
# lda_mailbox_autocreate settings.
<%= DovecotCookbook::Conf.attribute(@conf, 'lmtp_save_to_detail_mailbox', false) %>

# Verify quota before replying to RCPT TO. This adds a small overhead.
<%= DovecotCookbook::Conf.attribute(@conf, 'lmtp_rcpt_check_quota', false) %>

# Which recipient address to use for Delivered-To: header and Received:
# header. The default is "final", which is the same as the one given to
# RCPT TO command. "original" uses the address given in RCPT TO's ORCPT
# parameter, "none" uses nothing. Note that "none" is currently always used
# when a mail has multiple recipients.
<%= DovecotCookbook::Conf.attribute(@conf, 'lmtp_hdr_delivery_address', 'final') %>

<% if @protocols['lmtp'].kind_of?(Hash) and @protocols['lmtp'].length > 0 -%>
<%=  DovecotCookbook::Conf.protocol('lmtp', @protocols['lmtp']) %>
<% else -%>
protocol lmtp {
  # Space separated list of plugins to load (default is global mail_plugins).
  #mail_plugins = $mail_plugins
}
<% end -%>