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. Apologies 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.org" > 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 SASLv2 SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG ============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = server (canonical domain name) $j = server.domain.com (subdomain name) $m = domain.com (node name) $k = server.domain.com ======================================================== 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=IPv6, Family=inet6, Modifiers=O') 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=mail.test.com. [public_IP_address], dsn=5.6.0, stat=Data format 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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c3ed3fdc0909221037i1481a790kd51d8fb2e463a9c2>
