Mails are sent by Exim from the primary IPv4 address of the server, by default. You should verify that the rDNS (reverse DNS) entry of the outgoing IP address of Exim matches your server’s hostname’s DNS response. This needs to be done to decrease the possibility of your mail being marked as spam by the spam filters.
The steps that are involved in configuring the Exim outgoing IP address, form the core of what shall be described here. The steps that will be mentioned, require root-level privileges on the server. Prior to mentioning those steps, let us touch upon the topic of servers.
Servers
Servers are devices or software, which provide
functionality to some other device or program that is referred to as the
client. Servers function in accordance with the client-server model, wherein a
request is sent by the client to the server. The server sends an appropriate response,
such as a relevant result or acknowledgement, to the client after performing
some action. Servers provide various functionalities but data sharing,
distribution of work, and resource sharing are the main functions of servers. Database
servers, game servers, file servers, application servers, mail servers, print
servers, and web servers are some of the types of servers.
Web servers, which are a type of server, are an
essential component of the service of web hosting. Web hosting is the service
which makes it possible to access websites over the Internet. Web servers are
used in web hosting to host the files (content) of websites. These files are
received by the devices of users, which are connected to the Internet, after
these devices request for web content from the web servers. The web servers as
well as the service of web hosting, are both provided by web hosting companies,
such as HTS Hosting. The hosting
service of HTS Hosting and its VPS (Virtual Private Servers) are immensely
popular among its ever-increasing clientele that includes businesses and
individuals from all over the world. As the most preferred brand for web
hosting, HTS Hosting, provides all types of website
hosting services and Managed VPS as well
as Self-Managed VPS
at the most affordable prices. Its superior quality of service at
budget-friendly prices, and the availability of expert technical support 24*7
has ensured a steady rise in its popularity as the most trusted brand for web
hosting.
Now that we have given a brief overview of
servers, let us return to our main topic, and find out how to modify the
preferences of Exim for outgoing mail.
Modifying
Exim’s Preferences for Outgoing Mail
There are two ways that are offered by cPanel
& WHM which are meant for modifying the default preferences of Exim for the
IP address of the outgoing mail.
Enable Automatic
Configuration of the IPv4 Address of the Server for Outgoing Mail
If you want Exim to be configured automatically
for sending mail from the dedicated IPv4 address of each domain, then you need
to carry out the below-mentioned steps.
- Each IPv4 address’ rDNS needs to be modified to point to the desired domain.
It needs to be specified here that mail servers
might reject the mail of your server if there is an incorrect rDNS
configuration.
- You must enable the option, Send mail from account’s dedicated IP address. It is present in the Exim Configuration Manager interface in WHM.
Home >>
Service Configuration >> Exim Configuration Manager
You need to be informed here that if you select
the above-mentioned option, then cPanel & WHM uses a particular script for
automatically configuring Exim and overrides any manual changes in the /etc/mailhelo file and in the /etc/mailips file. The script is as
follows:
/usr/local/cpanel/scripts/updateuserdomains
Manually
Configure the Outgoing IP Addresses of Exim
It needs to be mentioned here that the
modification of your Exim files is not recommended. Moreover, if you want to
modify your Exim configuration files, then you need to possess root-level privileges.
You have to enable certain options, if you want to
use a custom Exim configuration. These options are present in the Basic Editor section of the Exim Configuration
Manager interface of WHM.
Home >>
Service Configuration >> Exim Configuration Manager
The options, which need to be enabled, are:
- Reference /etc/mailhelo for outgoing SMTP HELO
- Reference /etc/mailips for outgoing SMTP connections
There are some important points that you need to
be aware of, in this context. These are as follows:
- If Reference /etc/mailhelo for outgoing SMTP HELO setting is disabled, the system overwrites the changes made to the /etc/mailhelo file.
- If Reference /etc/mailips for outgoing SMTP connections setting is disabled, the system overwrites the changes made to the /etc/mailips file.
If the outgoing IP address is changed to a
non-cPanel main IP address, then the SPF record of that email address needs to
be updated by the cPanel user. The SPF record can be configured in the Email Deliverability interface of
cPanel.
cPanel >>
Home >> Email >> Email Deliverability
Please note that in the version 76 of cPanel &
WHM and its earlier versions, the Email Deliverability interface corresponds to
the Authentication interface.
cPanel >>
Home >> Email >> Authentication
The
/etc/mailhelo File
The configuration of Exim for the HELO command is contained in the /etc/mailhelo file. The domain that
sends the HELO command is governed by
this file.
The
/etc/mailips File
The IP address from which mail is sent by each
domain is controlled by the /etc/mailips
file.
No comments:
Post a Comment