I wanted to send emails from my Slackware box, directly with sendmail (no smart program or script in between to catch problems). Sendmail gave this error:
Dec 21 12:28:51 slackware14 sm-mta: sBLBSnif003811: sBLBSpif003813: DSN: Data format error
cp the file
config.mc in your favourite editor
add these lines
MASQUERADE_AS(`myshortdomain.com')dnl MASQUERADE_DOMAIN(very.long.domain.com)dnl FEATURE(`masquerade_entire_domain')dnl FEATURE(`masquerade_envelope')dnl
I don’t know what the very.long.domain.com should be other than myshortdomain.com, I used the identical
From address for a valid mail server (localhost won’t work) for both the first and second line. (Leave the last two lines unchanged. And yes, the file uses opening and closing quote marks, that look asymmetrical in a lot of modern fonts.)
The Slackware mc file contains two apparent errors: it says one should do
sh Build config.cf but that doesn’t work.
include(\`../m4/cf.m4')is wrong, change it to
include(`m4/cf.m4'). Then, execute (while you’re still in
m4 /usr/share/sendmail/cf/m4/cf.m4 config.mc > /etc/mail/sendmail.cf
restart sendmail as root:
With this, the error was resolved on my box.
Note: unresolved at this point: Google's gmail servers might refuse mail (claiming it looks like spam) from a box that has no valid dns entry (I think). (In other words, from behind a router. I'm sure there's a solution to that, but don't know what it is yet.)