how to run dovecot imap on separate server from postfix?
Hello
we are using version 2.2.13 on debian.
currently imap runs on the same system as postfix , spamassassin and other mail related software.
I'd like to move dovecot imapd and mail storage to its own system.
I've search google and wiki and could not see how to do so.
could someone please point me in the direction to that done? I like reading documentation..
here is more info on our set up:
postfix: # grep dovecot /etc/postfix/* /etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp /etc/postfix/main.cf:smtpd_sasl_type = dovecot
kind regards Rob Fantini
Am 17.02.2015 um 22:29 schrieb Robert Fantini:
we are using version 2.2.13 on debian.
currently imap runs on the same system as postfix , spamassassin and other mail related software.
I'd like to move dovecot imapd and mail storage to its own system.
I've search google and wiki and could not see how to do so.
could someone please point me in the direction to that done? I like reading documentation..
here is more info on our set up:
postfix: # grep dovecot /etc/postfix/* /etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp /etc/postfix/main.cf:smtpd_sasl_type = dovecot
just configure postfix to use "lmtp:host:port" of the dovecot machine
Hello Reindl, thank you for the response.
I want to make sure that the postfix delivery does not give up trying to get the email delivered when the lmtp host is not reachable. I do not just want to assume that the default settings are correct for us.
Are there postfix or other settings which can be checked and adjusted?
On Tue, Feb 17, 2015 at 4:37 PM, Reindl Harald h.reindl@thelounge.net wrote:
Am 17.02.2015 um 22:29 schrieb Robert Fantini:
we are using version 2.2.13 on debian.
currently imap runs on the same system as postfix , spamassassin and other mail related software.
I'd like to move dovecot imapd and mail storage to its own system.
I've search google and wiki and could not see how to do so.
could someone please point me in the direction to that done? I like reading documentation..
here is more info on our set up:
postfix: # grep dovecot /etc/postfix/* /etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp /etc/postfix/main.cf:smtpd_sasl_type = dovecot
just configure postfix to use "lmtp:host:port" of the dovecot machine
Am 17.02.2015 um 22:51 schrieb Robert Fantini:
I want to make sure that the postfix delivery does not give up trying to get the email delivered when the lmtp host is not reachable. I do not just want to assume that the default settings are correct for us.
Are there postfix or other settings which can be checked and adjusted?
postfix was *not* written by a moron and hence in any case any mail in the queue will be re-tried until "maximal_queue_lifetime" is reached
there is no difference if lmtp is a unix socket or on the network because nobody can say for sure that the lmtpd on localhost is reachable 365/7/24 and hence any sane MTA handles errors properly
On Tue, Feb 17, 2015 at 4:37 PM, Reindl Harald h.reindl@thelounge.net wrote:
Am 17.02.2015 um 22:29 schrieb Robert Fantini:
we are using version 2.2.13 on debian.
currently imap runs on the same system as postfix , spamassassin and other mail related software.
I'd like to move dovecot imapd and mail storage to its own system.
I've search google and wiki and could not see how to do so.
could someone please point me in the direction to that done? I like reading documentation..
here is more info on our set up:
postfix: # grep dovecot /etc/postfix/* /etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp /etc/postfix/main.cf:smtpd_sasl_type = dovecot
just configure postfix to use "lmtp:host:port" of the dovecot machine
Hello again Reindl Harald
I always thought Wietse Venema was only as smart as me ;-)
seriously thank you for the help.
On Tue, Feb 17, 2015 at 4:57 PM, Reindl Harald h.reindl@thelounge.net wrote:
Am 17.02.2015 um 22:51 schrieb Robert Fantini:
I want to make sure that the postfix delivery does not give up trying to get the email delivered when the lmtp host is not reachable. I do not just want to assume that the default settings are correct for us.
Are there postfix or other settings which can be checked and adjusted?
postfix was *not* written by a moron and hence in any case any mail in the queue will be re-tried until "maximal_queue_lifetime" is reached
there is no difference if lmtp is a unix socket or on the network because nobody can say for sure that the lmtpd on localhost is reachable 365/7/24 and hence any sane MTA handles errors properly
On Tue, Feb 17, 2015 at 4:37 PM, Reindl Harald h.reindl@thelounge.net
wrote:
Am 17.02.2015 um 22:29 schrieb Robert Fantini:
we are using version 2.2.13 on debian.
currently imap runs on the same system as postfix , spamassassin and other mail related software.
I'd like to move dovecot imapd and mail storage to its own system.
I've search google and wiki and could not see how to do so.
could someone please point me in the direction to that done? I like reading documentation..
here is more info on our set up:
postfix: # grep dovecot /etc/postfix/* /etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp /etc/postfix/main.cf:smtpd_sasl_type = dovecot
just configure postfix to use "lmtp:host:port" of the dovecot machine
I'm trying to figure out the exact line to put to /etc/postfix/main.cf
for local lmtp deliver we use: mailbox_transport = *lmtp:unix:private/dovecot-lmtp*
for remote it is supposed to be:* lmtp:host:port*
yet at the remote lmtp does not use ports. UNIX domain sockets are used instead:
netstat --listening --programs| grep lmtp unix 2 [ ACC ] STREAM LISTENING 8457 3696/dovecot /var/run/dovecot/lmtp unix 2 [ ACC ] STREAM LISTENING 7998 3834/master private/lmtp unix 2 [ ACC ] STREAM LISTENING 7630 3696/dovecot /var/spool/postfix/private/dovecot-lmtp
Is there a different setting for lmtp using 'domain sockets' ?
On Tue, Feb 17, 2015 at 5:02 PM, Robert Fantini robertfantini@gmail.com wrote:
Hello again Reindl Harald
I always thought Wietse Venema was only as smart as me ;-)
seriously thank you for the help.
On Tue, Feb 17, 2015 at 4:57 PM, Reindl Harald h.reindl@thelounge.net wrote:
Am 17.02.2015 um 22:51 schrieb Robert Fantini:
I want to make sure that the postfix delivery does not give up trying to get the email delivered when the lmtp host is not reachable. I do not just want to assume that the default settings are correct for us.
Are there postfix or other settings which can be checked and adjusted?
postfix was *not* written by a moron and hence in any case any mail in the queue will be re-tried until "maximal_queue_lifetime" is reached
there is no difference if lmtp is a unix socket or on the network because nobody can say for sure that the lmtpd on localhost is reachable 365/7/24 and hence any sane MTA handles errors properly
On Tue, Feb 17, 2015 at 4:37 PM, Reindl Harald h.reindl@thelounge.net
wrote:
Am 17.02.2015 um 22:29 schrieb Robert Fantini:
we are using version 2.2.13 on debian.
currently imap runs on the same system as postfix , spamassassin and other mail related software.
I'd like to move dovecot imapd and mail storage to its own system.
I've search google and wiki and could not see how to do so.
could someone please point me in the direction to that done? I like reading documentation..
here is more info on our set up:
postfix: # grep dovecot /etc/postfix/* /etc/postfix/main.cf:mailbox_transport = lmtp:unix:private/dovecot-lmtp /etc/postfix/main.cf:smtpd_sasl_type = dovecot
just configure postfix to use "lmtp:host:port" of the dovecot machine
Am 18.02.2015 um 18:15 schrieb Robert Fantini:
I'm trying to figure out the exact line to put to /etc/postfix/main.cf
for local lmtp deliver we use: mailbox_transport = *lmtp:unix:private/dovecot-lmtp*
for remote it is supposed to be:* lmtp:host:port*
yet at the remote lmtp does not use ports. UNIX domain sockets are used instead
so just configure dovecot lmtpd to listen on a TCP port, port 24 is reserved for that - and don't open the port for any other machine as the postfix server
[harry@srv-rhsoft:~]$ cat /etc/services | grep -i lmtp lmtp 24/tcp # LMTP Mail Delivery lmtp 24/udp # LMTP Mail Delivery
Am 18.02.2015 um 18:20 schrieb Reindl Harald:
Am 18.02.2015 um 18:15 schrieb Robert Fantini:
I'm trying to figure out the exact line to put to /etc/postfix/main.cf
for local lmtp deliver we use: mailbox_transport = *lmtp:unix:private/dovecot-lmtp*
for remote it is supposed to be:* lmtp:host:port*
yet at the remote lmtp does not use ports. UNIX domain sockets are used instead
so just configure dovecot lmtpd to listen on a TCP port, port 24 is reserved for that - and don't open the port for any other machine as the postfix server
[harry@srv-rhsoft:~]$ cat /etc/services | grep -i lmtp lmtp 24/tcp # LMTP Mail Delivery lmtp 24/udp # LMTP Mail Delivery
and since i answered the same question yet on the postfix list
http://wiki2.dovecot.org/LMTP http://www.postfix.org/lmtp.8.html
OK I got delivery from postfix to lmtp working ,
by changing from unix_listener to inet_listener .
Reindl wrote "don't open the port for any other machine as the postfix server" I see that is important.. I assume that just a firewall setting? Or does the 'address' line in inet_listener lmtp have something to do with it?
On Wed, Feb 18, 2015 at 12:37 PM, Reindl Harald h.reindl@thelounge.net wrote:
Am 18.02.2015 um 18:20 schrieb Reindl Harald:
Am 18.02.2015 um 18:15 schrieb Robert Fantini:
I'm trying to figure out the exact line to put to /etc/postfix/main.cf
for local lmtp deliver we use: mailbox_transport = *lmtp:unix:private/dovecot-lmtp*
for remote it is supposed to be:* lmtp:host:port*
yet at the remote lmtp does not use ports. UNIX domain sockets are used instead
so just configure dovecot lmtpd to listen on a TCP port, port 24 is reserved for that - and don't open the port for any other machine as the postfix server
[harry@srv-rhsoft:~]$ cat /etc/services | grep -i lmtp lmtp 24/tcp # LMTP Mail Delivery lmtp 24/udp # LMTP Mail Delivery
and since i answered the same question yet on the postfix list
http://wiki2.dovecot.org/LMTP http://www.postfix.org/lmtp.8.html
Am 18.02.2015 um 20:07 schrieb Robert Fantini:
OK I got delivery from postfix to lmtp working ,
by changing from unix_listener to inet_listener .
Reindl wrote "don't open the port for any other machine as the postfix server" I see that is important.. I assume that just a firewall setting? Or does the 'address' line in inet_listener lmtp have something to do with it?
firewall as long as you don't have more than one network card and the interface dovecot is listening on is only reachable from the postfix server
even if: *always* restrict the packet filter, sooner or later somebody will change something without realize the impact and hence if it comes to security put at least 2 safety nets in front of server ports
On Wed, Feb 18, 2015 at 12:37 PM, Reindl Harald h.reindl@thelounge.net wrote:
Am 18.02.2015 um 18:20 schrieb Reindl Harald:
Am 18.02.2015 um 18:15 schrieb Robert Fantini:
I'm trying to figure out the exact line to put to /etc/postfix/main.cf
for local lmtp deliver we use: mailbox_transport = *lmtp:unix:private/dovecot-lmtp*
for remote it is supposed to be:* lmtp:host:port*
yet at the remote lmtp does not use ports. UNIX domain sockets are used instead
so just configure dovecot lmtpd to listen on a TCP port, port 24 is reserved for that - and don't open the port for any other machine as the postfix server
[harry@srv-rhsoft:~]$ cat /etc/services | grep -i lmtp lmtp 24/tcp # LMTP Mail Delivery lmtp 24/udp # LMTP Mail Delivery
and since i answered the same question yet on the postfix list
http://wiki2.dovecot.org/LMTP http://www.postfix.org/lmtp.8.html
participants (2)
-
Reindl Harald
-
Robert Fantini