hi larry,

On Fri, Jun 01, 2001 at 02:11:46PM -0400, Lawrence Greenfield wrote:
> Could you please give more information?  What system are you on?
> You've compiled Cyrus with --with-auth=unix, yes?
> 
>    if there is more than one mail to deliver (e.g. doing
>    a "sendmail -q") after the first mail the lmtpd crashes
>    with a SIGSEGV :-(
> 
>    the behaviour is the same if we use lmtpd over TCP
>    instead of the socket-file.
> 
>    may be someone could help?
>    here is one gdb trace of the lmtpd:
>    [...]

it's a SuSE Linux Box 7.0 with kernel 2.2.16 and different suse
updates installed. cyrus incl. sasl 1.5.24, db-3.1.17 and sendmail 8.11.4
are compiled by source (original source tree).

the imapd 2.0.14 is compiled with the following flags:
./configure  --prefix=/usr --with-openssl --with-auth=unix --without-krb

i tried differnt settings in sendmail and imapd to ensure that
only one copy of lmtpd is running, e.g.
 lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 maxchild=1

btw. if i change the lmtpd source to bypass the problematic
point it will crash also with a SIGSEGV while calling malloc()
but just some "lines" later. does the lmtpd use it's own malloc()
which conflicts with the libc's malloc()?

the sendmail config looks like:

divert(0)dnl
include(`/usr/share/sendmail/m4/cf.m4')
VERSIONID(`triad sendmail imap enabled setup v0.2')

dnl
OSTYPE(suse-linux)

define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
define(`confTO_IDENT',`0')

dnl max connection per second
dnl
define(`confCONNECTION_RATE_THROTTLE', `16')

dnl max incoming forks
dnl
define(`confMAX_DAEMON_CHILDREN', `32')

dnl max jobs to process per queue run
dnl
define(`confMAX_QUEUE_RUN_SIZE', `4')
define(`confMAX_MESSAGE_SIZE', `32000000')

dnl setting cyrus as the trusted user will make it easier to pass
dnl Sendmail's safefile checks.  however, it means that someone with the
dnl "cyrus" password could easily become root.
dnl define(`confTRUSTED_USER', `cyrus')

dnl pass all to lmtp
dnl
define(`confLOCAL_MAILER', `cyrus')

dnl all available login mechanismen
dnl
TRUST_AUTH_MECH(`LOGIN PLAIN GSSAPI DIGEST-MD5')

dnl 
define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')

dnl plain only available for TLS connections
dnl
define(`confAUTH_OPTIONS', `p')

define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs')
define(`confCACERT_PATH', `CERT_DIR')
define(`confCACERT', `CERT_DIR/ca.crt')
define(`confSERVER_CERT', `CERT_DIR/server.crt')
define(`confSERVER_KEY', `CERT_DIR/server.key')
define(`confCLIENT_CERT', `CERT_DIR/server.crt')
define(`confCLIENT_KEY', `CERT_DIR/server.key')

dnl "redirect", "use_cw_file", etc..
dnl
DOMAIN(generic)

FEATURE(`nocanonify')

dnl 
FEATURE(masquerade_envelope)
MASQUERADE_AS(`triad.de')

dnl
define(`ALIAS_FILE',`nis:mail.aliases,/etc/aliases,/etc/mail/aliases.mdomo')
dnl define(`ALIAS_FILE',`nis:mail.aliases,/etc/aliases')

dnl allow *.triad.de to send mail via this system
dnl
dnl FEATURE(relay_entire_domain)

dnl
FEATURE(`blacklist_recipients')dnl

define(`SMART_HOST', `smtp:smtp.triad.de')dnl
MAILER(`local')
MAILER(`smtp')
dnl MAILER(`cyrus')

MAILER_DEFINITIONS
Mcyrus,     P=[IPC], F=lsDFMnqA@/:|SmXz, S=EnvFromL, R=EnvToL/HdrToL, E=\r\n,
        T=DNS/RFC822/X-Unix, m=1,
        A=FILE /var/imap/socket/lmtp

LOCAL_RULE_0
Rbb + $+ < @ $=w . >    $#cyrus $: + $1



cu
 rasca
-- 
._____________________________________________________________________

Triad Berlin Projektgesellschaft mbH | Marburger Str. 3 | 10789 Berlin
Fon +49 30 21 90 98-69 | Fax +49 30 21 90 98-61 | http://www.triad.de/

Reply via email to