
4 changed files with 56 additions and 50 deletions
@ -0,0 +1,48 @@ |
|||
## |
|||
## LDA specific settings (also used by LMTP) |
|||
## |
|||
|
|||
# Address to use when sending rejection mails. |
|||
# Default is postmaster@%d. %d expands to recipient domain. |
|||
#postmaster_address = |
|||
|
|||
# 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 = no |
|||
|
|||
# Binary to use for sending mails. |
|||
#sendmail_path = /usr/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 = - |
|||
|
|||
# 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 = X-Original-To |
|||
|
|||
# Should saving a mail to a nonexistent mailbox automatically create it? |
|||
lda_mailbox_autocreate = yes |
|||
|
|||
# Should automatically created mailboxes be also automatically subscribed? |
|||
lda_mailbox_autosubscribe = yes |
|||
|
|||
protocol lda { |
|||
# Space separated list of plugins to load (default is global mail_plugins). |
|||
mail_plugins = $mail_plugins sieve |
|||
} |
@ -0,0 +1,5 @@ |
|||
# future changes |
|||
|
|||
once Postfix 3.5 is on stable, we can use the X-Original-To header with LMTP as well. Simply add the "flags=O" argument to the `lmtp` line in `master.cf`, and change `local_transport` in `main.cf` to be `lmtp:unix:private/dovecot-lmtp` and also add the parameter `lmtp_recipient_limit = 1` to `main.cf` as well. Also, feel free to delete the `15-lda` config file from the git for dovecot |
|||
|
|||
alternatively, could potentially use the `envelope-dsn` extension of Sieve if it is added to Pigeonhole |
Loading…
Reference in new issue