• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 96
  • Last Modified:

Setting up SMTP server

I am trying to set up an SMTP server on Windows 2008. It is already there in Win 2008 and I added the Feature. But When I issue the command "telnet mail.domain.ext 25" the connection fails "Connecting To mail.domain.ext.. Could not open connection to the host, on port 25"
0
CSTAR05
Asked:
CSTAR05
  • 6
  • 5
1 Solution
 
jakethecatukCommented:
by default, SMTP is configured not to relay or accept connections.

you need to allow 127.0.0.1 (if you are using the local machine) or the IP address of the machine you are using to connect to SMTP to test it.

this is done under SMTP properties/Access/Connection and SMTP properties/Access/Relay
0
 
CSTAR05Author Commented:
I issued "telnet localhost 25"
Microsoft ESMTP Mail service version 7.0.6001.18000 is ready
The OS is running another server already and I added SMTP serverr. I need to give an IP address for the SMTP server. How do I bind IP address for the SMTP
0
 
jakethecatukCommented:
when you say 'When I issue the command "telnet mail.domain.ext 25"', I take it that you have configured DNS so that it knows where 'mail.domain.ext' is.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CSTAR05Author Commented:
how do I test whether the server is working or not?
I added 127.0.0.1 under relay
0
 
CSTAR05Author Commented:
  I tried sending mails using the following commands

MAIL FROM: postmaster@server.america.cstar.com
RCPT TO: x@cstar.com
DATA
TEST
.
The mail is not being delivered instead they are listed under bad mails.

There are 2 domains under SMTP server
server.americas.cstar.com and *.com

Is the FROM address correct?
0
 
CSTAR05Author Commented:
The mails are not delivered . Either it goes to bad mail or giving Error "Delivery to the following receipient failed"
0
 
jakethecatukCommented:
OK - for SMTP to work, you have to have a lot of things in place: -

1. SMTP installed and configured correctly on your server.  The items that need configuring include Connection Control and Relay Restrictions.  You may also need to configure Masquerade Domain, Fully-qualified domain name, and Smart Host.
2. DNS must be configured correctly on your network so that if you aren't using the Smart Host feature, your SMTP server can find the IP address of the remote e-mail server it is trying to send to.
3. Your firewall must be configured to allow SMTP traffic to/from your SMTP server.
4. You must allocate an external IP address to your SMTP server and configure the MX record and corresponding A record on your external DNS server.
5. You must configure the rDNS record for the external IP address you have given to your SMTP server.

Once you have done all that, you stand a fighting chance of getting SMTP to work.  If you haven't done all of that, then you have a lot of work to do.
0
 
CSTAR05Author Commented:
1. Hope I installed SMTP correctly since I am able to issue SMTP commands. I configured Relay restrictions, Fully qualified domain and smarthost (I didn't configure Masquerade domain- will it cause any problem) In our other SMTP server there is no MAsquerade domain.

2. Configured DNS.

3.Firewall is turned off.
4. I gave a IP address for SMTP which is different from the server address.




0
 
jakethecatukCommented:
if you are using a smarthost, you may have to configure that to allow your new SMTP host to relay through it.
0
 
jakethecatukCommented:
also, from your new SMTP server, you need to test that your can telnet via SMTP to your smarthost and other SMTP hosts.

0
 
CSTAR05Author Commented:
I set up the email services and it is working fine. Now I need to transfer the services from another server to this one. But I am not able to add the IP address in SMTP server properties.
Capture.PNG
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now