Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2005 22:47:22 +0100
From:      Martin Schweizer <lists_freebsd@bluewin.ch>
To:        freebsd-questions@freebsd.org
Subject:   sendmail / smtp auth
Message-ID:  <20051121214722.GE8504@saturn.pcs.ms>

next in thread | raw e-mail | index | archive | help

--309evMHi/619oHyA
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello=20

I read a lot over sendmail's smtp auth function in google, sendmail.org, O'=
Reilly=20
sendmail book and FreeBSD's handbook etc. But now I'm very confused.=20
My setup (all stuff from updated /usr/ports):=20
FreeBSD 5.4
sendmail 8.13.3
Cyrus IMAP 2.2.12
Cyrus SASL2 2.1.21
MailScanner 4.46.2

After I configured sendmail for smtp auth (like described in FreeBSD's=20
handbook) all mails no longer delivered to cyrus imapd. They now delivered=
=20
local to root. I only changed /etc/mail/sendmail.mc and /etc/mail/auth-info=
=20
(see attached). If rollback to no smtp auth then all works like a charme. M=
y=20
goals are to use sendmail for client relaying (for mobile users) and sendma=
il=20
send mails with smtp auth to another mail server.
Any hints are welcome.

sendmail.mc:
************
divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.29 2003/12/24 21:15:09=
 gshapiro Exp $')
OSTYPE(freebsd5)
DOMAIN(generic)

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

FEATURE(dnsbl, `relays.ordb.org', `"550 Mail rejected - see http://www.ordb=
.org/faq"')
FEATURE(dnsbl, `sbl.spamhaus.org', `"550 Mail rejected - see http://www.spa=
mhaus.org/SBL"')

dnl Dialup users should uncomment and define this appropriately
define(`SMART_HOST', `[195.186.18.142]')

define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=3DIPv4, Family=3Dinet')
DAEMON_OPTIONS(`Name=3DIPv6, Family=3Dinet6, Modifiers=3DO')

dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 PLAIN LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 PLAIN LOGIN')dnl
dnl define(`confAUTH_MECHANISMS', `PLAIN')dnl
define(`confDEF_AUTH_INFO', `/etc/mail/auth-info')dnl

define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
dnl =C4nderung f=FCr Cyrus
define(`confLOCAL_MAILER', `cyrusv2')

MAILER(local)
MAILER(smtp)
dnl =C4nderung f=FCr Cyrus
MAILER(`cyrusv2')

auth-info:
**********
martin
martin
blabla
pcs.ms
PLAIN

--=20

Regards

Martin Schweizer
<info@pc-service.ch>

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc;=20
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;


--309evMHi/619oHyA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQFDgkBqwa4WkdMP0jkRAl21AJ45/buPjhwVYKbXrICRLrGOqfvLKQCglAZi
xH7JIIFgV+ESmOObUUk2zi0=
=VgZB
-----END PGP SIGNATURE-----

--309evMHi/619oHyA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051121214722.GE8504>