On our VPS's you can always use our VPS 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 Postfix 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.
Configuring Postfix 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.
Log in onto your BladeVPS via the console or via SSH and make sure you are running as 'root' or use the 'sudo' command to perform these steps.
Open the file /etc/postfix/main.cf (or /usr/local/etc/postfix/main.cf is case of FreeBSD):
Add the following to the file:
relayhost = vps.transip.email:587 smtp_sasl_auth_enable = yes smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_use_tls = yes smtp_tls_security_level = encrypt smtp_tls_note_starttls_offer = yes
Save the changes and exit. In nano this can be done using ctrl + x > y > enter. In vi(m) you can write and close via ':wq!'.
Create and open the file /etc/postfix/sasl_passwd,for example by using:
Add the following and then write and close the file (ctrl + x > y > enter for nano).
The username and the password can be found using the steps in this article.
Execute the following command:
If you are running CentOS, ArchLinux, FreeBSD of OpenBSD, you will need to install the 'cyrus-sasl'-package of 'postfix-sasl'-package. For CentOS for example, you can use:
yum -y install cyrus-sasl-plain
Reload Postfix, using one of the two commands below.
systemctl restart postfix service postfix reload
Postfix has now been successfully been configured for using the mail service and you can start mailing!
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'.