On Fri, Sep 18, 2009 at 2:32 PM, Mark Willson <cdr....@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-unsubscr...@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:usern...@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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"