Sendmail and Cox

Matt Bosworth m_bosworth at yahoo.com
Thu Feb 19 13:10:58 PST 2004


I'm sure this question has been asked before, but how do you get
sendmail to send out through cox?  I'm running redhat9 connected to a
router connected to the cable modem (dhcp addr : 192.168.2.x / modem
addr ? (I can find out if necessary) ).  Also, this machine only ever
needs to *send* mail, not receive.  Here's sendmail.mc (sans comments) : 

divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`SMART_HOST',`smtp.west.cox.net')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTRUSTED_USER', `smmsp')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MASQUERADE_AS(`tomosoftware.com')dnl
FEATURE(masquerade_envelope)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

And this is what I get in /var/log/maillog when I try to send stuff : 

Feb 19 12:59:22 localhost sendmail[16411]: alias database /etc/aliases rebuilt b
y bosworth
Feb 19 12:59:22 localhost sendmail[16411]: /etc/aliases: 63 aliases, longest 10 
bytes, 625 bytes total
Feb 19 12:59:23 localhost sendmail[16423]: starting daemon (8.12.8): SMTP+queuei
ng at 01:00:00
Feb 19 12:59:23 localhost sm-msp-queue[16432]: starting daemon (8.12.8): queuein
g at 01:00:00
Feb 19 12:59:34 localhost sendmail[16437]: i1JKxYDk016437: from=root, size=50, c
lass=0, nrcpts=1,
msgid=<200402192059.i1JKxYDk016437 at localhost.localdomain>, relay=root at localhost
Feb 19 12:59:34 localhost sendmail[16439]: i1JKxYFH016439: from=<root at localhost.
localdomain>, size=350, class=0, nrcpts=1, msgid=<200402192059.i1JKxYDk016437 at lo
calhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.
0.0.1]
Feb 19 12:59:34 localhost sendmail[16437]: i1JKxYDk016437: to=m_bosworth at yahoo.c
om, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30040
, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1JKxYFH016439 Message ac
cepted for delivery)
Feb 19 12:59:35 localhost sendmail[16441]: i1JKxYFH016439: to=<m_bosworth at yahoo.
com>, ctladdr=<root at localhost.localdomain> (0/0), delay=00:00:01, xdelay=00:00:0
1, mailer=relay, pri=30340, relay=smtp.west.cox.net. [68.6.19.4], dsn=5.6.0, sta
t=Data format error
Feb 19 12:59:35 localhost sendmail[16441]: i1JKxYFH016439: i1JKxZFH016441: DSN: 
Data format error
Feb 19 12:59:35 localhost sendmail[16441]: i1JKxZFH016441: to=<root at localhost.lo
caldomain>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31374, dsn=2.0.0,
 stat=Sent

So what's a 'Data format error' ?

Thanks,
Matt





More information about the KPLUG-List mailing list