cyrus + postfix + lmtpd questions

Greg A. Woods woods-cyrus at weird.com
Tue Mar 16 14:47:17 EDT 2010


At Sun, 14 Mar 2010 20:35:04 -0300, Diego Ventrice <fordcarnut at googlemail.com> wrote:
Subject: Re: cyrus + postfix + lmtpd questions
> 
> Could you give me an idea on how lmtp client should be configured
> on postfix's master.cf for connecting to a remote cyrus server ?

I think the answers that have been posted are correct, though I must
admit it's been a long time since I set up Postfix to deliver with LMTP
over the network....  (with another favourite mailer I just use a pipe
transport that runs the Cyrus "deliver" command which can use almost all
the same imapd.conf settings to control how it delivers via LMTP)


In any case I just wanted to post a section of my /etc/imapd.conf with
some comments about the Cyrus side of the configuration for LMTP over
TCP in case they are also of any help:


# If enabled, lmtpd returns a permanent failure code when a user's
# mailbox is over quota.  By default, the failure is temporary, which
# means your users would get to use your MTA's queue to extend their
# quota!  (and worse, you likely have far less control over the resource
# utilization of your MTA queue)
#
#lmtp_overquota_perm_failure: no
lmtp_overquota_perm_failure: yes

# The pathname of the Unix domain socket, or the hostname, that
# lmtpd(8) listens on.  This value is used by deliver(8).  This should
# match the path specified in cyrus.conf(5), or be the name of the
# host running the master(8) daemon listening on the LMTP service.
#
#lmtpsocket: /var/imap/socket/lmtp
lmtpsocket: mailbox.example.com

# To run LMTP over TCP the special user "postman" must authenticate to lmtpd,
# and this user must be listed as an lmtp admin on the LMTP server:
#
proxy_authname: postman
lmtp_admins: postman

# To run LMTP over TCP the password for the "proxy" user must be
# included (in plain text) here using a config variable formed from
# the short name of the lmtpsocket hostname (i.e. the part up to the
# first ".")
#
lmtp_allowplaintext: 1
#<LMTPSOCKETUNQALIFIEDHOST>_password: <some_secret_string>
mailbox_password: som3_s3cr3t_str1ng



Also of course you need to make sure "lmtp" is defined in /etc/services
and include the following in /etc/cyrus.conf in the SERVICES section.

    lmtp	cmd="lmtpd" listen="mailbox:lmtp" prefork=0

-- 
						Greg A. Woods

+1 416 218-0098                VE3TCP          RoboHack <woods at robohack.ca>
Planix, Inc. <woods at planix.com>      Secrets of the Weird <woods at weird.com>


More information about the Info-cyrus mailing list