Track email delivery

So, I can see some details here: /list/server/?mail. However, like cPanel has a nice track delivery option, is there something similar in HCP?
Also, if any email is rejected, is there a folder where it gets stored, or is it never received into my server only? I guess, it is the latter, but just want to understand.

Also, I guess the logs are all here in exim4 main log: /var/log/exim4/mainlog, right?

I already went through the thread here before raising this query post. It does not give much info, tbvh, in terms of what I am looking for.

Something like this:

That would be an awesome feature but all we have is the logfile.

You may though filter those. By sender or recipient or…

1 Like

Reading this thread post, I just checked my server, and I can see this:

Exim statistics from 2025-02-15 00:28:27 to 2025-02-15 21:21:44

Grand total summary
-------------------
                                                                  At least one address
  TOTAL               Volume   Messages Addresses     Hosts      Delayed       Failed
  Received              19KB          5                   2       4 80.0%      4 80.0%
  Delivered             9210          2         2         1
  Rejects                          2167                  43
  Temp Rejects                        2                   1

Deliveries by transport
-----------------------
                      Volume    Messages
  dovecot_virtual_delivery    9210           2
Top 50 mail rejection reasons by message count
----------------------------------------------
  Messages   Mail rejection reason
       202   Rejected RCPT: Sender verify failed
       **1900   Rejected RCPT: Rejected because 19 IPs are in a black list at spamhaus**
        41   Dropped: too many syntax or protocol errors
         **19   Rejected RCPT: Rejected because 19 IPs are in a black list at zen.spamhaus.org**
         6   Dropped: too many unrecognized commands
         1   Rejected MAIL: Helo name contains an IP address (HELO was 177.237.197.116.unknown.m1.com.sg) and not is valid
         1   Rejected RCPT: relay not permitted

I sent test emails just now, and those are the 2 delivered ones showing above in summary.
Rest rejection reasons, and where they are stored or what they mean, I would like to understand as well in non-technical terms, if possible please.
The 1900 & 19 lines are edited by me, as those are the total it showed for me (100 * 19 lines).

For all these messages, your server is not saving any email, it is rejecting/dropping all of them.

Exim performs several checks on the email sender: verifying that the domain exists, ensuring it is properly formatted, and confirming that DKIM, SPF, and DMARC are correct, among others. If any of these tests fail, Exim rejects the email.

The sender is using invalid command to talk to your mail server. Usually are spammers or people trying to guess what service are you running on that port, if it is vulnerable, etc. so Exim drops the connection.

The sender’s ip is included in one of the block list used by Exim, usually all of those ips are operated by spammers so Exim is rejecting the connection from those ips.

Someone trying to connect to your mail server is identifying itself with a wrong name. Exim rejects the connection.

Someone tries to use you server as a relay server (to send mail to other domains not hosted on your mail server). Exim only allows the relay if the user can authenticate itself with your server. In this case, someone not authorized tries to do it and Exim rejects the mail.

Those unauthorized ones are scary. I believe someone is not able to do anything till date. I have IP blocks as well in place. However, do you believe I need to do something or this is normal behavior?
Thanks again.

Update: The earlier 202, from the time I shared has bundled to 302 now. Scary…

302   Rejected RCPT: Sender verify failed

Unfortunately, yes, it’s normal, welcome to internet :stuck_out_tongue:

Top 50 mail rejection reasons by message count
----------------------------------------------
  Messages   Mail rejection reason
      4427   Rejected RCPT: Sender verify failed
       200   Rejected RCPT: Rejected because 94.183.165.17 is in a black list at zen.dq.spamhaus.net
       156   Rejected RCPT: Unrouteable address
       125   Dropped: too many unrecognized commands
       100   Rejected RCPT: Rejected because 101.168.40.184 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 103.106.154.142 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 103.159.217.132 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 103.232.163.148 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 113.34.161.53 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 117.192.141.37 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 120.157.196.139 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 120.157.85.253 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 121.120.149.141 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 123.209.107.18 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 123.209.96.191 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 125.163.64.4 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 136.36.16.218 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 149.210.53.227 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 157.90.97.35 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 165.90.110.14 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 165.90.116.101 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 166.157.25.115 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 168.126.90.210 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 170.233.29.157 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 180.188.135.18 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 182.223.191.76 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 186.7.83.97 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 193.218.143.62 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 194.19.73.15 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 2.192.150.40 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 200.7.43.246 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 223.239.159.21 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 24.112.30.147 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 38.211.138.244 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 41.215.210.211 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 41.76.80.100 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 46.146.227.191 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 58.115.15.172 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 60.246.83.58 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 61.112.205.221 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 61.69.139.194 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 62.143.219.127 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 71.193.102.94 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 81.95.82.75 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 82.19.12.103 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 88.150.6.165 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 88.201.163.65 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 91.65.199.12 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 93.57.66.162 is in a black list at zen.dq.spamhaus.net
       100   Rejected RCPT: Rejected because 95.108.2.179 is in a black list at zen.dq.spamhaus.net
3 Likes

Thanks. This is the first time I am running my own email on my own (my other domain is based on a shared server), but this one is my root server. So, just not sure and the shared one has cPanel, which is what I am used to since last 7+ years, so you can very well guess where I am coming from. :slight_smile:

However, coming back to the OP, I really wish we had something like that, or near to that. :slight_smile:

With the help of which script you get that output?

(can’t find it your mentioned thread)

update: found it directly in hestiacp /list/server/?mail

Welcome in the world of self hosting email…

 Messages   Mail rejection reason
      2507   Rejected RCPT: Unrouteable address
      1174   Rejected RCPT: Sender verify failed
       100   Rejected RCPT: Rejected because 110.34.111.22 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 111.70.10.3 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 111.70.49.105 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 117.53.254.144 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 137.119.69.36 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 186.215.204.109 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 191.36.154.175 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 222.99.237.249 is in a black list at bl.spamcop.net
       100   Rejected RCPT: Rejected because 67.213.230.122 is in a black list at bl.spamcop.net
         2   Dropped: too many unrecognized commands
         2   Rejected RCPT: Rejected because 88.214.58.66 is in a black list at zen.spamhaus.org
         1   Dropped: too many syntax or protocol errors
         1   Rejected HELO/EHLO: syntactically invalid argument
         1   Rejected MAIL: Helo name contains an IP address (HELO was [103.246.45.57]) and not is valid
         1   Rejected MAIL: Helo name contains an IP address (HELO was [170.239.201.229]) and not is valid
         1   Rejected RCPT: Rejected because 81.200.145.106 is in a black list at zen.spamhaus.org
         1   Rejected RCPT: Rejected because 81.200.146.165 is in a black list at zen.spamhaus.org
         1   Rejected RCPT: Rejected because 82.97.250.106 is in a black list at zen.spamhaus.org
         1   Rejected RCPT: Rejected because 92.53.120.2 is in a black list at zen.spamhaus.org

And this only hosting 1 domain (hestiacp.com)

1 Like

Glad you found it. Suggest you change the port. Also, do not share the panel URL publicly. Just to be cautious.

1 Like

Yeah, mine runs up to same daily. :frowning:

I do not wish to go back to cPanel, as I can very well say I am in love with HCP. :heart_eyes: