1819950 Members
3450 Online
109607 Solutions
New Discussion юеВ

SMTP server name

 
Amit Manna_6
Regular Advisor

SMTP server name

HI
Can anybody tell me how can we find out the SMTP server name ?

Thanks
Amit
6 REPLIES 6
Rajeev  Shukla
Honored Contributor

Re: SMTP server name

Hi Amit,

Can you describe more as what is your requirement coz one way to find a SMTP server in domain is using nslookup and querying the MX record for that domain

Cheers
Rajeev
Stephen Keane
Honored Contributor

Re: SMTP server name

Something like

# nslookup -t MX

renarios
Trusted Contributor

Re: SMTP server name

For which purpose do you want to know the name of the SMTP server?
Do you need it for the sendmail configuration, or for finding an mx record?

Cheerio,

Renarios
Nothing is more successfull as failure
Amit Manna_6
Regular Advisor

Re: SMTP server name

the command nslookup -t MX does not work
Rajeev  Shukla
Honored Contributor

Re: SMTP server name

Do
nslookup
>set query=mx
>hotmail.com
This will list the SMTP servers of hotmail site (MX record for hotmail site)
Thats how you can query for your domain

Cheers
Rajeev
Suraj Singh_1
Trusted Contributor

Re: SMTP server name

In the o/p of nslookup, look for "mail exchanger"...
# nslookup
Default Name Server: dns.mydomain.com
Address: 10.1.16.101

> set q=mx
> hp.com
Name Server: dns.mydomain.com
Address: 10.1.16.101

Trying DNS
Non-authoritative answer:
hp.com preference = 10, mail exchanger = smtp.cce.hp.com
hp.com preference = 30, mail exchanger = smtpx.hp.com
hp.com preference = 10, mail exchanger = smtp.hp.com

Authoritative answers can be found from:
hp.com nameserver = am1.hp.com
hp.com nameserver = am3.hp.com
hp.com nameserver = ap1.hp.com
hp.com nameserver = eu1.hp.com
hp.com nameserver = eu2.hp.com
hp.com nameserver = eu3.hp.com
smtp.cce.hp.com internet address = 161.114.21.24
smtp.cce.hp.com internet address = 161.114.21.25
smtp.cce.hp.com internet address = 161.114.21.22
smtp.cce.hp.com internet address = 161.114.21.23
smtpx.hp.com internet address = 15.45.89.157
smtpx.hp.com internet address = 15.81.168.20
smtpx.hp.com internet address = 15.81.168.21
smtpx.hp.com internet address = 15.81.176.20
smtpx.hp.com internet address = 15.81.176.21
smtpx.hp.com internet address = 15.45.89.154
smtpx.hp.com internet address = 15.45.89.155
smtpx.hp.com internet address = 15.45.89.156
am1.hp.com internet address = 15.227.128.50
am3.hp.com internet address = 15.243.160.50
ap1.hp.com internet address = 15.211.128.50
eu1.hp.com internet address = 16.14.64.50
eu2.hp.com internet address = 16.6.64.50
eu3.hp.com internet address = 16.8.64.50
> exit
What we cannot speak about we must pass over in silence.