Hi,
i have a got a problem with setting up qmail and cyrus. i worked on it for a
couple of days but i am getting frusted now .... please help me with that.
thanks.
simon.
syslog: (the actual problem)
Apr 22 05:16:44 server qmail: 1050981404.517468 starting delivery 8: msg 419
Apr 22 05:16:44 server qmail: 1050981404.518441 status: local 1/10 remote
0/20
Apr 22 05:16:44 server qmail: 1050981404.546957 delivery 8: deferral:
connect_failed:_Permission_denied_/421_4.3.0_deliver:_connect_failed_/
Apr 22 05:16:44 server qmail: 1050981404.547411 status: local 0/10 remote
0/20
su-2.05a# uname -a
FreeBSD server.iicast.net 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Sat Nov 2
i386
su-2.05a# ps waux | grep master
cyrus 311 0.0 0.2 2384 1280 con- S 5:08AM 0:00.04
/usr/local/cyrus/bin/master
su-2.05a# ps waux | grep lmtpd
root 387 0.0 0.1 1076 648 p0 S+ 5:09AM 0:00.00 grep lmtpd
su-2.05a# ps waux | grep qmail
qmaild 322 0.0 0.1 900 464 con- I 5:08AM 0:00.00
/usr/local/bin/tcpserver -H -R -c 255 -x /etc/tcp.smtp.cdb -u 82 -g 81 0 25
/var/qmail/bin/qmail-smtpd
qmails 323 0.0 0.1 956 520 con- I 5:08AM 0:00.02 qmail-send
qmaill 329 0.0 0.1 900 520 con- I 5:08AM 0:00.00 splogger qmail
root 330 0.0 0.1 900 488 con- I 5:08AM 0:00.01 qmail-lspawn
./Maildir
qmailr 331 0.0 0.1 900 416 con- I 5:08AM 0:00.00 qmail-rspawn
qmailq 332 0.0 0.1 888 452 con- I 5:08AM 0:00.00 qmail-clean
su-2.05a# netstat -an | grep lmtp
d9763140 stream 0 0 d98bd300 0 0 0
/var/imap/socket/lmtp
su-2.05a# ls -l /var/imap/socket/
total 0
srwxrwxrwx 1 root cyrus 0 Apr 22 05:08 lmtp
su-2.05a# /usr/local/cyrus/bin/deliver -l
220 server.iicast.net LMTP Cyrus v2.0.16 ready
^C
cyrus.conf:
su-2.05a# cat /usr/local/etc/cyrus.conf
# standard standalone server implementation
START {
# do not delete these entries!
mboxlist cmd="ctl_mboxlist -r"
deliver cmd="ctl_deliver -r"
# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
# UNIX sockets start with a slash and are put into /var/imap/socketQuote:}
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=0
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
EVENTS {Quote:}
# this is required
checkpoint cmd="ctl_mboxlist -c" period=30
# this is only necessary if using duplicate delivery suppression
delprune cmd="ctl_deliver -E 3" period=1440
.qmail:Quote:}
su-2.05a# cat /home/psimon/.qmail
|/var/qmail/bin/preline -f /usr/local/cyrus/bin/deliver -l -a psimon psimon
** i tried several arguments without any luck
imapd.conf:
su-2.05a# cat /usr/local/etc/imapd.conf
#
# $FreeBSD: ports/mail/cyrus-imapd/files/imapd.conf,v 1.7 2002/01/17
18:19:56 ume Exp $
#
# Sample configurations file for Cyrus IMAPd
# Most lines in this file are commented; in this case the default is used.
# The commented lines (usually) contain the default value
# The pathname of the IMAP configuration directory
#
configdirectory: /var/imap
# The partition name used by default for new mailboxes
#
#defaultpartition: default
# The directory for the different partitions
#
partition-default: /var/spool/imap
# The umask value used by various Cyrus IMAP programs
#
#umask: 077
# Whether to allow anonymous logins
#
allowanonymouslogin: no
# The percent of quota utilization over which the server generates
# warnings.
#
#quotawarn: 90
# The length of the IMAP server's inactivity autologout timer, in minutes.
# The minimum value is 30, the default.
#
#timeout: 30
# Set the length of the POP server's inactivity autologout timer, in
# minutes. The minimum value is 10, the default.
#
#poptimeout: 10
# Set the minimum amount of time the server forces users to wait between
# successive POP logins, in minutes. The default is 0.
#
#popminpoll: 0
# The list of userids with administrative rights. Separate each userid
# with a space. We recommend that administrator userids be separate from
# standard userids. Sites using Kerberos authentication may use separate
# "admin" instances.
#
admins: root cyrus
# The list of the host names of the mail domain's IMSP servers. Separate
each
# host name with a space. The Kerberos identities of these servers may
login
# as any user in order to perform commands by proxy.
#
#imspservers: <none>
# The Access Control List (ACL) placed on a newly-created (non-user)
# mailbox that does not have a parent mailbox.
#
#defaultacl: anyone lrs
# The pathname of the news spool directory. Only used if the partition-news
# configuration option is set.
#
#newsspool: <no default>
# Prefix to be prepended to newsgroup names to make the corresponding IMAP
# mailbox names.
#
#newsprefix: <none>
# If nonzero, normal users may create their own IMAP accounts by creating
# the mailbox INBOX. The user's quota is set to the value if it is
positive,
# otherwise the user has unlimited quota.
#
#autocreatequota: 0
# Include notations in the protocol telemetry logs indicating the number
# of seconds since the last command or response.
#
#logtimestamps: no
# Number of seconds to pause after a successful plaintext login. For
systems
# that support strong authentication, this permits users to perceive a cost
# of using plaintext passwords.
#
#plaintextloginpause: 0
# The pathname of srvtab file containing the server's private key. This
# option is only used when the server is compiled with Kerberos
# authentication.
#
#srvtab: /etc/srvtab
# The list of remote realms whose users may log in using cross-realm
# authentications. Seperate each realm name by a space. This option is
# only used when the server is compiled with Kerberos authentication.
#
#loginrealms: <none>
# If enabled, any authentication identity which has a rights on a user's
# INBOX may log in as that user. This option is only used when the server
# is compiled with Kerberos authentication.
#
#loginuseacl: no
# If enabled, deliver wil look for Sieve scripts in user's home directories:
# ~user/.sieve.
#
sieveusehomedir: false
# If sieveusehomedir is false, this directory is searched for Sieve scripts.
# The active Sieve script is s called "default", placed in the users sieve
# sieve directory (ie. /var/imap/sieve/u/user).
#
sievedir: /var/imap/sieve
# If enabled, the partitions will also be hashed, in addition to the hashing
# done on configuration directories. This is recommended if one partition
has
# a very bushy mailbox tree.
#
#hashimapspool: false
# The mechanism used by the server to verify plaintext passwords. Possible
# values also include "PAM", "sasldb", "kerberos_v4", "passwd", and "shadow"
#
sasl_pwcheck_method: pwcheck
# If enabled, the SASL library will automatically create authentication
# secrets when given a plaintext password. See the SASL documentation.
#
#sasl_auto_transition: no
# If you wish to enable TLS/SSL, put CERT into following place, then
# uncomment this.
#tls_cert_file: /var/imap/server.pem
#tls_key_file: /var/imap/server.pem
#
# EOF
su-2.05a#