hello,

I have been fighting this for a while. I am trying to setup Postfix-2.0.16+cyrus-Imap-2.1.16_1+cyrus-sasl-2.1.17_1 on my FreeBSD 4.9 Stable server's inside NIC.

Postfix is configured with: sasl2, TLS, BDB_ver 40
cyrus-imapd2' => '--with-sasl --with-openssl WITH_BDB_VER=4'
cyrus-sasl2' => '--with-openssl WITH_BDB_VER=4 --enable-auth-sasldb --enable-login'


Postfix runs fine by itself It complains that:

Jan 10 02:47:22 c1529030-a postfix/pipe[35530]: 51BDF4113: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=cyrus, delay=9701, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_ )

I know that the lmtpd socket is also handled by cyrus imap to deliver the mail to the cyrus mailboxes that the admin sets up in cyradm.

#ll /var/imap/socket/
srwxrwxrwx  1 root  cyrus  0 Jan 10 03:17 lmtp

Sasl has two users one admin and one user with passwords
#sasldblistusers2
[EMAIL PROTECTED]: userPassword
[EMAIL PROTECTED]: userPassword

When I run /usr/local/cyrus/bin/master

I get this output in /var/log/cyrus.imap
Jan 10 03:27:09 c1529030-a master[39752]: process started
Jan 10 03:27:09 c1529030-a master[39753]: about to exec /usr/local/cyrus/bin/ctl_cyrusdb
Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39753]: recovering cyrus databases
Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39753]: done recovering cyrus databases
Jan 10 03:27:09 c1529030-a master[39752]: servname not supported for ai_socktype, disabling lmtp
Jan 10 03:27:09 c1529030-a master[39752]: ready for work
Jan 10 03:27:09 c1529030-a master[39754]: about to exec /usr/local/cyrus/bin/ctl_cyrusdb
Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: checkpointing cyrus databases
Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: archiving database file: /var/imap/mailboxes.db
Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: archiving log file: /var/imap/db/log.0000000001
Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: archiving log file: /var/imap/db/log.0000000001
Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: done checkpointing cyrus databases
Jan 10 03:27:09 c1529030-a master[39752]: process 39754 exited, status 0



When I attempt to access cyradmin with: cyradm --user admin -auth plain cell.attbi.com

I get a high volume of repeating logs. (about 20 lines a second)

Jan 10 03:30:51 c1529030-a imap[39987]: executed
Jan 10 03:30:51 c1529030-a imapd[39987]: SASL failed initializing: sasl_server_init(): generic failure
Jan 10 03:30:51 c1529030-a master[39752]: process 39987 exited, status 1
Jan 10 03:30:51 c1529030-a master[39988]: about to exec /usr/local/cyrus/bin/imapd


Until I kill master. At which point I get my login prompt.

#cyradm --user admin -auth plain cell.attbi.com
IMAP Password:Broken pipe

I have googled everything I from the logs with no hints.
I dont know where I went wrong. I have tried cvsuping and rebuilding all the packages a few times in the last month.


Configs and files follow
--
-Ryan Merrick
[EMAIL PROTECTED]




#cat /usr/local/lib/sasl2/Cyrus.conf pwcheck_method auxprop

#cat /usr/local/lib/sasl2/smtpd.conf
pwcheck_method auxprop

#ll /usr/lib/sasl2
lrwxr-xr-x 1 root wheel 20 Jan 8 01:34 /usr/lib/sasl2 -> /usr/local/lib/sasl2


#ll /var/imap/socket/
total 0
srwxrwxrwx  1 root  cyrus  0 Jan 10 03:27 lmtp

#cat /usr/local/etc/imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
servername: cell.attbi.com
allowanonymouslogin: yes
allowplaintext: yes
admins: admin
singleinstancestore: yes
duplicatesuppression: yes
sieveusehomedir: false
sievedir: /var/imap/sieve
sendmail: /usr/local/sbin/sendmail
sasl_minimum_layer: 0
sasl_pwcheck_method: auxprop
lmtpsocket: /var/imap/socket/lmtp

#cat /usr/local/etc/cyrus.conf
# standard standalone server implementation

START {
  # do not delete this entry!
  recover       cmd="ctl_cyrusdb -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/socket
SERVICES {
  # add or remove based on preferences
  imap          cmd="imapd" listen="10.1.1.1:imap" prefork=0
  imaps         cmd="imapd -s" listen="10.1.1.1: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

  # this is only necessary if using notifications
#  notify       cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefork=1
}

EVENTS {
  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression
  delprune      cmd="ctl_deliver -E 3" at=0400

  # this is only necessary if caching TLS sessions
  tlsprune      cmd="tls_prune" at=0400
}

#cat /usr/local/etc/postfix/main.cf
# LOCAL PATHNAME INFORMATION
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix

# QUEUE AND PROCESS OWNERSHIP
mail_owner = postfix

# INTERNET HOST AND DOMAIN NAMES
myhostname = cell.attbi.com
mydomain = attbi.com

# SENDING MAIL
myorigin = $myhostname

# RECEIVING MAIL
inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
local_recipient_maps = unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 450

# TRUST AND RELAY CONTROL
mynetworks_style = host

# ALIAS DATABASE
alias_maps = hash:/usr/local/etc/postfix/aliases
alias_database = dbm:/usr/local/etc/postfix/aliases

# DELIVERY TO MAILBOX
#home_mailbox = Mailbox
#home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
#mailbox_transport = cyrus

# SHOW SOFTWARE VERSION OR NOT
smtpd_banner = $myhostname ESMTP $mail_name
#
# INSTALL-TIME CONFIGURATION INFORMATION
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
Readme_directory = no
readme_directory = no

#broken_sasl_auth_clients = yes
smtpd_sasl2_auth_enable = yes


_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to