15-lda.conf.erb 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Generated by Chef
  2. ##
  3. ## LDA specific settings (also used by LMTP)
  4. ##
  5. # Address to use when sending rejection mails.
  6. # Default is postmaster@<your domain>.
  7. <%= Dovecot::Conf.attribute(@conf, 'postmaster_address') %>
  8. # Hostname to use in various parts of sent mails, eg. in Message-Id.
  9. # Default is the system's real hostname.
  10. <%= Dovecot::Conf.attribute(@conf, 'hostname') %>
  11. # If user is over quota, return with temporary failure instead of
  12. # bouncing the mail.
  13. <%= Dovecot::Conf.attribute(@conf, 'quota_full_tempfail', false) %>
  14. # Binary to use for sending mails.
  15. <%= Dovecot::Conf.attribute(@conf, 'sendmail_path', '/usr/sbin/sendmail') %>
  16. # If non-empty, send mails via this SMTP host[:port] instead of sendmail.
  17. <%= Dovecot::Conf.attribute(@conf, 'submission_host') %>
  18. # Subject: header to use for rejection mails. You can use the same variables
  19. # as for rejection_reason below.
  20. <%= Dovecot::Conf.attribute(@conf, 'rejection_subject', 'Rejected: %s') %>
  21. # Human readable error message for rejection mails. You can use variables:
  22. # %n = CRLF, %r = reason, %s = original subject, %t = recipient
  23. <%= Dovecot::Conf.attribute(@conf, 'rejection_reason', 'Your message to <%t> was automatically rejected:%n%r') %>
  24. # Delimiter character between local-part and detail in email address.
  25. <%= Dovecot::Conf.attribute(@conf, 'recipient_delimiter', '+') %>
  26. # Header where the original recipient address (SMTP's RCPT TO: address) is taken
  27. # from if not available elsewhere. With dovecot-lda -a parameter overrides this.
  28. # A commonly used header for this is X-Original-To.
  29. <%= Dovecot::Conf.attribute(@conf, 'lda_original_recipient_header') %>
  30. # Should saving a mail to a nonexistent mailbox automatically create it?
  31. <%= Dovecot::Conf.attribute(@conf, 'lda_mailbox_autocreate', false) %>
  32. # Should automatically created mailboxes be also automatically subscribed?
  33. <%= Dovecot::Conf.attribute(@conf, 'lda_mailbox_autosubscribe', false) %>
  34. <% if @protocols['lda'].kind_of?(Hash) and @protocols['lda'].length > 0 -%>
  35. <%= Dovecot::Conf.protocol('lda', @protocols['lda']) %>
  36. <% else -%>
  37. protocol lda {
  38. # Space separated list of plugins to load (default is global mail_plugins).
  39. #mail_plugins = $mail_plugins
  40. }
  41. <% end -%>