Use LMTP instead of LDA, and force dehnerts.com to be the domain
authorAlex Dehnert <adehnert@mit.edu>
Fri, 27 Mar 2020 20:35:19 +0000 (20:35 +0000)
committerAlex Dehnert <adehnert@mit.edu>
Fri, 27 Mar 2020 20:35:19 +0000 (20:35 +0000)
- LMTP is apparently better? (Persistent server, rather than a program
  to run each time.)
- The RPi has a different domain, and in general this whole file is
  pretty domain-specific, so it makes sense to not depend on the host
  machine as much.

main.cf

diff --git a/main.cf b/main.cf
index 4e205df9274c58b828efa2c74e3f0af541528a71..0c4f270feaa74b2664bb2faf711d852c25f42fbc 100644 (file)
--- a/main.cf
+++ b/main.cf
@@ -73,6 +73,7 @@ mail_owner = postfix
 # parameters.
 #
 #mydomain = domain.tld
+mydomain = dehnerts.com
 
 # SENDING MAIL
 # 
@@ -476,7 +477,7 @@ home_mailbox = .maildir/
 # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
 #
 #mailbox_commane = /some/where/procmail
-mailbox_command = /usr/lib/dovecot/deliver
+#mailbox_command = /usr/lib/dovecot/deliver
 #mailbox_command = /some/where/procmail -a "$EXTENSION"
 
 # Bump mailbox size limit to 512MB since cache files were maxing out
@@ -500,6 +501,7 @@ mailbox_size_limit = 512000000
 #
 #mailbox_transport = lmtp:unix:/file/name
 #mailbox_transport = cyrus
+mailbox_transport = lmtp:unix:private/dovecot-lmtp
 
 # The fallback_transport specifies the optional transport in master.cf
 # to use for recipients that are not found in the UNIX passwd database.