Skip to content

Commit b7bf953

Browse files
authored
Use external lookup for Exim4 for local mail domains (hestiacp#3953)
1 parent 599d2a0 commit b7bf953

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/docs/server-administration/email.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,32 @@ If you are unable to receive emails, make sure you have setup your DNS properly.
4949

5050
When you are done you can check the configuration via [MXToolBox](https://mxtoolbox.com/MXLookup.aspx).
5151

52+
## How do I disable internal lookup for email
53+
54+
If you use an SMTP relay or want to use DKIM on your web server but host email on gmail you need to disable internal lookup in Exim4.
55+
56+
```bash
57+
nano /etc/exim4/exim4.conf.template
58+
```
59+
60+
```bash
61+
dnslookup:
62+
driver = dnslookup
63+
domains = !+local_domains
64+
transport = remote_smtp
65+
no_more
66+
```
67+
68+
Replace with:
69+
70+
```bash
71+
dnslookup:
72+
driver = dnslookup
73+
domains = *
74+
transport = remote_smtp
75+
no_more
76+
```
77+
5278
## How do I install SnappyMail?
5379

5480
You can install SnappyMail by running the following command:

0 commit comments

Comments
 (0)