How To Setup A Ftp Server On Windows Server 2008
You can install an SMTP server using congenital-in tools in all versions of Windows Server. This SMTP server tin work every bit a mail relay service that should receive and send SMTP emails from diverse devices in the organisation (for example, senders, scanners, access control devices, etc.) and applications (web apps, SQL Reporting Services, SharePoint), which should be able to send mail using the SMTP protocol. Such a relay tin can transport messages to your Exchange servers or to public email services such equally Gmail, Yahoo, Office 365 (outlook.com), etc. (since it is not always appropriate to deploy a full-featured internal e-mail infrastructure based on Microsoft Commutation Server or other email services).
In this article nosotros'll show how to install, configure and test the SMTP server on Windows Server 2012 R2, 2016 and 2019 serving every bit a mail relay. This SMTP server can just transport or forward emails, and in that location are no user mailboxes on it.
Contents:
- How to Install SMTP Service on Windows Server 2016 / 2012 R2?
- Configuring SMTP Server on Windows Server
- SMTPSVC Service Auto-Outset
- Testing the SMTP Server on Windows
How to Install SMTP Service on Windows Server 2016 / 2012 R2?
SMTP service is one of the congenital-in features of Windows Server that tin exist installed through Server Manager. To do it, open up the Server ManagerDashboard (servermanager.exe), go to Add roles and features and check SMTP Server when selecting the features to install. To manage the SMTP service, install the management consoles, being a part of Web Server (IIS) function, so you volition be prompted to install some IIS components.
Go out all the suggested options of the Web Server (IIS) role and run installation.
You tin can also install the SMTP server role using the PowerShell control:
Install-WindowsFeature smtp-server
After the components are installed, you may need to restart your server.
Configuring SMTP Server on Windows Server
The SMTP server is still managed using the sometime school management console Internet Information Services (IIS) Manager 6. Yous can open up this console from the Server Manager: Tools-> Internet Information Services (IIS) 6.0 Manager or with the command inetmgr6.exe.
Expand the co-operative with your server name in the IIS 6 Director, right-click SMTP Virtual Server and open its properties.
On the General tab, if necessary, select the IP address on which the SMTP server should respond (if the server has multiple IP addresses), and check the option Enable logging (in gild to save data about all received emails to text log files).
So go to the Admission tab.
Here click the Hallmark button and brand sure that the Bearding access is enabled.
Go back to the Access tab and click the Connection push. Hither you can specify the IP addresses of devices that are allowed to send emails through your SMTP relay. To do information technology, cheque the But the list below and specify the list of IP addresses (subnets), don't forget about yourself (127.0.0.1).
Configure the same way the list of immune IPs in the Relay settings (click the corresponding button). This section indicates which IP addresses (or subnets) tin can relay email through your SMTP server.
Note. As a general dominion, information technology'southward worth to check this options and limit the listing of accepted devices with the range of IP addresses. Otherwise, your SMTP server may be used by spammers and other attackers as an open relay for mass mailings.
Become to the Messages tab. Here the administrative email address is specified, to which the copies of all NDR letters will exist ship (Send copy of Non-Commitment Report to:). Also hither you can specify the restrictions on the maximum bulletin size (Limit message size KB) and the maximum number of recipients (Limit number of recipients per message).
Get to the Delivery tab.
Then click Outbound Security. Hither you specify the way of authentication on the external mail server to which your SMTP server will send (relay) all email letters. For instance, if all emails will be forrard to Gmail mail service server and so sent to the recipients, you need to bank check the Bones authentication and specify your Gmail mailbox credentials (you must permit to transport email via Gmail SMTP in the Google account settings).
And so click Advanced.
Here yous specify the FQDN proper name of your SMTP server. Click the Check DNS push button to make sure that the DNS record is valid.
If your server sends mail to an external SMTP server, specify its proper name in the Smart host field (for example, smtp.gmail.com or smtp.office365.com).
Some public post servers have email just when using a secure SMTP connection using TLS Encryption (TCP port 587). You can configure this setting in the department Delivery -> Outbound Security and Outbound Connections. Read the documentation of your e-mail provider.
Save the SMTP server settings and restart your SMTP virtual service to utilize the changes.
Note.
- The DNS settings are critical from the signal of view of e-mail arrangement health. If your SMTP server cannot correctly resolve DNS names of domains to which it is trying to send email, the commitment volition fail.
- If your server sends postal service to other domains, it is important that the correct PTR record is created for your IP address in society to resolve reverse DNS lookups. The PTR record for your public IP address should signal to your server FQDN name. Otherwise, most external SMTP servers won't take email from you, considering your server a spammer i.
SMTPSVC Service Auto-Showtime
It remains to configure the automatic startup of SMTP service on your Windows Server. Yous can do it quickly using the PowerShell command prompt:
set-service smtpsvc -StartupType Automatic
Showtime the service:
start-service smtpsvc
Brand sure that the SMTPSVC service is running:
go-service smtpsvc
Status Name DisplayName
—— —- ————
Running smtpsvc Simple Post Transfer Protocol (SMTP)
Testing the SMTP Server on Windows
The terminal thing you have to practice is to brand sure that your SMTP server is working. It is easier to practise it by creating a patently-text file smtp-test-email.txt on your desktop and copying the following text to information technology. Don't forget to alter the sender and recipient names to yours.
From: server@localdomain.com
To: admin@localdomain.com
Subject: Email test
This is the examination electronic mail
Copy the file smtp-test-email.txt to the C:\inetpub\mailroot\Pickup folder. The Windows SMTP server monitors new files appearing in this folder, and if a file is found it will read it contents and endeavor to send an email with the given subject and body to the recipient specified in the To: line.
Check the recipient mailbox, and yous will see this e-mail.
Tip. Yous tin can test your SMTP server using the telnet control, VBS script or PowerShell:
Transport-MailMessage -SMTPServer localhost -To manager@localdomain.com -From server@localdomain.com -Bailiwick "Electronic mail examination" -Body "This is the test email from PowerShell"
If you have enabled Basic Authentication to authenticate all your SMTP clients (instead of anonymous authentication), you can send an email with the smtp authentication via telnet as follows.
Also, make certain that TCP 25 port is not blocked on your SMTP server by the local firewall or anti-virus software. The easiest fashion to do this is from a Windows-based figurer whose IP accost has been added to the allowed connection list. Check availability of port 25 using the Exam-NetConnection cmdlet:
Test-NetConnection smtprelay.woshub.com –port 25
If port 25 is blocked, check the settings of Windows Firewall, antivirus and hardware firewalls.
So, you have configured your own SMTP post relay on Windows Server 2016 / 2012 R2 and tested sending emails through it.
Source: http://woshub.com/how-to-install-and-configure-smtp-server-on-windows-server-2012-r2/
Posted by: mcginnismanday.blogspot.com
0 Response to "How To Setup A Ftp Server On Windows Server 2008"
Post a Comment