sendmail / smtp auth

Martin Schweizer lists_freebsd at bluewin.ch
Mon Nov 21 21:33:31 GMT 2005


Hello 

I read a lot over sendmail's smtp auth function in google, sendmail.org, O'Reilly 
sendmail book and FreeBSD's handbook etc. But now I'm very confused. 
My setup (all stuff from updated /usr/ports): 
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 
handbook) all mails no longer delivered to cyrus imapd. They now delivered 
local to root. I only changed /etc/mail/sendmail.mc and /etc/mail/auth-info 
(see attached). If rollback to no smtp auth then all works like a charme. My 
goals are to use sendmail for client relaying (for mobile users) and sendmail 
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.spamhaus.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=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

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 Änderung für Cyrus
define(`confLOCAL_MAILER', `cyrusv2')

MAILER(local)
MAILER(smtp)
dnl Änderung für Cyrus
MAILER(`cyrusv2')

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

-- 

Regards

Martin Schweizer
<info at 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; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20051121/ef117f5f/attachment.bin


More information about the freebsd-questions mailing list