FreeBSD-5.1 LMTP problem with sendmail-8.12.10 and cyrus-2.1.16
RJ45
rj45 at slacknet.com
Fri Jan 16 09:57:41 PST 2004
Hello,
I write here because I Am really clueless.
there is a probem I have since a very long time which I Am not
able to solve.
I have now sendmail-8.12.10 and cyrus-2.1.16
I have all the time a "Connection refused to localhost" error
like if the /var/imap/socket/lmtp cannot be
opened by sendmail but the file permissions are correct
that is root:cyrus.
mailer=cyrusv2, relay=localhost, dsn=4.4.1,
stat=Deferred: Connection refused by localhost
sometimes I have another error:
mailer=cyrusv2, pri=35544, relay=localhost,
dsn=4.3.5, stat=Deferred: No such file or directory
but this has not a specific reason, it depends from time to time.
I Can reboot the system and it works or it just give me the above errors.
Once the system starts up with no error cyrus and sendmail will work
flawlessy, once I Reboot and the error above does occour sendmail+cyrus
won't ever work. THe same things of course happens starting cyrus
and sendmail by hand and killing them and restart them again, sometimes
works sometimes not. This is a problem because my mailserver has to
serve for 500 users.
All the settings are corrects at my eyes
here are the directory permissions for cyrus:
/var/imap
drwxr-xr-x 3 cyrus cyrus 512 Jan 13 11:33 certs
drwxr-xr-x 2 cyrus cyrus 512 Jan 16 11:09 db
drwx------ 2 cyrus cyrus 512 Jan 16 11:09 db.backup1
drwx------ 2 cyrus cyrus 512 Jan 16 11:08 db.backup2
drwxr-xr-x 2 cyrus cyrus 512 Jul 8 2003 db.backup3
-rw------- 1 cyrus cyrus 15663104 Jan 16 11:18 deliver.db
drwxr-xr-x 3 cyrus cyrus 1024 Dec 16 2002 deliverdb
drwxr-xr-x 3 cyrus cyrus 1024 Dec 16 2002 deliverdb.old
drwxr-xr-x 2 cyrus cyrus 512 Dec 16 2002 log
drwxr-xr-t 2 cyrus cyrus 9728 Dec 16 2002 lost+found
-rw------- 1 cyrus cyrus 36720 Dec 16 2002 mailboxes
-rw------- 1 root wheel 36720 Jan 8 2003 mailboxes.OK
-rw------- 1 cyrus cyrus 229376 Jan 16 11:17 mailboxes.db
-rw------- 1 root wheel 172032 Jan 8 2003 mailboxes.db.OK
-rw------- 1 root wheel 163840 Dec 16 2002 mailboxes.db.bck
-rw------- 1 cyrus cyrus 163840 Dec 16 2002 mailboxes.db.old
drwxr-xr-x 2 cyrus cyrus 512 Dec 16 2002 msg
drwxr-xr-x 2 cyrus cyrus 14336 Jan 16 11:18 proc
drwxr-xr-x 28 cyrus cyrus 512 Dec 16 2002 quota
drwxr-xr-x 28 cyrus cyrus 512 Dec 16 2002 sieve
drwxr-xr-x 2 cyrus cyrus 512 Jan 16 11:09 socket
-rw------- 1 cyrus cyrus 65 Dec 16 2002 ssrvtab
-rw------- 1 cyrus cyrus 737280 Jan 16 11:18 tls_sessions.db
drwxr-xr-x 27 cyrus cyrus 512 Dec 16 2002 user
here is /var/imap/socket
drwxr-xr-x 2 cyrus cyrus 512 Jan 16 11:09 .
drwxr-xr-x 17 cyrus cyrus 512 Jan 16 11:09 ..
-rw------- 1 cyrus cyrus 0 Jan 16 10:47 imap-0.lock
-rw------- 1 cyrus cyrus 0 Jan 16 10:47 imaps-0.lock
srwxrwxrwx 1 root cyrus 0 Jan 16 11:09 lmtp
-rw------- 1 cyrus cyrus 0 Jan 16 11:00 lmtp-0.lock
-rw------- 1 cyrus cyrus 0 Jan 16 11:09 lmtpunix-0.lock
-rw------- 1 cyrus cyrus 0 Jan 16 10:47 pop3-0.lock
-rw------- 1 cyrus cyrus 0 Jan 16 10:49 pop3s-0.lock
the /var/imap/socket/lmtp file is created by cyrus so I cannot understand
why sendmail gives me errors, I Really cannot figure out the permissions
are just fine.
Here is the sendmail configuration:
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /var/imap/socket/lmtp
I don't really know anymore what to do with this problem.
Sometimes the problem disappears and sendmail+cyrus works,
sometimes it comes out.
At the end I could solve the problem with this sendmail configuration:
Mcyrusv2, P=/usr/local/cyrus/bin/deliver, F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL,
E=\r\n, T=DNS/RFC822/SMTP,
U=cyrus:cyrus,
A=deliver -e -m $h -- $u
so I Call directly the deliver program and I have no problem anymore.
I do not know why when I use lmtp I run always in the "Connection
to localhost refused" and sometimes I run into "No such file or directory"
but this happens randomly.
I am running sendmail+cyrus on FreeBSD-5.1
could it be a problem due to FreeBSD softupdates ?
I have soft updates enabled on the /var/imap and /var/spool/imap
partition.
THe partition is on a RAID10 storage system.
Could someone pelase give me at least some hints which could help me
to solve the problem?
I had the same problem also on a standard no-RAID disk always
FreeBSD.
I also tryed
O DefaultUser=cyrus:cyrus
for sendmail but also this did not help me.
So I have no clue anymore.
thanks
Rick
More information about the freebsd-questions
mailing list