Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to figure out the SMTP server host?

Tags:

smtp

I am using SMTP to send emails by PHP. My client has a shared hosting. I created an email account there.

There is no information available about what will be the SMTP server for this account. I have tried: smtp.domainname.com But it's not able to connect.

How can I figure out my SMTP server host? any idea?

like image 921
Krishna Kant Sharma Avatar asked Sep 22 '09 16:09

Krishna Kant Sharma


People also ask

How do I find my SMTP host?

You can generally find your SMTP email server address in the account or settings section of your mail client. When you send an email, with SMTP host Gmail or AOL, the SMTP server processes your email, decides which server to send the message to, and relays the message to that server.


2 Answers

this really is a question for Serverfault.

Windows:

  1. Open up a command prompt (CMD.exe)
  2. Type nslookup and hit enter
  3. Type set type=MX and hit enter
  4. Type the domain name and hit enter, for example: google.com
  5. The results will be a list of host names that are set up for SMTP

Linux:

  1. Open a command prompt
  2. Type dig domain.name MX and hit enter where domain.name is the domain you are trying to find out the smtp server for.

If you do not get any answers back from your dns server, there is a good chance that there isn't any SMTP Servers set up for that domain. If this is the case, do like other's have suggested and call the hosting companies tech support.

like image 182
Jordan S. Jones Avatar answered Oct 09 '22 11:10

Jordan S. Jones


generally smtp servers name are smtp.yourdomain.com or mail.yourdomain.com open command prompt try to run following two commands

  1. >ping smtp.yourdomain.com
  2. >ping mail.yourdomain.com

you will most probably get response from any one from the above two commands.and that will be your smtp server

If this doesn't work open your cpanel --> go to your mailing accounts -- > click on configure mail account -- > there somewhere in the page you will get the information about your smtp server

it will be written like this way may be :

Incoming Server:    mail.yourdomain.com IMAP Port: --- POP3 Port: --- Outgoing Server:    mail.yourdomain.com SMTP Port: --- 
like image 34
Ritabrata Gautam Avatar answered Oct 09 '22 11:10

Ritabrata Gautam