Managing Receive Connector - Part 2
Managing Receive Connector - Part 1
Anderson Patricio
In the previous part of this series we created a Receive Connector to receive mail from the Internet and also tested it with the telnet utility and in this article we will show you how to send a message using telnet and Configure security features in Receive Connector.
To test a receive connector, we need to know some basic SMTP actions to send messages using the telnet session. The following commands will allow you to send a test message using the telnet utility. All basic SMTP actions require the following message to be sent:
- The receive connectors we created are listening on port 25 and on a specific IP address. Let's use the telnet utility to connect to our server:
telnet 25
Results: 220 Banner information - Start SMTP communication
EHLO example.org
Results: a list of all SMTP verbs that được nhận được từ sự nhận kết nối. In dòng đầu một câu hỏi hello với địa chỉ IP được dùng bởi sender sẽ được hiển thị. - Definition of sender of test messages
Mail from: user@example.org
Result : 250 2.1.0 Sender OK - Define the recipient of this test message. The SMTP domain used by the recipient must exist in the current organization.
Rcpt to: user @
Result: 250 2.1.5 Recipient OK - Start a notification
Data
Result: 354 Start mail input; kết thúc với. - Pressing the Enter key twice and hitting the inner key will appear in the body of the test message. To finish, type a dot '.' In the white line and press Enter.
Test notification section.
.
Result: 250 2.6.0 Queued mail for delivery - Close the session.
Quit
Result: 221 2.0.0 Service closing transmission channel
We can log in to OWA to check if the message is received. The whole process can be observed in Figure 1.
Figure 1
This process is very important in troubleshooting mail flow as well as validating Receive Connector.
Exploiting some security of Receive Connector
We have configured Receive Connector with both Exchange Management Console and Exchange Management Shell, now let's exploit some security configurations for Receive Connector. All of the security issues we will look at here are governed by the Receive Connector and they must be configured with the Exchange Management Shell. Please configure some features in the Internet Receive Connector as follows:
Change the Banner information
Some companies don't like the idea of displaying the server name in SMTP connections. We will change the banner information used for the Receive Connector with the command below and the results are shown in Figure 2.
Set-ReceiveConnector -Banner '220 Mail Server'
Figure 2
Specify the number of errors during a session .
We can control the number of protocol errors in a session. The initial default value is set to 5, to configure it to 2, we use the following command:
Set-ReceiveConnector -MaxProtocolErrors 2
At this point, if an SMTP Server / user is connected and reaches the maximum number of errors defined in the receive connector, the following message will be displayed (Figure 03):
Figure 3
Adjust the save for Receive Connector .
Receive connectors allow us to limit inbound traffic and limit usage from a certain source, preventing overloading of the system. Here are three options we can use:
-
MaxInboundConnectionsperSource : Defines the maximum number of connections made in a receive connector at the same time by the same source. The default value of this setting is 100.
-
MaxInboundConnection : Defines how many connections the receive connector will accept at the same time. The default value of this setting is 5000.
- MaxInboundConnectionPercentagePersource : Based on the MaxInboundConnection value it indicates the number of connections that the same source can establish with the receive connector. The default value is 2%.
To configure the Receive Connector with the new settings we have seen, we can run the following command:
Set-ReceiveConnector -MaxInboundConnection -MaxInboundConnectionsperSource -MaxInboundConnectionPercentagePerSource
We can also configure the time of the receive connector time-out according to certain aspects, such as: during SMTP communication as well as during an inactive connection (inactive). To configure ConnectionTimeout , we can run the following command:
Set-ReceiveConnector -ConnectionTimeout
To cancel the connection due to Inactive time, we can use the following command:
Set-ReceiveConnector -ConnectionInactiveTimeout
We can also restrict the number of recipients, limit the maximum speed and size of the message at the connector level, to configure these settings, we can use the following parameters:
-
MaxRecipientsPerMessage: The maximum number of recipients in a notification, the default value is 200.
-
MaxMessageSize: The maximum size of the message; The default value is 100MB.
- MaxRateLimit: Specify the maximum number of notifications that can be sent by the same client in a minute.
Let's change the Internet Receive connector to accept the 100 largest users, the notification size will be greater than 2MB and the limited speed is 200 as below:
Set-ReceiveConnector –MaxRecipientsPerMessage: 100 –MaxMessageSize: 5MB –MaxRateLimit: 200
The last feature we will introduce to you is TarpitIntervall. In Exchange Server 2003 we must configure it through the Registry Editor. In Exchange Server 2007 we can do this using the Exchange Management Shell. The tarpit feature will insert a pre-defined delay in each SMTP response, it contains a 5.xx error code during communication between two servers. This feature is only applied to anonymous connections and it should be used with the Recipient Filter Agent and Recipient Lookup features enabled.
In this article we are using Exchange Server 2007 with all three roles they have been installed (Mailbox, CAS and Hub Transport) and it will receive notifications from the Internet, we have also configured Anti-spam agent on the machine. this owner Now consider the Recipient Filtering agent and enable the Recipient Lookup feature:
- Open the Exchange Management Console.
- Open Organization Configuration.
- Click Hub Transport.
- Click the Anti-Spam tab
- Double-click the Recipient Filtering.
- Click the Blocked Recipients tab
- Check the first option 'Block messages sent to recipients not listed in the list Global Address' (see Figure 4).
Figure 4
From this point on, all messages that have an unknown address in the organization will be rejected by Exchange Server, as shown in the SMTP rcpt to action: in Figure 5. Even so, we may encounter problems. The problem here is that spammer can massively attack Exchange Server with dictionary attack to find out which emails are valid in your organization. So is there any way to counteract that phenomenon? There is no way to fix that problem, but with each wrong address tried in the SMTP communication, there will be a '5.1.1 User unknown' error and with each of those errors we have It is possible to configure tarpit to delay the server's response.
Figure 5
The default value is 5s, to change this configuration, we can run the following command:
Set-ReceiveConnector '' –TarPitInterval:
Conclusion
In this article, I have shown you how to configure security settings and some restrictions in Receive Connector. Introducing some configuration must be done with the Exchange Management Shell. In the next article in this series, I will show you how to write information, authentication methods and how to configure permissions using AdsiEdit.msc and Exchange Management Shell.
You should read it
- Managing Receive Connector - Part 1
- 5 disadvantages of the USB-C connector you should know
- How to Install a UHF Connector
- All problems about using Task Manager
- Neat Download Manager 1.3/1.8.0, download Neat Download Manager 1.3/1.8.0 here
- Ways to enable Task Manager in Windows 11
- How to use Canon printers for new users
- How to fix the NVIDIA graphics card error is not displayed in Device Manager
May be interested
- Managing Windows Networks using Script - Part 8: Handling remote scripting errors using Network Monitor 3.0in part 7, we started troubleshooting the error that occurred when trying to remotely change the ip address on an xp computer using the changeipaddress.vbs script that was previously developed.
- How to Connect Coaxial Cable Endscoaxial cable is used to transmit internet and tv signals to homes and other buildings. these cables need connectors to plug into electrical devices (such as tvs) and transmit signals. if the coaxial cable does not have a pre-existing connector, you can easily attach it yourself. just peel off the cover to expose the wires inside, attach the connector and press cos to secure. if used in a narrow space, you should use a perpendicular connector to avoid bending the cable too much.
- Managing computers with Windows Intune - Part 3: Managing computers and upgradingin this section, i will show you how to manage different computers using workspace computers and updates in the windows intune administration interface.
- How to connect two Video players to the TVmost new tvs support multiple signal connections to be able to receive images and sound from many different video players with the tv.
- How to Open a Molex Connectormolex is a company that manufactures a variety of different types of electrical connectors that are used for applications such as computers and electronic devices. their connectors are sturdy and long-lasting, but they can wear out over...
- Turn off the Outlook Social Connector feature in Office 2010in the following article, we will present some basic steps to turn off the social connector function and avoid the complexities in the microsoft office 2010 product set, in this test is outlook ...
- The USB connector explains why users have to plug the USB device into the computer 3 timesin order for the usb standard to be universally popular, researchers have tried to bring its cost to the lowest level so it has not designed the same way.
- Replace Domino with Exchange 2007 (Part 2)in the first part, we took a quick look at the microsoft transporter suite for lotus domino and created a new directory connector.
- How to fix 'Liquid Detected in USB-C Connector' warning on iPhoneare you trying to charge your iphone but see a warning telling you that liquid has been detected in the connector? let's look at the troubleshooting steps you can take to resolve the liquid detected warning and get your iphone charging again.
- How to Crimp a Wireelectrical connectors are necessary to join electric circuits together. but to use an electrical connector, you need to attach it to a wire via crimping. whether you're joining 2 pieces of wire or a wire directly to an electrical terminal,...