I am attempting to do the following:
$ mailx 11122...@vtext.com < /tmp/somefile
>From a machine on te comcast network.
But the mail never gets delivered. So I attempt to run sendmail
directly to see what is happening. I am running sendmail as follows:
I am on a comcast network attempting to send a message to the vtext
network:
$ sendmail -X /tmp/sm.log -fse...@comcast.net 11122...@vtext.com <
/tmp/somefile
And what I see in the sm.log file is it connecting to the following
SMTP servers:
# grep -i connect sm.log
08098 >>> 5083976767@vtext.com... Connecting to [127.0.0.1] via
relay...
08098 === CONNECT [127.0.0.1]
08098 <<< 050 <11122...@vtext.com>... Connecting to smtpsp.vtext.com.
via esmtp...
08098 >>> 050 <11122...@vtext.com>... Connecting to smtpsp.vtext.com.
via esmtp...
08098 >>> Closing connection to [127.0.0.1]
08098 <<< 221 2.0.0 aspen.comcast.net closing connection
08098 >>> 221 2.0.0 aspen.comcast.net closing connection
As you can see, it first attempts to route the message it to localhost,
then it attempts to send the message through smpt.vtext.com when it
should be using smtp.comcast.net.
Configuring sendmail is such a pain sometimes.
I placed the following in sendmail.cf:
And the following in the /etc/hosts file:
192.168.99.8 aspen aspen.comcast.net
Any help is greatly appreciated.
Thanks, Jack
https://www-s.acm.uiuc.edu/wiki/space/Setting+up+sendmail+on+Solaris+10
Just replace the "FEATURE(`msp', `clortho.acm.uiuc.edu')" line with one
defining the mailhost you want to use.
-Mark
Running sendmail directly I can see that it's no longer connecting to
localhost. In fact, from what I can see in the logs, it looks like te
mail was sent successfully when sendmail connects to smpt.comcast.net.
However, the mail never arrives at the destination.
Using /usr/dt/bin/dtmail connecting to the same exact smpt.comcast.net
server and the mail is delivered properly. Instantly in fact.
Sendmail seems broken to me on Soalris 10.
Any help appreciated.
Thanks, Jack
Actually, this will work if and only if I run sendmail directly as
root.
mailx does not work. mailx does route all outgoing mail via sendmail
right?
Jack
yep:
# /usr/lib/sendmail -d0.1
Version 8.13.4+Sun
Compiled with: DNSMAP LDAPMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8
MIME8TO7 NAMED_BIND NDBM NETINET NETINET6 NETUNIX NEWDB
NIS
NISPLUS PIPELINING SCANF STARTTLS TCPWRAPPERS USERDB
USE_LDAP_INIT XDEBUG
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = aspen
(canonical domain name) $j = aspen.comcast.net
(subdomain name) $m = comcast.net
(node name) $k = aspen
========================================================
Thank you all for your help so far ...
Jack