howto/EMail.md
... ...
@@ -0,0 +1,21 @@
1
+Running email in dn42 is not very complicated. Your SMTP daemon probably already listens on the wildcard address, so you mostly need to:
2
+
3
+* open your firewall to allow TCP/25 from dn42
4
+* setup DNS (MX records, or simply relevant A records)
5
+* configure your mail server if needed
6
+
7
+## Exim tips
8
+
9
+### Sending emails
10
+
11
+By default on Debian, Exim refuses to send mail to other mailservers when they resolve to RFC1918 addresses. This will manifest by the following error message when trying to send a mail:
12
+
13
+ ** foo@bar.dn42: all relevant MX records point to non-existent hosts
14
+
15
+This is controlled by the `ignore_target_hosts` variable in the configuration file.
16
+
17
+### Receiving emails
18
+
19
+Don't forget to add your dn42 domains to the list of local domains, so that you accept incoming emails. On Debian, it is controlled by `dc_other_hostnames` in `update-exim4.conf.conf`. For instance:
20
+
21
+ dc_other_hostnames='myself.org;myself.dn42;myserver.myself.dn42'
howto/email.md
... ...
@@ -1,21 +0,0 @@
1
-Running email in dn42 is not very complicated. Your SMTP daemon probably already listens on the wildcard address, so you mostly need to:
2
-
3
-* open your firewall to allow TCP/25 from dn42
4
-* setup DNS (MX records, or simply relevant A records)
5
-* configure your mail server if needed
6
-
7
-## Exim tips
8
-
9
-### Sending emails
10
-
11
-By default on Debian, Exim refuses to send mail to other mailservers when they resolve to RFC1918 addresses. This will manifest by the following error message when trying to send a mail:
12
-
13
- ** foo@bar.dn42: all relevant MX records point to non-existent hosts
14
-
15
-This is controlled by the `ignore_target_hosts` variable in the configuration file.
16
-
17
-### Receiving emails
18
-
19
-Don't forget to add your dn42 domains to the list of local domains, so that you accept incoming emails. On Debian, it is controlled by `dc_other_hostnames` in `update-exim4.conf.conf`. For instance:
20
-
21
- dc_other_hostnames='myself.org;myself.dn42;myserver.myself.dn42'