Sendmail SMTP Host Name

  • Follow


Hello,

I have been trying to get a Java program I have written to send an
email. The program works fine on my test machine, but when I put it on
ther server (SUN box with Solaris 8), it gives me an error saying that
the system does not recognize the SMTP host name (stmp.sbcglobal.net).

After much research and hair loss, I have determined (I think) that
Sendmail is trying to send the message and cannot resolve the host
name. I got these servers with Sendmail already installed. Now I want
to configure it, but don't know how. I read about a sendmail.mc file? I
looked for it and it is not on the system. Anyone have any tips or
suggestions? Where can I get a sample set up file (I have looked and
have found nothing)? I just want it to send the email and nothing else.
Is there any easier way?

Thanks in advance. Let me know if there is anything else I failed to
mention that might help.

Nino Skilj

0
Reply nino9stars (40) 9/5/2006 10:17:36 PM

On Tue, 05 Sep 2006 15:17:36 -0700, nino9star wrote:

> I have been trying to get a Java program I have written to send an
> email. The program works fine on my test machine, but when I put it on
> ther server (SUN box with Solaris 8), it gives me an error saying that
> the system does not recognize the SMTP host name (stmp.sbcglobal.net).

Fix your /etc/inet/hosts file.  The FQHN must be the second entry on the
line where stmp is resolved.


0
Reply Dave 9/5/2006 10:39:48 PM


nino9stars@yahoo.com wrote:
> Hello,
> 
> I have been trying to get a Java program I have written to send an
> email. The program works fine on my test machine, but when I put it on
> ther server (SUN box with Solaris 8), it gives me an error saying that
> the system does not recognize the SMTP host name (stmp.sbcglobal.net).
> 
> After much research and hair loss, I have determined (I think) that
> Sendmail is trying to send the message and cannot resolve the host
> name. I got these servers with Sendmail already installed. Now I want
> to configure it, but don't know how. I read about a sendmail.mc file? I
> looked for it and it is not on the system. Anyone have any tips or
> suggestions? Where can I get a sample set up file (I have looked and
> have found nothing)? I just want it to send the email and nothing else.
> Is there any easier way?
> 
> Thanks in advance. Let me know if there is anything else I failed to
> mention that might help.
> 
> Nino Skilj
> 

Trying to resolve smtp.sbcglobal.net might work a little better.  It 
always helps to spell it correctly.
0
Reply Richard 9/5/2006 11:23:56 PM

Dave Uhring wrote:
> On Tue, 05 Sep 2006 15:17:36 -0700, nino9star wrote:
>
> > I have been trying to get a Java program I have written to send an
> > email. The program works fine on my test machine, but when I put it on
> > ther server (SUN box with Solaris 8), it gives me an error saying that
> > the system does not recognize the SMTP host name (stmp.sbcglobal.net).

Oops. I realized I had misspelled smtp.sbcglobal.net on this posting,
but it was spelled correctly in my program... I swear...

> Fix your file. /etc/inet/hosts The FQHN must be the second entry on the
> line where stmp is resolved.

I opened up my /etc/inet/hosts file, and it's a list of IP addresses
and then names... How would I know the IP address of
smtp.sbcglobal.net? Isn't smtp.sbcglobal.net the FQHN? Sorry if it
seems like a stupid question. I don't work often enough with UNIX to
get the full grasp of things. Any help would be appreciated.

Nino

0
Reply nino9stars 9/7/2006 10:41:02 PM

On Thu, 07 Sep 2006 15:41:02 -0700, nino9star wrote:

> Dave Uhring wrote:

>> Fix your file. /etc/inet/hosts The FQHN must be the second entry on the
>> line where stmp is resolved.
> 
> I opened up my /etc/inet/hosts file, and it's a list of IP addresses
> and then names... How would I know the IP address of
> smtp.sbcglobal.net? Isn't smtp.sbcglobal.net the FQHN? Sorry if it
> seems like a stupid question. I don't work often enough with UNIX to
> get the full grasp of things. Any help would be appreciated.

Yes, smtp.sbcglobal.net is a FQHN but it is an alias.  SBC apparently does
not operate its own mail servers but outsources that task to prodigy.net:

[log]# host smtp.sbcglobal.net
smtp.sbcglobal.net is an alias for smtp.pi.sbcglobal.net.
smtp.pi.sbcglobal.net is an alias for smtp.prodigy.net.
smtp.prodigy.net has address 207.115.20.26
smtp.sbcglobal.net is an alias for smtp.pi.sbcglobal.net.
smtp.pi.sbcglobal.net is an alias for smtp.prodigy.net.
smtp.sbcglobal.net is an alias for smtp.pi.sbcglobal.net.
smtp.pi.sbcglobal.net is an alias for smtp.prodigy.net.

It appears that your /etc/inet/hosts entry needs to be

207.115.20.26	smtp.prodigy.net	smtp.sbcglobal.net

if that is indeed the IP address and FQHN of the system.

If the host on which your program is running is *not* that server then you
need a similar entry in /etc/inet/hosts including its IP address, FQHN and
any aliases assigned to that host.

BTW, this is not UNIX specific.  Windows has a similar file and I expect
that MAC OSX does too.

0
Reply Dave 9/7/2006 11:48:58 PM

> Yes, smtp.sbcglobal.net is a FQHN but it is an alias.  SBC apparently does
> not operate its own mail servers but outsources that task to prodigy.net:
>
> [log]# host smtp.sbcglobal.net
> smtp.sbcglobal.net is an alias for smtp.pi.sbcglobal.net.
> smtp.pi.sbcglobal.net is an alias for smtp.prodigy.net.
> smtp.prodigy.net has address 207.115.20.26
> smtp.sbcglobal.net is an alias for smtp.pi.sbcglobal.net.
> smtp.pi.sbcglobal.net is an alias for smtp.prodigy.net.
> smtp.sbcglobal.net is an alias for smtp.pi.sbcglobal.net.
> smtp.pi.sbcglobal.net is an alias for smtp.prodigy.net.
>
> It appears that your /etc/inet/hosts entry needs to be
>
> 207.115.20.26	smtp.prodigy.net	smtp.sbcglobal.net
>
> if that is indeed the IP address and FQHN of the system.
>
> If the host on which your program is running is *not* that server then you
> need a similar entry in /etc/inet/hosts including its IP address, FQHN and
> any aliases assigned to that host.

Thanks for the help! I ran a traceroute to smtp.sbcglobal.net and got
the same IP address as above. I put that in my /etc/inet/hosts file and
tried again.

Now, I am getting a "Could not connect to SMTP host:
smtp.sbcglobal.net, port: 25".
I thought I had checked to see if sendmail was up and running, and it
was (don't remember how I did that now), but when I try: telnet
smtp.sbcglobal.net 25, it won't connect...???

Any ideas?

Nino

0
Reply nino9stars 9/9/2006 12:13:19 AM

On Fri, 08 Sep 2006 17:13:19 -0700, nino9star wrote:

> Now, I am getting a "Could not connect to SMTP host:
> smtp.sbcglobal.net, port: 25".
> I thought I had checked to see if sendmail was up and running, and it
> was (don't remember how I did that now), but when I try: telnet
> smtp.sbcglobal.net 25, it won't connect...???

Works OK from here:

[log]# telnet smtp.sbcglobal.net 25
Trying 207.115.20.26...
Connected to smtp.sbcglobal.net.
Escape character is '^]'.
220 flpi101.sbcis.sbc.com ESMTP Sendmail 8.13.7 out spool5000 dk/8.13.7;
 Fri, 8 Sep 2006 17:34:46 -0700
^]

Perhaps your IP address or subnet are being blocked by prodigy.net. 
Perhaps pacbell.net is blocking outbound port 25.

0
Reply Dave 9/9/2006 12:42:38 AM

Dave Uhring wrote:
> Works OK from here:
>
> [log]# telnet smtp.sbcglobal.net 25
> Trying 207.115.20.26...
> Connected to smtp.sbcglobal.net.
> Escape character is '^]'.
> 220 flpi101.sbcis.sbc.com ESMTP Sendmail 8.13.7 out spool5000 dk/8.13.7;
>  Fri, 8 Sep 2006 17:34:46 -0700
> ^]
>
> Perhaps your IP address or subnet are being blocked by prodigy.net.
> Perhaps pacbell.net is blocking outbound port 25.

Oh man... you're right! I had issues with the resolving of the address,
but once that was taken care of, port 25 was being blocked. However, it
wasn't from my IP, but from my server! This is the second time I've had
my IP filter get me... I opened the port for outbound information and
now it is working properly.

Thank you so much to everyone that helped! I really couldn't have done
it without you all!

Nino

0
Reply nino9stars 9/10/2006 3:50:50 AM

7 Replies
778 Views

(page loaded in 0.114 seconds)

Similiar Articles:













7/20/2012 8:28:19 PM


Reply: