Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with sendmail and cyrus-imap 2.2.x

Status
Not open for further replies.

tifflor

IS-IT--Management
Jun 30, 2005
3
DE
Every time sendmail tries to deliver a mail to my local cyrus-imapd I get some errors like this:

Oct 21 01:30:50 startseite4 sendmail[23286]: j9KNRe6n023286: to=crusader-startseite, delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=38550, relay=localhost [[UNIX: /var/imap/socket/lmtp]], dsn=4.4.2, stat=Deferred

or instead of Deferred: "Connection reseted by localhost"

I don't know what could be the problem, my lmtp socket file is accessable through the sendmail user.

this is my sendmail.mc:

divert(-1)
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc,v 1.2 2004/12/07 01:59:31 g2boojum Exp $')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl

FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
dnl FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
dnl FEATURE(local_lmtp)dnl

FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')dnl
FEATURE(mailertable, `hash -o /etc/mail/mailertable')dnl
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')dnl
FEATURE(genericstable, hash -o /etc/mail/genericstable')dnl

FEATURE(blacklist_recipients)dnl
dnl FEATURE(dnsbl, `relays.ordb.org', `Mail from $&{client_addr} rejected by mail.startseite.de; see dnl FEATURE(dnsbl, `relays.dsbl.org', `Mail from $&{client_addr} rejected by mail.startseite.de; see dnl
dnl
dnl Configure mail derlivery optimisation
define(`confQUEUE_LA', `10')dnl
define(`confREFUSE_LA', `15')dnl
define(`confDELIVERY_MODE', `queueonly')dnl
define(`confMAX_QUEUE_CHILDREN', `10')dnl
define(`confMAX_RUNNERS_PER_QUEUE', `03')dnl
dnl define(`confMAX_DAEMON_CHILDREN', `50')dnl
dnl
dnl set SASL options
TRUST_AUTH_MECH(`LOGIN')dnl
define(`confAUTH_OPTIONS', `A y')dnl
define(`confAUTH_MECHANISMS', `LOGIN')dnl
dnl set LocalMailer
define(`confLOCAL_MAILER', `cyrusv2')dnl
define(`CYRUS_LMTP_SOCKET',`/var/imap/socket/lmtp')dnl
dnl FEATURE(`local_lmtp',`/var/imap/socket/lmtp')dnl

LOCAL_CONFIG
dnl #
dnl # The main queue directory resides here
define(`QUEUE_DIR', `/var/spool/mqueue/main*')dnl
dnl #
dnl # mqueue is the default directory
dnl # Flags, Runners, recipients, Interval, Nice, Jobs
QUEUE_GROUP(`mqueue',`Path=/var/spool/mqueue/main*, F=f, R=10, r=100, I=2m')dnl
dnl #
dnl # home is where mail to this box gets dropped (via local mailer def)
dnl # local is everything else in my domain
QUEUE_GROUP(`home',`P=/var/spool/mqueue/home, F=f, R=10, r=100, I=1m')dnl
QUEUE_GROUP(`local',`P=/var/spool/mqueue/local, F=f, R=10, r=100, I=1m')dnl
dnl QUEUE_GROUP(`ibm',`P=/var/spool/mqueue/ibm, F=f, R=2, r=100, I=1m')dnl
QUEUE_GROUP(`topten',`P=/var/spool/mqueue/topten, F=f, R=2, r=100, I=1m')dnl
QUEUE_GROUP(`hourly',`P=/var/spool/mqueue/hourly, F=f, R=2, I=1h')dnl
QUEUE_GROUP(`4hours',`P=/var/spool/mqueue/4hours, F=f, R=1, I=4h')dnl
QUEUE_GROUP(`daily',`P=/var/spool/mqueue/daily, F=f, R=1, I=1d')dnl
dnl
dnl Spamassassin Milter Config
dnl
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=,T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, {if_addr}
')dnl
dnl
dnl
dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(cyrusv2)dnl
dnl
LOCAL_RULESETS
#
#-----------------------------------------------------------------------------
# Queue selection ruleset
#-----------------------------------------------------------------------------
# Route mail to different queues depending upon the recipient
Squeuegroup
# Pull out home recipients
# or use define(`LOCAL_MAILER_QGRP', `home'), but this is done 1st!
# to remove logging, replace the space before `$(' with a tab
# If unsure, you can add $(log queuedir:$1:home: $) after the queue
R<$+> $1 strip <>
R$- $# home Bare user
R$* @ $j $# home Hostname
# These will probably be home, or nearly so...
R$* @ $=w $# home Hostnames
R$* @ $={VirtHost} $# local Virtual hosts
R$* @ $=G $# local Generic hosts
R$* @ $=M $# local Masquerade
# Anything in my domain(s) or central hubs
#R$*@$*.RSCS $# ibm
#R$*@$*.VNET $# ibm
#R$*@$*IBM.COM $# ibm
#
# Any mailing list hosts we talk to often
# Top-ten type hosts
R$*@$*HOTMAIL.COM $# topten
R$*@$*AOL.COM $# topten
R$*@$*YAHOO.COM $# topten
R$*@$*EARTHLINK.NET $# topten
R$*@$*JUNO.COM $# topten
# Default everything else to this group
R$* $# mqueue


I hope someone can help me in this case, I've tried some changes in my sendmail.mc but nothing helped.
Thanks in advance
Sebastian
 
Find the lmtp socket file. On my systems it is /var/lib/imap/socket/lmtp.

RH80[root@lunar socket]# pwd
/var/lib/imap/socket
RH80[root@lunar socket]# vdir lmtp
srwxrwxrwx 1 root root 0 Sep 7 09:45 lmtp

Find it on your system, modify your sendmail.mc to match, generate a new sendmail.cf, then restart or reload sendmail, and test. On our system we don't specify the location of the lmtp socket. YMMV.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top