deliver: "couldn't connect to lmtpd: Permission denied"

Jacob cyrus-list at bitgig.com
Tue May 20 17:00:12 EDT 2003


I am trying to deliver to cyrus using qmail (with
"|/usr/cyrus/bin/deliver username" in each user's .qmail file), but
deliver fails reporting that it can't connect to lmtpd.

lmtpd is running and I can deliver messages via deliver on the command
line as root and as cyrus, but not as any other user.

The mailbox to which I am trying to deliver has 'anonymous p' set. I
have tried starting lmtpd with -a, and have also tried specifying
"deliver -a anonymous", but without luck.

Am I missing something obvious?

I am using cyrus imap 2.1.13 built from source on red hat 8.0, with
sasl 2.1.10 installed as an rpm.

Thanks,
Jacob

$ /usr/cyrus/bin/deliver username < email_file
couldn't connect to lmtpd: Permission denied
421 4.3.0 deliver: couldn't connect to lmtpd

$ ls -l /usr/cyrus/bin/deliver 
-rwxr-xr-x  1 root  root  973204 May 19 12:48 /usr/cyrus/bin/deliver*

# ls -l /var/imap/socket/lmtp
srwxrwxrwx  1 root  root       0 May 19 19:53 /var/imap/socket/lmtp=

$ cat /etc/imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root
sasl_pwcheck_method: auxprop
sendmail: /usr/sbin/sendmail
tls_cert_file: /var/imap/server.pem
tls_key_file: /var/imap/server.pem

$ diff /etc/cyrus.conf /usr/local/src/cyrus-imapd-2.1.13/master/conf/prefork.conf 
16,17c16,17
< #  pop3               cmd="pop3d" listen="pop3" prefork=3
< #  pop3s              cmd="pop3d -s" listen="pop3s" prefork=1
---
>   pop3                cmd="pop3d" listen="pop3" prefork=3
>   pop3s               cmd="pop3d -s" listen="pop3s" prefork=1

$ rpm -qa | grep sasl
cyrus-sasl-2.1.10-1
cyrus-sasl-devel-2.1.10-1
cyrus-sasl-plain-2.1.10-1
cyrus-sasl-md5-2.1.10-1

from /var/log/imapd.log:

May 20 13:44:06 hostname deliver[1930]: connect(/var/imap/socket/lmtp) failed: Permission denied




More information about the Info-cyrus mailing list