From owner-freebsd-questions@FreeBSD.ORG Mon Aug 7 19:16:19 2006 Return-Path: X-Original-To: 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 3A15816A4E0 for ; Mon, 7 Aug 2006 19:16:19 +0000 (UTC) (envelope-from ggroth@gregs-garage.com) Received: from mail.gregs-garage.com (h-64-105-8-34.chcgilgm.covad.net [64.105.8.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id E58FA43D45 for ; Mon, 7 Aug 2006 19:16:11 +0000 (GMT) (envelope-from ggroth@gregs-garage.com) Received: from [10.10.10.124] (localhost.gregs-garage.com [127.0.0.1]) by mail.gregs-garage.com (Postfix) with ESMTP id E57BE114037; Mon, 7 Aug 2006 14:16:18 -0500 (CDT) Message-ID: <44D7924D.3050605@gregs-garage.com> Date: Mon, 07 Aug 2006 14:19:41 -0500 From: Greg Groth User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Frank Staals References: <44D3C56A.60806@gmx.net> <44D77B38.7020002@gmx.net> <44D785C6.10605@gregs-garage.com> <44D78A85.8000301@gmx.net> In-Reply-To: <44D78A85.8000301@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@FreeBSD.org Subject: Re: Sendmail Question; unable to send mail as normal user 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: Mon, 07 Aug 2006 19:16:19 -0000 > Hmm I guess that sould be the problem then: > > root@Fstaals$ telnet localhost 25 > Trying ::1... > Trying 127.0.0.1... > Connected to localhost.eu.org > Escape character is '^]'. > 220 Fstaals.net ESMTP Sendmail 8.13.3/8.13.3; Mon, 7 Aug 2006 20:31:30 > +0200 (CE > ST) > EHLO localhost > 250-Fstaals.net Hello localhost.eu.org [127.0.0.1], pleased to meet you > 250-ENHANCEDSTATUSCODES > 250-PIPELINING > 250-8BITMIME > 250-SIZE > 250-DSN > 250-ETRN > 250-DELIVERBY > 250 HELP > > I compiled sendmail with the following options: > > root@Fstaals$ cat /etc/make.conf > # SASL (cyrus-sasl v2) sendmail build flags... > SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 > SENDMAIL_LDFLAGS=-L/usr/local/lib > SENDMAIL_LDADD=-lsasl2 > # Adding to enable alternate port (smtps) for sendmail... > SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL > # added by use.perl 2006-03-02 22:35:07 > PERL_VER=5.8.8 > PERL_VERSION=5.8.8 > > What should I do fix this ? Appart from those lines in /etc/make.conf I > didn't change anything regarding to the build of sendmail > > Regards, > Need more info. How did you recompile Sendmail? For instance, I did a minimal install, updated my ports, installed cvsup-without-gui & fastest-cvsup, cvsupped my sources, ran a buildworld to get the base system up to date, then added the following to make.conf: SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2 installed sasl2 by compiling from the ports then I recompiled Sendmail as follows: cd /usr/src/usr.sbin/sendmail make clean make obj make depend make make install Once that was done, I went into /etc/mail and added the following to freebsd.mc define(`confAUTH_MECHANISMS',`PLAIN LOGIN')dnl TRUST_AUTH_MECH(`PLAIN LOGIN')dnl After saving the file, I ran the following in /etc/mail: make all make install make restart After which a telnet session showed the correct AUTH paramenters. In the instances I had a screwup in which I could not resolve, I've made the following bonehead moves: 1. Ran make installworld without dropping to single-user mode 2. cvsupped to the wrong source tree due to my ignorance of the tags in the cvsup file. My latest misadventures with getting PLAIN LOGIN working were on systems where I did everything correctly, but installed a number of ports prior to messing with the MTA. This included Apache, PHP, MySQL, Squirrelmail, XOrg, KDE-lite, and whatever dependencies were needed. The same issue occured with trying to get PLAIN AUTH working with Postfix, and on a second box with Sendmail. I ended up reinstalling, and focused on getting the MTA and SASL2 working immediately after getting the system up to date, and had no issues. IMHO, worry about getting PLAIN LOGIN working before messing with compiling SSL support into Sendmail. In my experience, configuring SSL can be a pain, making sure everything is where it's supposed to be. Best regards, Greg Groth