Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 2009 02:27:04 +0300
From:      Giorgos Keramidas <>
To:        Phusion <>
Cc:        Mark Willson <>,
Subject:   Re: Help configuring sendmail to send only using authorization to smart host
Message-ID:  <87skee4l2v.fsf@kobe.laptop>
In-Reply-To: <> (Phusion's message of "Tue, 22 Sep 2009 12:37:27 -0500")
References:  <> <h90n7u$58o$> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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
> FEATURE(masquerade_envelope)
> FEATURE(genericstable, `hash -o /etc/mail/genericstable')
> GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')
> define(`confAUTH_MECHANISMS',`LOGIN PLAIN')dnl
> FEATURE(authinfo, `hash -o /etc/mail/auth/authinfo')
> define(`SMART_HOST', `')
> 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.
> [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.
> ----------------------------------------------------------------------------------------------------
> "" "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 '' correctly?

  * Can you connect to `' at port 25?

  * Can you connect to port 587 of `'?

  * Is `' 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 '' and you have carefully
edited the log file to _hide_ any occurrence of your password *only*.

Want to link to this message? Use this URL: <>