Article overview

Help article

Using the VPS mail service with DirectAdmin

On our VPS's you can always use our mail service free of charge, also referred to as 'Carefree Mailing'. With this service you will use our mail services to relay outgoing e-mail. In order to use the mail service, a one-time configuration of Exim on your VPS is required.

When using the mail service you will no longer have to worry about mails being delivered in the spamfolder due to incorrect reverse DNS or SPF-records, or because a blacklist is blocking mails from your IP-address.

To successfully set this up you will need to perform some configuration changes on your VPS to make sure your VPS and domains are properly authenticated for the use of our platform.

The easiest method for configuring the mail service is using the wizard in the control panel. Click here to immediately be taken to the wizard.


Configuring Exim manually

Use these steps if you're not using the wizard. First, consult this article if you haven't already, in order to retrieve your username and password, as well as to configure the required DNS records for your domain. Then, follow the steps below in your VPS-console or using SSH.

 

Step 1

Log in onto the console or via SSH and make sure you are running as 'root' or follow all the steps via the 'sudo' command.


 

Step 2

 

Open the file /etc/exim.conf:

nano /etc/exim.conf

 

Step 3

Find the section starting with begin authenticators. Add the following (replace the username and password with your own username and password. The username and the password can be found in the control panel under ' Manage Your Mail Service' > 'Username & Password', see this article):

auth_login:
  driver = plaintext
  public_name = LOGIN
  client_send = : username : password
  server_set_id = $1

 

Step 4

Now find the section starting with begin routers. Add the following below:

transip_email:
  driver = manualroute
  domains = ! +local_domains
  ignore_target_hosts = 127.0.0.0/8
  condition = "${perl{check_limits}}"
  transport = auth_relay
  route_list = * vps.transip.email::587
  no_more

 

Step 5

Now find the section starting with begin transports. Add the following below:

auth_relay:
  driver = smtp
  port = 587
  hosts_require_auth = <; $host_address
  hosts_require_tls = <; $host_address

 

Step 6

Save your changes and close the file using ctrl + x > y > enter.


 

Step 7

Restart exim to process the changes:

systemctl restart exim

 

Should you have any questions left regarding this article, do not hesitate to contact our support department. You can reach them via the ‘Contact Us’ button at the bottom of this page.

If you want to discuss this article with other users, please leave a message under 'Comments'.

 

Do you have a good idea?

Give us your idea! If it's popular we'll add it to the wishlist!

Has this article been helpful?

Create an account or log in to leave a rating.

Comments

Create an account or log in to be able to leave a comment.

Are you stuck?

Ask one of our specialists to assist you

Contact us