Martin @ Blog

software development and life.

Flower

Mailserver at HetNet network

I have a temporarily internet connection via Het Net (in a few weeks I get a fiber connection at 100mbit). Since I manage some domains and don’t want to spend money on external mail servers (I’m Dutch…), I wanted to run my own SMTP server for receiving mail (sending mail can be done using the mailhost of the provider).
However, since a few years, most Dutch providers block incoming traffic at port 25 and only allows it to access the smtp servers of the provider. So this is a problem when you want to run your own mailserver for your domain.

When you’re at a KPN provider (HetNet or Planet) it is possible to use a mailrelay server. In order to make this work, you should set a primary and secondary mail server in your DNS record. Your own mail server should have the highest priority. As secondary mailserver you should set mailrelay.planet.nl with a lower priority.

Example:

IN MX 10 mail.yourdomain.com.
IN MX 20 mailrelay.planet.nl.

For me at least, this solution works.

Comments are closed.