From owner-freebsd-questions@FreeBSD.ORG Sun Jan 29 18:46:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96BB516A420 for ; Sun, 29 Jan 2006 18:46:18 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B98D43D49 for ; Sun, 29 Jan 2006 18:46:17 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (am-productions.biz [69.61.164.22]) (authenticated bits=0) by mail.united-ware.com (8.13.4/8.13.4) with ESMTP id k0TIsCKO015392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Jan 2006 13:54:18 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-questions@freebsd.org, Martin Schweizer Date: Sun, 29 Jan 2006 13:48:59 -0500 User-Agent: KMail/1.9.1 References: <20060129181208.GA32037@saturn.pcs.ms> In-Reply-To: <20060129181208.GA32037@saturn.pcs.ms> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1950586.76sVkRoCBK"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601291349.16283.mistry.7@osu.edu> X-Spam-Status: No, score=-5.6 required=5.0 tests=ALL_TRUSTED,BAYES_20, J_CHICKENPOX_12,MYFREEBSD2 autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88/1255/Sat Jan 28 04:55:09 2006 on mail.united-ware.com X-Virus-Status: Clean Cc: Subject: Re: Can not deliver to cyrus imapd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2006 18:46:18 -0000 --nextPart1950586.76sVkRoCBK Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 29 January 2006 13:12, Martin Schweizer wrote: > Hello > > On my two machines (FreeBSD 5.4) I'm not able to compile sendmail > with other mailer then the default ones. The hole thread and the > details you can see in comp.mail.senmdail (link: > http://groups.google.com/group/comp.mail.sendmail/browse_thread/thr >ead/a9c1364a7b98be36/0e04b81274290cb3#0e04b81274290cb3 ). > > My goal is to use sendmail and cyrus impad 2.3. The problem is if I > change the mailer in sendmail.mc nothing appears. I also checked > sendmail.cf. There are no other mailers the the default ones. I'm > very confused about the problem. Any ideas are very welcome. I'm using cyrus-imapd22 in production on a few servers with the base=20 sendmail. I'm assuming you have cyrus-imapd23 setup correctly. # set the sendmail password check method touch /usr/local/lib/sasl2/Sendmail.conf # add "pwcheck_method: saslauthd" to use sasl database # or "pwcheck_method: passwd" for normal login password checking # add to /etc/make.conf SENDMAIL_CFLAGS+=3D -I/usr/local/include -DSASL=3D2 \ -D_FFR_SMTP_SSL -DSOCKETMAP SENDMAIL_LDFLAGS+=3D-L/usr/local/lib SENDMAIL_LDADD+=3D-lsasl2 # set box specific .mc file in /etc/make.conf so upgrades # don't wipe out our existing settings SENDMAIL_MC=3D/etc/mail/host.mydomain.com.mc # build shared sendmail libs cd /usr/src/lib/libsm && \ make cleandir && make depend && make obj && make cd /usr/src/lib/libsmutil && \ make cleandir && make depend && make obj && make # now rebuild sendmail in the base cd /usr/src/usr.sbin/sendmail && \ make cleandir && make depend && make obj && make && make install # in for box specific .mc add dnl set SASL options define(`confAUTH_OPTIONS', `A p y')dnl dnl define(`confDEF_AUTH_INFO', /etc/mail/auth-info')dnl DAEMON_OPTIONS(`Port=3Dsmtp, Name=3DMSA, M=3DE')dnl DAEMON_OPTIONS(`Port=3Dsmtps, Name=3DTLSMSA, M=3DEs')dnl define(`confLOG_LEVEL', `13')dnl TRUST_AUTH_MECH(`LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl define(`confLOCAL_MAILER',`cyrusv2') # stop and restart sendmail cd /etc/mail make make install make stop make start # check if it worked! telnet localhost 25 ehlo localhost If you're trying to host mail for multiple domains you'll need to hack=20 the local ruleset to not strip the @domain.tld from the address=20 before it's passed to cyrus. The -DSOCKETMAP in the SENDMAIL_CFLAGS=20 is needed, but I use it with a special rule to verify the From:=20 address that comes from a locally hosted domain is actually valid by=20 looking it up via cyrus. =2D-=20 Anish Mistry --nextPart1950586.76sVkRoCBK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD3Q4sxqA5ziudZT0RAr60AJ9peG8y/2Sw3CsOeWejr06v/GcmyQCaA6Nf QDiynagLlk2ngBGbhcUdUXQ= =2AAh -----END PGP SIGNATURE----- --nextPart1950586.76sVkRoCBK--