From owner-freebsd-questions@FreeBSD.ORG Tue Sep 22 17:37:29 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 420A81065698 for ; Tue, 22 Sep 2009 17:37:29 +0000 (UTC) (envelope-from phusion2k@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 37C9E8FC21 for ; Tue, 22 Sep 2009 17:37:28 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 3so1148898qwe.7 for ; Tue, 22 Sep 2009 10:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1aSgQrkHyuntJF7vtyvDXrjPwt5Wx3AZJs+3xhvrLK0=; b=HTEhvtB4cJdWylHMlxT735XRIsfn78FLPISFDvyajVtxYqiqByWqR9YxAugbUkEbXl S5/5/WzHtw7OGX7uf/GD3LytscjBQXRtVH8h5x/gp2GfhjG1FjTS0yotbmirciR60F72 DfQPCa9tLaC1jy+VPahJTqa3x/+bNB7PRJXqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hrDQ1DNaaEJoqiyeO6xoLgzKgSQisFOjSOhiPhbaANmR4LhcJ/QLzgq0CGiNTxnKnw YLVvYYUyUU6p4XmPUR4OnczRklOOyr/E7RNI4agIxoAveQBaiZCQQmPA48j6Q+6p12ld 5cIHpKpv/vZ5FxW4baSwTLddpJHRtUjUkZXCA= MIME-Version: 1.0 Received: by 10.229.47.3 with SMTP id l3mr573167qcf.25.1253641047177; Tue, 22 Sep 2009 10:37:27 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Sep 2009 12:37:27 -0500 Message-ID: From: Phusion To: Mark Willson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Help configuring sendmail to send only using authorization to smart host 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: Tue, 22 Sep 2009 17:37:29 -0000 On Fri, Sep 18, 2009 at 2:32 PM, Mark Willson wrote: > Phusion wrote: >> >> I need some help configuring sendmail to send only using authorization >> to a smart host being the ISP's mail server. I'm running 7.2-RELEASE. >> I've looked over >> http://www.freebsd.org/doc/en/books/handbook/outgoing-only.html but >> want to use the built-in sendmail. I've run the following command: >> sendmail -d0.1 -bv, but SASL isn't included. Also, I would rather uses >> packages. Please advise. > > Phusion, > > I originally replied via Google, but it doesn't seem to have hit the list= , > so here's a repeat. =A0Apologies for the repetition, if it occurs. > > This link might provide useful information: > http://www.hydrus.org.uk/journal/smtp-client-auth.html > > -mark > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > I recompiled sendmail and now get the following when running sendmail -d0.1= -bv. ---------------------------------------------------------------------------= ------------------------- Version 8.14.3 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SA= SLv2 SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D SYSTEM IDENTITY (after readcf) =3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (short domain name) $w =3D server (canonical domain name) $j =3D server.domain.com (subdomain name) $m =3D domain.com (node name) $k =3D server.domain.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Recipient names must be specified ---------------------------------------------------------------------------= ------------------------- I now have added the following to sendmail.mc. FEATURE(masquerade_envelope) FEATURE(genericstable, `hash -o /etc/mail/genericstable') GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains') TRUST_AUTH_MECH(`LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl FEATURE(authinfo, `hash -o /etc/mail/auth/authinfo') define(`SMART_HOST', `mail.test.com') define(`confCW_FILE', `-o /etc/mail/local-host-names') dnl DAEMON_OPTIONS(`Name=3DIPv6, Family=3Dinet6, Modifiers=3DO') I created /etc/mail/auth/authinfo and then did the makemaps to create the hashd .db file. When trying to email outbound, I still get the same error in the logs. ...relay=3Dmail.test.com. [public_IP_address], dsn=3D5.6.0, stat=3DData for= mat error The /etc/mail/auth/authinfo file looks like the following. ---------------------------------------------------------------------------= ------------------------- AuthInfo:mail.test.com "U:username@isp.com" "P:password" ---------------------------------------------------------------------------= ------------------------- I am using the mail server of the local ISP I use. It doesn't appear that it even checks for authentication. Please advise. Phusion