Re: Help configuring sendmail to send only using authorization to smart host
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. Use /usr/share/sendmail/cf/cf/clientproto.mc (Instructions in the README files) -- Mauro Rezzonico , Como, Italia "Maybe this world is another planet's hell" - H.Huxley ___ 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"
Re: Help configuring sendmail to send only using authorization to smart host
On Tue, 22 Sep 2009 12:37:27 -0500, Phusion wrote: > I recompiled sendmail and now get the following when running sendmail -d0.1 > -bv. > 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 More about this later. > The /etc/mail/auth/authinfo file looks like the following. > > > AuthInfo:mail.test.com "U:usern...@isp.com" "P:password" > This looks ok. The ``dsn=5.6.0, stat=Data format error'' error code is described (along with other SMTP error codes) in RFC 1893 as: 5.X.X Permanent Failure A permanent failure is one which is not likely to be resolved by resending the message in the current form. Some change to the message or the destination must be made for successful delivery. X.6.X Message Content or Media Status The message content or media status codes report failures involving the content of the message. These codes report failures due to translation, transcoding, or otherwise unsupported message media. Message content or media issues are under the control of both the sender and the receiver, both of whom must support a common set of supported content-types. X.6.0 Other or undefined media error Something about the content of a message caused it to be considered undeliverable and the problem cannot be well expressed with any of the other provided detail codes. A few things to check are: * Can you resolve your own IP address correctly? * Can you resolve 'mail.test.com' correctly? * Can you connect to `mail.test.com' at port 25? * Can you connect to port 587 of `mail.test.com'? * Is `mail.test.com' the actual ISP mail server name? If not, please tell us its _real_ name, so we can also check if there are DNS or other problems. It may even be useful to show us tcpdump output obtained with: tcpdump -n -v -l -X -i em0 'host a.b.c.d && port 25' Where 'em0' is replaced by your outgoing interface, 'a.b.c.d' is replaced by the IP address of 'mail.test.com' and you have carefully edited the log file to _hide_ any occurrence of your password *only*. ___ 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"
Re: Help configuring sendmail to send only using authorization to smart host
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. 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"
Re: Help configuring sendmail to send only using authorization to smart host
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"
Help configuring sendmail to send only using authorization to smart host
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 ___ 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"