Not receiving any emails

My domain is www.webmail.detailandsupply.com

www.mxtoolbox.com does say that a DNS record is published, but not found.

I’m not sure what the issue is, I have been going at this for days now.

Hello @Nguyjohnathon,

That means that you are trying to check a MX record for your domain www.webmail.detailandsupply.com and it doesn’t exist…and I don’t know what you want to do but it would be strange to add an mx record for that subdomain.

Also, you shouldn’t add two mx records to your domain:

$ dig detailandsupply.com mx +short
0 webmail.detailandsupply.com.
0 mail.detailandsupply.com.

Remove webmail.detailandsupply.com mx record, you are not serving a valid certificate for that domain in exim.

Cheers,
sahsanu

I did this but email is still not being received in the inbox. It gets sent just fine.

You must check the logs to know the reason you are not receiving emails:

/var/log/exim4/mainlog
/var/log/exim4/rejectlog

If you are using a public dns resolver like 8.8.8.8, 1.1.1.1, 9.9.9.9, etc. take a look to this doc because maybe spamhaus is blocking all ips.

Mainlog

2023-09-22 16:23:17 TLS error on connection from 172-104-29-143.ip.linodeusercontent.com (masscan) [172.104.29.1>
2023-09-22 16:25:26 Start queue run: pid=260891
2023-09-22 16:25:26 1qjDL1-0008sW-Hf Message is frozen
2023-09-22 16:25:26 1qjDL1-0008sQ-Fz Message is frozen
2023-09-22 16:25:26 1qjDL1-0008s3-6p Message is frozen
2023-09-22 16:25:26 End queue run: pid=260891
2023-09-22 16:28:51 no host name found for IP address 147.78.103.182
2023-09-22 16:29:47 no host name found for IP address 79.110.48.150
2023-09-22 16:36:58 no host name found for IP address 147.78.103.182
2023-09-22 16:45:04 no host name found for IP address 147.78.103.182
2023-09-22 16:51:41 no host name found for IP address 79.110.48.150
2023-09-22 16:53:09 no host name found for IP address 147.78.103.182
2023-09-22 16:55:26 Start queue run: pid=269942
2023-09-22 16:55:26 1qjDL1-0008sW-Hf Message is frozen
2023-09-22 16:55:26 1qjDL1-0008sQ-Fz Message is frozen
2023-09-22 16:55:26 1qjDL1-0008s3-6p Message is frozen
2023-09-22 16:55:26 End queue run: pid=269942
2023-09-22 17:01:13 no host name found for IP address 147.78.103.182
2023-09-22 17:09:21 no host name found for IP address 147.78.103.182
2023-09-22 17:13:22 no host name found for IP address 79.110.48.150
2023-09-22 17:14:18 TLS error on connection from 45-33-67-136.ip.linodeusercontent.com (masscan) [45.33.67.136] >
2023-09-22 17:17:31 no host name found for IP address 147.78.103.182

Rejectlog

  GNU nano 6.2                                 /var/log/exim4/rejectlog                                          
2023-09-22 02:19:01 H=(WIN-CLJ1B0GQ6JP) [79.110.48.144] F=<[email protected]> rejected RCPT <[email protected]>
2023-09-22 02:50:41 H=(WIN-CLJ1B0GQ6JP) [79.110.62.187] F=<[email protected]> rejected RCPT <[email protected]>
2023-09-22 03:12:08 H=(WIN-CLJ1B0GQ6JP) [80.76.51.39] F=<[email protected]> rejected RCPT <[email protected]>:>
2023-09-22 05:00:26 SMTP call from [205.210.31.226] dropped: too many unrecognized commands (last was "")
2023-09-22 07:25:19 H=(WIN-CLJ1B0GQ6JP) [87.120.84.80] F=<[email protected]> rejected RCPT <[email protected]>>
2023-09-22 10:31:55 SMTP call from scan-41i.shadowserver.org [64.62.197.160] dropped: too many unrecognized comm>
2023-09-22 12:51:28 rejected EHLO from portscanner-ams3-02.prod.cyberresilience.io [142.93.233.136]: syntactical>
2023-09-22 13:29:06 SMTP call from [170.106.115.15] dropped: too many unrecognized commands (last was "Accept: *>
2023-09-22 15:14:22 SMTP call from [152.32.132.194] dropped: too many syntax or protocol errors (last command wa>
2023-09-22 15:15:03 rejected EHLO from [152.32.132.194]: syntactically invalid argument(s): (no argument given)
2023-09-22 15:15:23 SMTP call from [152.32.132.194] dropped: too many unrecognized commands (last was "")

Checked spamhaus if blacklisted and it said domain is good.

Those messages say nothing about your issue. Send a mail from an external provider like gmail to one of the email accounts you have configured in hestia and then check the exim4 logs again.

Mainlog

2023-09-23 01:23:33 1qjrMr-001x2O-8d <= [email protected] H=mail-yw1-f176.google.com [209.85.128.176] P=esmtps X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no SNI=mail.detailandsupply.com K S=2888 DKIM=gmail.com id=CAAAiXvepgL3L9V_0unM9e9OpVpd+eguorrdAig00kZtqrRi2vg@mail.gmail.com
2023-09-23 01:23:33 1qjrMr-001x2O-8d => contact <[email protected]> R=localuser T=local_delivery
2023-09-23 01:23:33 1qjrMr-001x2O-8d Completed
2023-09-23 01:25:26 Start queue run: pid=466181
2023-09-23 01:25:26 1qjDL1-0008sW-Hf Message is frozen
2023-09-23 01:25:26 1qjDL1-0008sQ-Fz Message is frozen
2023-09-23 01:25:26 1qjDL1-0008s3-6p Message is frozen
2023-09-23 01:25:26 End queue run: pid=466181
2023-09-23 01:27:04 no host name found for IP address 147.78.103.182

Rejectlog is empty

Rejectlog.1 is

2023-09-22 18:23:26 SMTP call from [198.199.118.114] dropped: too many syntax or protocol errors (last command was "?\b?\006?\027?\030?\031?\v?\002\001??\r?&?$\006\001\006\003\006\002\005\001\005\003\005\002\004\001\004\003\004\002\003\001\003\003\003\002\002\001\002\003\002\002\001\001\001\003\001\002\377\001?\001??\017?\001\001?\022??\025\003\001?\002\002", NULL)
2023-09-22 21:15:06 SMTP call from scanner-25.ch1.censys-scanner.com [162.142.125.226] dropped: too many syntax or protocol errors (last command was "?", NULL)
2023-09-22 21:15:06 SMTP call from scanner-25.ch1.censys-scanner.com [162.142.125.226] dropped: too many syntax or protocol errors (last command was "?", NULL)
2023-09-22 21:15:07 SMTP call from scanner-25.ch1.censys-scanner.com [162.142.125.226] dropped: too many syntax or protocol errors (last command was "\300	?/\300\b?<?\232\300\234?\304\300\240?\210?\234?\276?5?E?=?\237\300\235\300\243\300\241\300\237?\235?k?A?9?\272?\236?\204\300\242?\300\300\236?\007?g?\004?3?\005?\026\001??\301\332\332?????\022?\020??\r68.183.113.75?\027???\001?\001\001\377\001?\001??", NULL)
2023-09-22 21:15:07 SMTP call from scanner-25.ch1.censys-scanner.com [162.142.125.226] dropped: too many syntax or protocol errors (last command was "?", NULL)
2023-09-22 21:15:07 SMTP call from scanner-25.ch1.censys-scanner.com [162.142.125.226] dropped: too many syntax or protocol errors (last command was "?", NULL)
2023-09-22 21:15:07 SMTP call from scanner-25.ch1.censys-scanner.com [162.142.125.226] dropped: too many syntax or protocol errors (last command was "\300+\300\256\300\254\300#\300	\300\b?\232?\304?\210?\276?E?\237\300\243\300\237?k?9?\236\300\242\300\236?g?3?\026\001??\321???\022?\020??\r68.183.113.75?\027???\001?\001\001\377\001?\001??", NULL)
2023-09-22 21:15:07 SMTP call from scanner-25.ch1.censys-scanner.com [162.142.125.226] dropped: too many syntax or protocol errors (last command was "?/?<\300\234\300\240?\234?5?=\300\235\300\241?\235?A?\272?\204?\300?\007?\004?\005\001??\321???\022?\020??\r68.183.113.75?\027???\001?\001\001\377\001?\001??", NULL)
2023-09-22 21:15:07 SMTP call from scanner-25.ch1.censys-scanner.com [162.142.125.226] dropped: too many syntax or protocol errors (last command was "\300	?/\300\b?<?\232\300\234?\304\300\240?\210?\234?\276?5?E?=?\237\300\235\300\243\300\241\300\237?\235?k?A?9?\272?\236?\204\300\242?\300\300\236?\007?g?\004?3?\005?\026\001??\334\272\272?????\022?\020??\r68.183.113.75?\027???\001?\001\001\377\001?\001??", NULL)

Paniclog is empty

Dovecotlog is

Sep 22 20:59:30 pop3-login: Info: Disconnected: Disconnected: Too many bad commands (no auth attempts in 0 secs): user=<>, rip=167.94.145.55, lip=68.183.113.75, session=<qPSI4vgFyqunXpE3>
Sep 22 21:26:24 imap-login: Info: Disconnected: Aborted login by logging out (no auth attempts in 4 secs): user=<>, rip=87.236.176.170, lip=68.183.113.75, TLS, session=<G3GwQvkF9dpX7LCq>
Sep 22 21:40:01 imap-login: Info: Disconnected: Connection closed: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol (no auth attempts in 1 secs): user=<>, rip=198.235.24.195, lip=68.183.113.75, TLS handshaking: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol, session=<e3xrc/kF5cTG6xjD>
Sep 22 21:44:33 imap-login: Info: Disconnected: Connection closed (no auth attempts in 5 secs): user=<>, rip=107.170.254.27, lip=68.183.113.75, TLS, session=<wnudg/kFxN1rqv4b>
Sep 22 21:48:03 pop3-login: Info: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=94.102.61.46, lip=68.183.113.75, session=<CAImkPkF1qpeZj0u>
Sep 22 22:00:53 pop3-login: Info: Disconnected: Connection closed: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol (no auth attempts in 1 secs): user=<>, rip=205.210.31.40, lip=68.183.113.75, TLS handshaking: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol, session=<sAYCvvkFX97N0h8o>
Sep 22 22:14:34 pop3-login: Info: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=198.199.112.92, lip=68.183.113.75, session=<lnL07vkFCLDGx3Bc>
Sep 22 22:25:28 pop3-login: Info: Disconnected: Connection closed: SSL_accept() failed: error:0A000076:SSL routines::no suitable signature algorithm (no auth attempts in 2 secs): user=<>, rip=50.116.60.176, lip=68.183.113.75, TLS handshaking: SSL_accept() failed: error:0A000076:SSL routines::no suitable signature algorithm, session=<aO3zFfoFSO4ydDyw>
Sep 22 22:31:12 pop3-login: Info: Disconnected: Connection closed: SSL_accept() failed: error:0A000076:SSL routines::no suitable signature algorithm (no auth attempts in 0 secs): user=<>, rip=45.33.70.60, lip=68.183.113.75, TLS handshaking: SSL_accept() failed: error:0A000076:SSL routines::no suitable signature algorithm, session=<SNZyKvoFSO4tIUY8>
Sep 22 22:42:47 imap-login: Info: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=172.104.217.21, lip=68.183.113.75, session=<Uh7mU/oFSO6saNkV>
Sep 22 22:52:56 imap-login: Info: Disconnected: Connection closed: SSL_accept() failed: error:0A000076:SSL routines::no suitable signature algorithm (no auth attempts in 2 secs): user=<>, rip=104.200.29.82, lip=68.183.113.75, TLS handshaking: SSL_accept() failed: error:0A000076:SSL routines::no suitable signature algorithm, session=<rtYxePoFSO5oyB1S>
Sep 22 22:57:27 pop3-login: Info: Disconnected: Connection closed (no auth attempts in 1 secs): user=<>, rip=167.94.146.56, lip=68.183.113.75, TLS: Connection closed, session=<lu1PiPoFUtenXpI4>
Sep 22 23:39:24 imap-login: Info: Disconnected: Aborted login by logging out (no auth attempts in 35 secs): user=<>, rip=87.236.176.210, lip=68.183.113.75, TLS, session=<oyRdHvsFXYhX7LDS>
Sep 22 23:39:25 imap-login: Info: Disconnected: Connection closed: read(size=599) failed: Connection reset by peer (no auth attempts in 0 secs): user=<>, rip=87.236.176.163, lip=68.183.113.75, TLS handshaking: read(size=599) failed: Connection reset by peer, session=<HKRpHvsFxZVX7LCj>
Sep 22 23:39:58 imap-login: Info: Disconnected: Connection closed: read(size=599) failed: Connection reset by peer (no auth attempts in 0 secs): user=<>, rip=87.236.176.163, lip=68.183.113.75, TLS handshaking: read(size=599) failed: Connection reset by peer, session=<mdxjIPsFY4dX7LCj>
Sep 22 23:40:31 imap-login: Info: Disconnected: Connection closed: read(size=678) failed: Connection reset by peer (no auth attempts in 0 secs): user=<>, rip=87.236.176.146, lip=68.183.113.75, TLS handshaking: read(size=678) failed: Connection reset by peer, session=<L7ReIvsFJZhX7LCS>
Sep 22 23:41:04 imap-login: Info: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=87.236.176.169, lip=68.183.113.75, TLS handshaking: Connection closed, session=<wNxYJPsFhdlX7LCp>
Sep 22 23:41:38 imap-login: Info: Disconnected: Connection closed: read(size=611) failed: Connection reset by peer (no auth attempts in 0 secs): user=<>, rip=87.236.176.165, lip=68.183.113.75, TLS handshaking: read(size=611) failed: Connection reset by peer, session=<cTtUJvsFY71X7LCl>
Sep 22 23:42:11 imap-login: Info: Disconnected: Connection closed: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol (no auth attempts in 0 secs): user=<>, rip=87.236.176.173, lip=68.183.113.75, TLS handshaking: SSL_accept() failed: error:0A000102:SSL routines::unsupported protocol, session=<0HVNKPsFmaBX7LCt>
Sep 22 23:42:44 imap-login: Info: Disconnected: Connection closed: read(size=597) failed: Connection reset by peer (no auth attempts in 0 secs): user=<>, rip=87.236.176.153, lip=68.183.113.75, TLS handshaking: read(size=597) failed: Connection reset by peer, session=<mfNIKvsFietX7LCZ>
Sep 22 23:43:17 imap-login: Info: Disconnected: Connection closed: read(size=597) failed: Connection reset by peer (no auth attempts in 0 secs): user=<>, rip=87.236.176.154, lip=68.183.113.75, TLS handshaking: read(size=597) failed: Connection reset by peer, session=<ulVDLPsFTYlX7LCa>
Sep 22 23:43:50 imap-login: Info: Disconnected: Connection closed: SSL_accept() failed: error:0A0000C1:SSL routines::no shared cipher (no auth attempts in 0 secs): user=<>, rip=87.236.176.172, lip=68.183.113.75, TLS handshaking: SSL_accept() failed: error:0A0000C1:SSL routines::no shared cipher, session=<OTM8LvsF14xX7LCs>
Sep 22 23:44:24 imap-login: Info: Disconnected: Connection closed: SSL_accept() failed: error:0A00006C:SSL routines::bad key share (no auth attempts in 0 secs): user=<>, rip=87.236.176.177, lip=68.183.113.75, TLS handshaking: SSL_accept() failed: error:0A00006C:SSL routines::bad key share, session=<X2Q2MPsF3dtX7LCx>
Sep 23 00:41:04 imap-login: Info: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=45.155.126.4, lip=68.183.113.75, TLS: Connection closed, session=<gyDs+vsF8pwtm34E>
Sep 23 00:52:18 imap-login: Info: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=172.105.128.12, lip=68.183.113.75, TLS handshaking: Connection closed, session=<SWQLI/wFDiesaYAM>
Sep 23 01:14:58 imap-login: Info: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=45.129.14.71, lip=68.183.113.75, TLS, session=<zPYfdPwFFo8tgQ5H>
Sep 23 01:16:54 pop3-login: Info: Disconnected: Connection closed (no auth attempts in 1 secs): user=<>, rip=45.129.14.71, lip=68.183.113.75, TLS, session=<z9MDe/wFkrMtgQ5H>
Sep 23 01:22:57 pop3-login: Info: Disconnected: Connection closed: SSL_accept() failed: error:0A00010B:SSL routines::wrong version number (no auth attempts in 0 secs): user=<>, rip=45.227.254.8, lip=68.183.113.75, TLS handshaking: SSL_accept() failed: error:0A00010B:SSL routines::wrong version number, session=<Cp+skPwFt/8t4/4I>

Running Ubuntu 22.04, Dovecot Version 2.3.16, Hestia Version 1.8.8, Exim Version 4.95, Nginx Version 1.25.2, Apache Version 2.4.57

I see that message has been delivered with success to your contact user, why do you think it is not receiving emails? Can’t you access to contact account using webmail to check that you are receiving mails?

I can access the contact user account in webmail, but for some reason it isn’t showing any emails. I think it is due to the mail directory being misconfigured. I’m using Maildir.

Could you please show the output of these commands?

grep contact /etc/exim4/domains/detailandsupply.com/passwd | cut -d ':' -f1,3-

In these commands, replace USER by your real user:

ls -la /home/USER/mail/detailandsupply.com/contact/
ls -lrt /home/USER/mail/detailandsupply.com/contact/new/
/usr/local/hestia/bin/v-list-mail-account USER detailandsupply.com contact

contact:admin:mail::/home/admin:0:userdb_quota_rule=*:storage=0M

ls -la /home/USER/mail/detailandsupply.com/contact/

drwx------ 11 admin mail  4096 Sep 23 07:02 .
drwxrwx---  3 admin mail  4096 Sep 15 20:42 ..
drwx------  6 admin mail  4096 Sep 23 07:02 .Archive
drwx------  6 admin mail  4096 Sep 23 07:02 .Drafts
drwx------  6 admin mail  4096 Sep 23 07:02 .Sent
drwx------  6 admin mail  4096 Sep 23 07:02 .Spam
drwx------  6 admin mail  4096 Sep 23 07:02 .Trash
drwxr-xr-x 12 admin mail  4096 Sep 23 07:02 .imap
drwx------  3 admin mail  4096 Sep 23 07:02 cur
-rw-------  1 admin mail   362 Sep 19 22:22 dovecot-uidlist
-rw-------  1 admin mail     8 Sep 15 20:42 dovecot-uidvalidity
-r--r--r--  1 admin mail     0 Sep 15 20:42 dovecot-uidvalidity.6504c1b4
-rw-------  1 admin mail   488 Sep 19 14:19 dovecot.index
-rw-------  1 admin mail 12088 Sep 19 22:22 dovecot.index.cache
-rw-------  1 admin mail 10120 Sep 19 22:25 dovecot.index.log
-rw-------  1 admin mail  6716 Sep 19 23:46 dovecot.list.index.log
-rw-------  1 admin mail   120 Sep 15 20:42 dovecot.mailbox.log
-rw-------  1 admin mail   432 Sep 23 07:26 maildirsize
drwx------  3 admin mail  4096 Sep 23 07:26 new
-rw-------  1 admin mail    36 Sep 15 20:42 subscriptions
drwx------  2 admin mail  4096 Sep 23 07:26 tmp

ls -lrt /home/USER/mail/detailandsupply.com/contact/new/

rw-rw---- 1 admin mail    3377 Sep 20 02:43 1695177784.M604653P1693691.detailandsupply.com
-rw-rw---- 1 admin mail    4459 Sep 20 07:07 1695193642.M448316P1788973.detailandsupply.com
-rw-rw---- 1 admin mail     724 Sep 21 06:39 1695278341.M592738P34382.detailandsupply.com
-rw-rw---- 1 admin mail     724 Sep 21 06:44 1695278649.M283908P37904.detailandsupply.com
-rw-rw---- 1 admin mail     628 Sep 21 06:47 1695278827.M360838P40475.detailandsupply.com
-rw-rw---- 1 admin mail     628 Sep 21 06:54 1695279247.M236578P44338.detailandsupply.com
-rw-rw---- 1 admin mail    3192 Sep 21 06:58 1695279497.M366883P46705.detailandsupply.com
-rw-rw---- 1 admin mail 1594135 Sep 21 07:30 1695281447.M834996P64143.detailandsupply.com
-rw-rw---- 1 admin mail    3827 Sep 21 08:36 1695285417.M471467P88430.detailandsupply.com
-rw-rw---- 1 admin mail   11103 Sep 21 08:46 1695285982.M948421P92053.detailandsupply.com
-rw-rw---- 1 admin mail     724 Sep 21 17:16 1695316560.M654516P270216.detailandsupply.com
-rw-rw---- 1 admin mail     748 Sep 21 17:25 1695317109.M461049P273566.detailandsupply.com
-rw-rw---- 1 admin mail    5828 Sep 21 23:19 1695338377.M910283P402376.detailandsupply.com
-rw-rw---- 1 admin mail     648 Sep 22 04:18 1695356336.M195992P516600.detailandsupply.com
-rw-rw---- 1 admin mail    3592 Sep 22 23:47 1695426437.M67598P429640.detailandsupply.com
-rw-rw---- 1 admin mail    3022 Sep 23 01:23 1695432213.M305954P465275.detailandsupply.com
-rw-rw---- 1 admin mail     744 Sep 23 02:00 1695434451.M287291P478951.detailandsupply.com
-rw-rw---- 1 admin mail     744 Sep 23 02:02 1695434528.M993375P479228.detailandsupply.com
-rw-rw---- 1 admin mail     744 Sep 23 02:05 1695434752.M348638P480960.detailandsupply.com
-rw-rw---- 1 admin mail     744 Sep 23 02:51 1695437483.M935919P512096.detailandsupply.com
-rw-rw---- 1 admin mail   54911 Sep 23 03:24 1695439470.M175996P523580.detailandsupply.com
-rw-rw---- 1 admin mail     744 Sep 23 06:31 1695450689.M54790P602303.detailandsupply.com
-rw-rw---- 1 admin mail     744 Sep 23 06:33 1695450806.M230112P602803.detailandsupply.com
-rw-rw---- 1 admin mail     611 Sep 23 06:58 1695452329.M821176P619515.detailandsupply.com
-rw-rw---- 1 admin mail     648 Sep 23 07:02 1695452564.M520999P620934.detailandsupply.com
-rw-rw---- 1 admin mail     650 Sep 23 07:03 1695452625.M815070P621180.detailandsupply.com
-rw-rw---- 1 admin mail     648 Sep 23 07:04 1695452668.M476187P621464.detailandsupply.com
-rw-rw---- 1 admin mail     648 Sep 23 07:05 1695452738.M165676P622178.detailandsupply.com
-rw-rw---- 1 admin mail     648 Sep 23 07:06 1695452811.M471502P622433.detailandsupply.com
-rw-rw---- 1 admin mail     648 Sep 23 07:10 1695453037.M96475P624001.detailandsupply.com
-rw-rw---- 1 admin mail     744 Sep 23 07:10 1695453057.M632581P624100.detailandsupply.com
-rw-rw---- 1 admin mail     645 Sep 23 07:13 1695453223.M727706P624657.detailandsupply.com
-rw-rw---- 1 admin mail    3165 Sep 23 07:14 1695453260.M771605P624823.detailandsupply.com
-rw-rw---- 1 admin mail     645 Sep 23 07:14 1695453292.M529437P625004.detailandsupply.com
-rw-rw---- 1 admin mail     645 Sep 23 07:22 1695453750.M36165P628458.detailandsupply.com
-rw-rw---- 1 admin mail     648 Sep 23 07:23 1695453800.M114233P628664.detailandsupply.com
-rw-rw---- 1 admin mail     648 Sep 23 07:26 1695453962.M797633P629796.detailandsupply.com
/usr/local/hestia/bin/v-list-mail-account USER detailandsupply.com contact
ACCOUNT:        contact
ALIAS:          
FORWARD:        
FORWARD_ONLY:   
AUTOREPLY:      no
QUOTA:          unlimited
DISK:           2
SUSPENDED:      no
TIME:           20:42:19
DATE:           2023-09-15
WEBMAIL_ALIAS:  webmail.detailandsupply.com

That .imap folder is the only weird thing I see. Did you modify in any way, roundcube, exim4 or dovecot?
Check the content of that folder:
ls -lR /home/admin/mail/detailandsupply.com/contact/.imap
Check the subscriptions file:
cat /home/admin/mail/detailandsupply.com/contact/subscriptions

But till now, I see no issue… you are receiving mails. Did you try to access to contact user using an external email client instead of webmail?

ls -lR /home/admin/mail/detailandsupply.com/contact/.imap

/home/admin/mail/detailandsupply.com/contact/.imap/dovecot-uidlist:
total 4
-rw------- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

/home/admin/mail/detailandsupply.com/contact/.imap/dovecot-uidvalidity:
total 4
-rw------- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

/home/admin/mail/detailandsupply.com/contact/.imap/dovecot-uidvalidity.6504c1b4:
total 4
-rw-r--r-- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

/home/admin/mail/detailandsupply.com/contact/.imap/dovecot.index:
total 4
-rw------- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

/home/admin/mail/detailandsupply.com/contact/.imap/dovecot.index.cache:
total 4
-rw------- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

/home/admin/mail/detailandsupply.com/contact/.imap/dovecot.index.log:
total 4
-rw------- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

/home/admin/mail/detailandsupply.com/contact/.imap/dovecot.list.index.log:
total 4
-rw------- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

/home/admin/mail/detailandsupply.com/contact/.imap/dovecot.mailbox.log:
total 4
-rw------- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

/home/admin/mail/detailandsupply.com/contact/.imap/maildirsize:
total 4
-rw------- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

/home/admin/mail/detailandsupply.com/contact/.imap/subscriptions:
total 4
-rw------- 1 admin mail 40 Sep 23 07:02 dovecot.index.log

cat /home/admin/mail/detailandsupply.com/contact/subscriptions

V       2

Drafts
Sent
Spam
Trash
Archive

Did you try to access to contact user using an external email client instead of webmail?

No

You have another maildir inside .imap!!!. I repeat my question, did you modify in any way roundcube, exim or dovecot? It isn’t normal to have that and seems maybe roundcube is trying to access that .imap maildir so it can login but you can’t view the mails because they are not there.

Try to access using an external mail client.

I tried using an external mail client on my phone and it doesn’t have any emails, not even the one’s that were previously sent in the sent folder. I have done some reconfiguration to a little bit of everything these past few days trying to resolve this issue.

I followed the following guides.

Here is Roundcube config.inc.php, this is the only one I modified. I remember looking at it at the very least, there is a chance I did not modify it.

<?php
/* Local configuration for Roundcube Webmail */

//rewrite below this line
$config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcube';

// Log sent messages to <log_dir>/sendmail or to syslog
$config['smtp_log'] = false;

// Log IMAP conversation to <log_dir>/imap or to syslog
$config['imap_debug'] = true;

// Log SMTP conversation to <log_dir>/smtp.log or to syslog
$config['smtp_debug'] = true;

// ----------------------------------
// IMAP
// ----------------------------------
// The IMAP host chosen to perform the log-in.
// Leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
// prefix tls:// to use STARTTLS.
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
//          required to match old user data records with the new host.
$config['imap_host'] = 'localhost:143';

// IMAP socket context options
// See http://php.net/manual/en/context.ssl.php
// The example below enables server certificate validation
//$config['imap_conn_options'] = array(
//  'ssl'         => array(
//     'verify_peer'  => true,
//     'verify_depth' => 3,
//     'cafile'       => '/etc/openssl/certs/ca.crt',
//   ),
// );
// Note: These can be also specified as an array of options indexed by hostname
//$config['imap_conn_options'] = array (
//   'ssl' => 
//   array (
//   'verify_peer' => false,
//   'verify_peer_name' => false,
//   'verify_depth' => 3,
//   'cafile' => '/etc/ssl/certs/ca-certificates.crt',/ 
//),
//);

// SMTP socket context options
// See http://php.net/manual/en/context.ssl.php
// The example below enables server certificate validation, and
// requires 'smtp_timeout' to be non zero.
// $config['smtp_conn_options'] = array(
//   'ssl'         => array(
//     'verify_peer'  => true,
//     'verify_depth' => 3,
//     'cafile'       => '/etc/openssl/certs/ca.crt',
//   ),
// );
// Note: These can be also specified as an array of options indexed by hostname
//$config['smtp_conn_options'] = array (
//  'ssl' => 
//  array (
//    'verify_peer' => false,
//    'verify_peer_name' => false,
//    'verify_depth' => 3,
//    'cafile' => '/etc/ssl/certs/ca-certificates.crt',
//  ),
//);

// provide an URL where a user can get support for this Roundcube installation
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['support_url'] = '';

// use this folder to store log files
// must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
// This is used by the 'file' log driver.
$config['log_dir'] = '/var/log/roundcube/';

// This key is used for encrypting purposes, like storing of imap password
// in the session. For historical reasons it's called DES_key, but it's used
// with any configured cipher_method (see below).
// For the default cipher_method a required key length is 24 characters.
$config['des_key'] = 'EncryptedKey';

// Maximum number of recipients per message (including To, Cc, Bcc).
// Default: 0 (no limit)
$config['max_recipients'] = 100;

// List of active plugins (in plugins/ directory)
$config['plugins'] = array('password', 'newmail_notifier', 'zipdownload', 'archive');

$config['default_user'] = '%u';

$config['default_pass'] = '%p';

$config['smtp_host'] = 'localhost:587';

// Log session authentication errors to <log_dir>/session or to syslog
$config['log_session'] = true;

But did you removed dovecot and exim and installed following those guides? So, are you using the conf that comes from those packages instead of the one included in Hestia? I hope you at least did backups of that conf.

You should comment out these parts:


$config["imap_conn_options"] = [
        "ssl" => [
                "verify_peer" => false,
                "verify_peer_name" => false,
                "verify_depth" => 3,
                "cafile" => "/etc/ssl/certs/ca-certificates.crt",
        ],
];

$config["smtp_conn_options"] = [
        "ssl" => [
                "verify_peer" => false,
                "verify_peer_name" => false,
                "verify_depth" => 3,
                "cafile" => "/etc/ssl/certs/ca-certificates.crt",
        ],
];

Also, show the output of these commands (it could be a bit long):

exim -bP
doveconf -n

But if you have changed all the conf… uff

did you removed dovecot and exim and installed following those guides? So, are you using the conf that comes from those packages instead of the one included in Hestia

I reloaded Hestia’s default configuration file for Exim, as for Dovecot I do not remember. I remember installing Exim4-heavy in order to get the send email to work, according to another thread. I do not believe I ever uninstalled Dovecot. Also, I commented out those lines like you said.

exim -bP

accept_8bitmime
acl_not_smtp = acl_not_smtp
acl_not_smtp_mime = 
acl_not_smtp_start = 
acl_smtp_auth = 
acl_smtp_connect = acl_check_spammers
acl_smtp_data = acl_check_data
acl_smtp_data_prdr = accept
acl_smtp_dkim = 
acl_smtp_etrn = 
acl_smtp_expn = 
acl_smtp_helo = 
acl_smtp_mail = acl_check_mail
acl_smtp_mailauth = 
acl_smtp_mime = acl_check_mime
acl_smtp_notquit = 
acl_smtp_predata = 
acl_smtp_quit = 
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_starttls = 
acl_smtp_vrfy = 
add_environment = <; PATH=/bin:/usr/bin
admin_groups =
no_allow_domain_literals
no_allow_insecure_tainted_data
no_allow_mx_to_ip
no_allow_utf8_domains
auth_advertise_hosts = localhost : ${if eq{$tls_in_cipher}{}{}{*}}
auto_thaw = 0s
av_scanner = sophie:/var/run/sophie
bi_command = 
bounce_message_file = 
bounce_message_text = 
bounce_return_body
bounce_return_linesize_limit = 998
bounce_return_message
bounce_return_size_limit = 100K
bounce_sender_authentication = 
callout_domain_negative_expire = 3h
callout_domain_positive_expire = 1w
callout_negative_expire = 2h
callout_positive_expire = 1d
callout_random_local_part = $primary_hostname-$tod_epoch-testing
check_log_inodes = 100
check_log_space = 10M
check_rfc2047_length
check_spool_inodes = 100
check_spool_space = 10M
chunking_advertise_hosts = *
no_commandline_checks_require_admin
daemon_smtp_ports = 25 : 465 : 587
daemon_startup_retries = 9
daemon_startup_sleep = 30s
no_debug_store
delay_warning = 1d
delay_warning_condition = ${if or {{ !eq{$h_list-id:$h_list-post:$h_list-subscribe:}{} }{ match{$h_precedence:}{(?i)bulk|list|junk} }{ match{$h_auto-submitted:}{(?i)auto-generated|auto-replied} }} {no}{yes}}
no_deliver_drop_privilege
deliver_queue_load_max =
delivery_date_remove
disable_ipv6
dkim_verify_hashes = sha256:sha512
dkim_verify_keytypes = ed25519:rsa
dkim_verify_min_keysizes = rsa=1024 ed25519=250
no_dkim_verify_minimal
dkim_verify_signers = $dkim_signers
dns_again_means_nonexist = 
dns_check_names_pattern = (?i)^(?>(?(1)\.|())[^\W](?>[a-z0-9/_-]*[^\W])?)+(\.?)$
dns_cname_loops = 1
dns_csa_search_limit = 5
dns_csa_use_reverse
dns_dnssec_ok = -1
dns_ipv4_lookup = 
dns_retrans = 0s
dns_retry = 0
dns_trust_aa = 
dns_use_edns0 = -1
no_drop_cr
dsn_advertise_hosts = 
dsn_from = Mail Delivery System <Mailer-Daemon@$qualify_domain>
envelope_to_remove
errors_copy = 
errors_reply_to = 
event_action = 
exim_group = Debian-exim
exim_path = /usr/sbin/exim4
exim_user = Debian-exim
exim_version = 4.95
extra_local_interfaces = 
extract_addresses_remove_arguments
finduser_retries = 0
freeze_tell = 
gecos_name = 
gecos_pattern = 
no_gnutls_allow_auto_pkcs11
no_gnutls_compat_mode
header_line_maxsize = 0
header_maxsize = 1048576
headers_charset = UTF-8
helo_accept_junk_hosts = 
helo_allow_chars = 
helo_lookup_domains = @ : @[]
helo_try_verify_hosts = 
helo_verify_hosts = 
hold_domains = 
host_lookup = *
host_lookup_order = bydns:byaddr
host_reject_connection = 
hosts_connection_nolog = 
hosts_proxy = 
hosts_require_alpn = 
hosts_require_helo = *
hosts_treat_as_local = 
ignore_bounce_errors_after = 2d
ignore_fromline_hosts = 
no_ignore_fromline_local
keep_environment = 
keep_malformed = 4d
ldap_ca_cert_dir = 
ldap_ca_cert_file = 
ldap_cert_file = 
ldap_cert_key = 
ldap_cipher_suite = 
ldap_default_servers = 
ldap_require_cert = 
no_ldap_start_tls
ldap_version = -1
no_local_from_check
local_from_prefix = 
local_from_suffix = 
local_interfaces = <; ::0 ; 0.0.0.0
local_scan_path = 
local_scan_timeout = 5m
no_local_sender_retain
localhost_number = 
log_file_path = /var/log/exim4/%slog
log_selector = +tls_sni
no_log_timezone
lookup_open_max = 25
max_username_length = 0
no_message_body_newlines
message_body_visible = 500
message_id_header_domain = 
message_id_header_text = 
message_logs
message_size_limit = 50M
no_move_frozen_messages
no_mua_wrapper
mysql_servers = 
never_users = root
notifier_socket = $spool_directory/exim_daemon_notify
openssl_options = 
percent_hack_domains = 
no_perl_at_start
perl_startup = 
no_perl_taintmode
pgsql_servers = 
pid_file_path = /run/exim4/exim.pid
pipelining_advertise_hosts = *
pipelining_connect_advertise_hosts = *
no_prdr_enable
no_preserve_message_logs
primary_hostname = detailandsupply.com
no_print_topbitchars
process_log_path = /var/spool/exim4/exim-process.info
prod_requires_admin
proxy_protocol_timeout = 3s
qualify_domain = detailandsupply.com
qualify_recipient = detailandsupply.com
queue_domains = 
no_queue_fast_ramp
queue_list_requires_admin
no_queue_only
queue_only_file = 
queue_only_load =
queue_only_load_latch
queue_only_override
no_queue_run_in_order
queue_run_max = 5
queue_smtp_domains = 
receive_timeout = 0s
received_header_text = Received: ${if def:sender_rcvhost {from $sender_rcvhost\n\t}{${if def:sender_ident {from ${quote_local_part:$sender_ident} }}${if def:sender_helo_name {(helo=$sender_helo_name)\n\t}}}}by $primary_hostname ${if def:received_protocol {with $received_protocol }}${if def:tls_in_ver        { ($tls_in_ver)}}${if def:tls_in_cipher_std { tls $tls_in_cipher_std\n\t}}(Exim $version_number)\n\t${if def:sender_address {(envelope-from <$sender_address>)\n\t}}id $message_exim_id${if def:received_for {\n\tfor $received_for}}
received_headers_max = 30
recipient_unqualified_hosts = 
recipients_max = 50000
no_recipients_max_reject
remote_max_parallel = 2
remote_sort_domains = 
retry_data_expire = 1w
retry_interval_max = 1d
return_path_remove
rfc1413_hosts = *
rfc1413_query_timeout = 0s
sender_unqualified_hosts = 
slow_lookup_log = 0
smtp_accept_keepalive
smtp_accept_max = 20
smtp_accept_max_nonmail = 10
smtp_accept_max_nonmail_hosts = *
smtp_accept_max_per_connection = 1000
smtp_accept_max_per_host = 
smtp_accept_queue = 0
smtp_accept_queue_per_connection = 10
smtp_accept_reserve = 0
smtp_active_hostname = ${lookup dnsdb{>: defer_never,ptr=$interface_address}{${listextract{1}{$value}}}{$primary_hostname}}
smtp_backlog_monitor = 0
smtp_banner = $smtp_active_hostname
smtp_check_spool_space
smtp_connect_backlog = 20
smtp_enforce_sync
smtp_etrn_command = 
smtp_etrn_serialize
smtp_load_reserve =
smtp_max_synprot_errors = 3
smtp_max_unknown_commands = 3
smtp_ratelimit_hosts = 
smtp_ratelimit_mail = 
smtp_ratelimit_rcpt = 
smtp_receive_timeout = 5m
smtp_reserve_hosts = 
no_smtp_return_error_details
smtputf8_advertise_hosts = 
spamd_address = 127.0.0.1 783
no_split_spool_directory
spool_directory = /var/spool/exim4
no_spool_wireformat
sqlite_dbfile = 
sqlite_lock_timeout = 5
no_strict_acl_vars
no_strip_excess_angle_brackets
no_strip_trailing_dot
syslog_duplication
syslog_facility = 
syslog_pid
syslog_processname = exim
syslog_timestamp
system_filter = /etc/exim4/system.filter
system_filter_directory_transport = 
system_filter_file_transport = 
system_filter_group = Debian-exim
system_filter_pipe_transport = 
system_filter_reply_transport = 
system_filter_user = Debian-exim
tcp_nodelay
timeout_frozen_after = 1w
timezone = 
tls_advertise_hosts = *
tls_alpn = smtp:esmtp
tls_certificate = ${if and {{ eq {${domain:foo@$tls_in_sni}} {$tls_in_sni}}{ exists{/usr/local/hestia/ssl/mail/$tls_in_sni.crt} }}{/usr/local/hestia/ssl/mail/$tls_in_sni.crt}{/usr/local/hestia/ssl/certificate.crt}}
tls_crl = 
tls_dh_max_bits = 2236
tls_dhparam = 
tls_eccurve = auto
tls_ocsp_file = 
tls_on_connect_ports = 465
tls_privatekey = ${if and {{ eq {${domain:foo@$tls_in_sni}} {$tls_in_sni}}{ exists{/usr/local/hestia/ssl/mail/$tls_in_sni.key} }}{/usr/local/hestia/ssl/mail/$tls_in_sni.key}{/usr/local/hestia/ssl/certificate.key}}
no_tls_remember_esmtp
tls_require_ciphers = PERFORMANCE:-RSA:-VERS-ALL:+VERS-TLS1.2:+VERS-TLS1.3:%SERVER_PRECEDENCE
tls_resumption_hosts = 
tls_try_verify_hosts = 
tls_verify_certificates = system
tls_verify_hosts = 
trusted_groups =
trusted_users =
unknown_login = 
unknown_username = 
untrusted_set_sender = *
uucp_from_pattern = ^From\s+(\S+)\s+(?:[a-zA-Z]{3},?\s+)?(?:[a-zA-Z]{3}\s+\d?\d|\d?\d\s+[a-zA-Z]{3}\s+\d\d(?:\d\d)?)\s+\d\d?:\d\d?
uucp_from_sender = $1
warn_message_file = 
write_rejectlog

doveconf -n

# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.16 (09c29328)
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -Pn > dovecot-new.conf
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1: 'imaps' protocol is no longer necessary, remove it
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:1: 'pop3s' protocol is no longer necessary, remove it
# OS: Linux 5.15.0-69-generic x86_64 Ubuntu 22.04.3 LTS 
# Hostname: detailandsupply.com
auth_mechanisms = plain login
auth_verbose = yes
base_dir = /run/dovecot/
disable_plaintext_auth = no
log_path = /var/log/dovecot.log
login_greeting = Mail Delivery Agent
mail_access_groups = mail
mail_location = maildir:~/Maildir
mail_privileged_group = mail
namespace {
  inbox = yes
  list = yes
  location = 
  mailbox Archive {
    auto = subscribe
    special_use = \Archive
  }
  mailbox "Deleted Messages" {
    auto = no
    special_use = \Trash
  }
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Junk {
    auto = no
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Mail" {
    auto = no
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    auto = no
    special_use = \Sent
  }
  mailbox Spam {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix = 
  separator = /
  type = private
}
passdb {
  args = scheme=MD5-CRYPT username_format=%n /etc/exim4/domains/%d/passwd
  driver = passwd-file
}
plugin {
  quota = maildir:User quota
  quota2 = maildir:Shared quota:ns=Public/
}
protocols = imap pop3
service auth {
  extra_groups = mail
  unix_listener auth-client {
    group = mail
    mode = 0660
    user = dovecot
  }
  user = dovecot
}
service stats {
  unix_listener stats-writer {
    group = mail
    mode = 0660
    user = dovecot
  }
}
ssl_cert = </usr/local/hestia/ssl/certificate.crt
ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA256
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
  args = username_format=%n /etc/exim4/domains/%d/passwd
  driver = passwd-file
}
protocol imap {
  mail_plugins = quota imap_quota
}
protocol pop3 {
  mail_plugins = quota
}
local_name mail.detailandsupply.com {
  ssl_cert = </home/admin/conf/mail/detailandsupply.com/ssl/detailandsupply.com.pem
  ssl_key = # hidden, use -P to show it
}

I didn’t check all the conf (i’ll do it later, I’ve no time now) but you at least must modify mail_location in dovecot:

Edit file /etc/dovecot/conf.d/10-mail.conf and replace:

mail_location = maildir:~/Maildir

by

mail_location = maildir:%h/mail/%d/%n

Once done, restart dovecot and exim just in case:

systemctl restart dovecot
systemctl restart exim4

and try again.

As I said, I will check all the conf later.

I’ve checked your exim and dovecot conf and exim is ok but dovecot is not, seems you are using the default ubuntu conf…

If you have a backup prior to reinstalling dovecot, you should recover /etc/dovecot/ from that backup. If you do not have a backup (lesson learned, always make a backup before making changes :stuck_out_tongue: ), follow these steps as root user :

First, create a backup of your current dovecot’s conf:

cd /backup/
tar pzcf backup_etc_dovecot_2023-Sep-23.tar.gz /etc/dovecot/

Now use Hestia conf for dovecot:

cp -rf /usr/local/hestia/install/common/dovecot /etc/
rm -f /etc/dovecot/conf.d/15-mailboxes.conf
chown -R root:root /etc/dovecot

I don’t know whether you have installed sieve but if you need it, you should execute this script to install dovecot-sieve and configure dovecot:
/usr/local/hestia/install/upgrade/manual/install_sieve.sh

Restart dovecot:
systemctl restart dovecot

And now, it should work, but without knowing exactly what you did is hard to guide you.

Good luck,
sahsanu