All incoming mail rejected: relay not allowed

I have a fresh install of Hestia right out of the box on Ubuntu 24.04 with Hostinger and all incoming mail is being frozen and not delivered… at first it was due to the infamous spamhaus problem but I have removed all DNSBL checks and now everything in the logs just says “relay not allowed” every time I try…

any ideas? My outgoing mail works just fine.

How are you testing it? From an external account from another mail provider and sending to one email account hosted in your server? We need the relevant entries from /var/log/exim4/mainlog

I deleted some of it while testing but heres my most recent.

Most recent error seems to be the “lowest mx record”
mainlog: 2025-02-15 07:41:12 1tj87E-000000013T1-30wx <= bounces+11303928-e16e-facebook=pa - Pastebin.com
rejectlog: 2025-02-15 07:14:25 H=keeper-us-east-1d.mxtoolbox.com [18.209.86.113] sender ver - Pastebin.com

I have tried at least 3 different external accounts, one from gmail, one from protonmail, and one from a disposable email service. As well as an “email deliverability” test from mxtoolbox

From your server, show the output of:

dig mx potionsandsnitches.org

Take the host from the output of above command and:

dig host_from_previous_command

dig mx (domain) returns mail.(domain)
dig mail.(domain) returns my server IP

Sorry i keep getting restriction errors about posting links/images because I am a new user.

Instead of links and screenshotd, copy and paste the outputs, once pasted, select the output and click on button </>

Show the output of these commands:

getent ahosts potionsandsnitches.org
getent ahosts mail.potionsandsnitches.org
dpkg -l | grep -E '^ii\s*exim4'
grep -Ev '^$|^#' /etc/exim4/update-exim4.conf.conf
grep 'local_domains =' /etc/exim4/exim4.conf.template
ls -l /etc/exim4/domains/
1 Like
root@server:~# getent ahosts potionsandsnitches.org
getent ahosts mail.potionsandsnitches.org
dpkg -l | grep -E '^ii\s*exim4'
grep -Ev '^$|^#' /etc/exim4/update-exim4.conf.conf
grep 'local_domains =' /etc/exim4/exim4.conf.template
ls -l /etc/exim4/domains/
89.116.170.236  STREAM potionsandsnitches.org
89.116.170.236  DGRAM
89.116.170.236  RAW
89.116.170.236  STREAM mail.potionsandsnitches.org
89.116.170.236  DGRAM
89.116.170.236  RAW
ii  exim4                             4.97-4ubuntu4.2                          all          metapackage to ease Exim MTA (v4) installation
ii  exim4-base                        4.97-4ubuntu4.2                          amd64        support files for all Exim MTA (v4) packages
ii  exim4-config                      4.97-4ubuntu4.2                          all          configuration for the Exim MTA (v4)
ii  exim4-daemon-heavy                4.97-4ubuntu4.2                          amd64        Exim MTA (v4) daemon with extended features, including exiscan-acl
dc_eximconfig_configtype='local'
dc_other_hostnames='server.hostbeacon.com'
dc_local_interfaces='127.0.0.1 ; ::1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
domainlist local_domains = dsearch;/etc/exim4/domains/
total 0
lrwxrwxrwx 1 root root 41 Feb 13 14:38 hostbeacon.com -> /home/hostbeacon/conf/mail/hostbeacon.com
lrwxrwxrwx 1 root root 51 Feb 14 09:48 parkerfamilydev.com -> /home/parkerfamilydev/conf/mail/parkerfamilydev.com
lrwxrwxrwx 1 root root 57 Feb 13 14:36 potionsandsnitches.org -> /home/potionsandsnitches/conf/mail/potionsandsnitches.org
root@server:~#

Anyone? Im sorry but this is stopping me from using my server which is already in a production status… I REALLY need this to get fixed.

“lowest numbered MX record points to local host”
“all relevant MX records point to non-existent hosts”

  • Check the MX records in the DNS.

Ive already established the DNS is all correct… I can not find any logical reason for this it is happening to every domain on my server email just does not work period

All looks fine, I see no obvious problem.

Execute this command to simulate a delivery to your user (it’s just a simulation, no mail will be sent):

exim4 -d -bt -f "bounces+11303928-e16e-facebook=parkerfamilymail.com@em1229.hexnodemdm.com" [email protected]

Additionally, show the contents of /etc/hosts and the ips of your host

grep -Ev '^$|^#' /etc/hosts
ip a
v-list-sys-ips json

Once again Discourse will not ALLOW me to post the results of all that citing a restriction on new users posting more than two “links” even though I have not attempted to post ANY.

As a result I have had to post the entire output of everything you asked for to HestiaCP Results - Pastes.io

Im not sure which part fixed it but I did a couple of things… end result is IT WORKS NOW! Thank you guys for all of your help.

Could you please share those things?

Honestly I did several, the main two things though were resetting the exim configuration file back to the default provided by your installer and adding a record for my hostname with my public IP to /etc/hosts

1 Like

Be sure to use </> Preformatted text to prevent automatic linking.

Could it be that the DNS delegation was a little late and that caused the problem?