error with lmtpd socket... first time setting up mail server

Hi,

I'm setting up a mailserver for one domain with Postfix+Cyrus-imapd+cyrus-sasld… This is on CentOS4 (RHEL). I'm pretty sure I got postfix working OK… I can use the mail command to send a test message to an external account an it works fine. When I try to send mail to a local user, though, I get a message like this:

Mar 30 09:42:16 li9-32 postfix/pipe[28596]: 33CD441BA6: to=<sam@predisposition.com>, relay=cyrus, delay=1001, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Bad file descriptor_ 421 4.3.0 deliver: couldn't connect to lmtpd_ )</sam@predisposition.com> 

predisposition.com is the domain for this server. I have tried changing the mailboxtransport in /etc/postfix/main.cf a couple of times – the above error comes after changing mailboxtransport to "cyrus"… I get a similar error if I change it to either of the following:

#mailbox_transport = lmtp:unix:/usr/lib/cyrus-imapd/lmtpd

Mar 30 09:55:37 li9-32 postfix/lmtp[28644]: 7D85641BD7: to=<sam@predisposition.com>, relay=none, delay=0, status=deferred (connect to /usr/lib/cyrus-imapd/lmtpd[/usr/lib/cyrus-imapd/lmtpd]: Connection refused)</sam@predisposition.com> 

mailbox_transport = lmtp:unix:/usr/libexec/postfix/lmtp

Mar 30 09:54:18 li9-32 postfix/lmtp[28626]: 71D5641BD4: to=<sam@predisposition.com>, relay=none, delay=1100, status=deferred (connect to /usr/libexec/postfix/lmtp[/usr/libexec/postfix/lmtp]: Connection refused)</sam@predisposition.com> 

I've searched through many tutorials and find it's hard to get a coherent idea of how to set this up – any help would be MUCH appreciated.

Thanks,

Sam

3 Replies

What are you trying to achieve by setting mailboxtransport? What does your system do when mailboxtransport is set to the default value (empty)?

OK, EDIT here – I took away (commented out) the varriables in question, and now here is the situation. The mail to my new server is going into the ~/Maildir/new directory as it should… but when I check the mail via a client, the IMAP client looks in /var/spool/mail/… So, that's funny. I think I'm very close, though.

I tried setting mail using:

Postfix - http://postfix.state-of-mind.de/patrick … index.html">http://postfix.state-of-mind.de/patrick.koetter/smtpauth/index.html

Cyrus - http://www.delouw.ch/linux/Postfix-Cyru … ml/t1.html">http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/t1.html

However on Centos 4 I get:

DBERROR db4: Berkeley DB library configured to support only DB_PRIVATE environments

This was something that came about in FC2 and was to be fixed in FC3, but it looks like Centos and I think SuSE is also compiling db4 for private environments.

Google on DB_PRIVATE for some details.

I haven't figured out my next move yet, but this may be related to what you are doing / seeing. However I'm far from a mail expert, I'm still on "L" plates.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct