Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2009 12:37:27 -0500
From:      Phusion <phusion2k@gmail.com>
To:        Mark Willson <cdr.nil@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Help configuring sendmail to send only using authorization to  smart host
Message-ID:  <c3ed3fdc0909221037i1481a790kd51d8fb2e463a9c2@mail.gmail.com>
In-Reply-To: <h90n7u$58o$1@ger.gmane.org>
References:  <c3ed3fdc0909160617j3cfecablbdbb258076e9f5ff@mail.gmail.com> <h90n7u$58o$1@ger.gmane.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, Sep 18, 2009 at 2:32 PM, Mark Willson <cdr.nil@gmail.com> 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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?c3ed3fdc0909221037i1481a790kd51d8fb2e463a9c2>