Outgoing and Incoming Email problem

I’m having an issue with email delivery and reception on my vps on all account after fixing an exim4 problem yesterday with help from @sahsanu.

Now I just found out that sent mails get frozen immediately:

22m   638 1sJ2l9-001t5Y-ND <[email protected]> *** frozen ***
          [email protected]

Then when I try to send to the server (tested from gmail), I get this delivery report:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[[email protected]](mailto:[email protected]) 
local delivery failed

The following text was generated during the delivery attempt:

------ [[email protected]](mailto:[email protected]) ------

Can't open log file /var/log/dovecot.log: Permission denied

Transactional mails via smtp on the websites hosted on the server are working by the way (I use brevo smtp relay service), but when a user try to send or receive email from their roundcube account, the errors above occur.

Did you also reinstall dovecot, roundcube, etc.?

No I did not reinstall roundcube or dovecot

Show the output of these commands (replace YourDomain with the actual domain):

ls -l /var/log/dovecot.log
exigrep --no-pager '1sJ2l9-001t5Y-ND' /var/log/exim4/mainlog*
ls -la /etc/exim4/domains/YourDomain/

Update: I just tested outgoing emails now and it’s working. The problem remains the incoming email.
image_2024-06-17_114951666

Here’s the output as requested:

root@server2:~# ls -l /var/log/dovecot.log
exigrep --no-pager '1sJ2l9-001t5Y-ND' /var/log/exim4/mainlog*
ls -la /etc/exim4/domains/josephchuks.com/
-rw-r----- 1 root root 277543 Jun 17 10:48 /var/log/dovecot.log
+++ 1sJ2l9-001t5Y-ND has not completed +++
2024-06-17 03:10:24 1sJ2l9-001t5Y-ND <= [email protected] H=localhost (webmail.josephchuks.com) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=638 [email protected]
2024-06-17 03:10:24 1sJ2l9-001t5Y-ND remote host address is the local host: gmail.com
2024-06-17 03:10:24 1sJ2l9-001t5Y-ND == [email protected] R=send_via_smtp_relay defer (-1): remote host address is the local host
2024-06-17 03:10:24 1sJ2l9-001t5Y-ND Frozen
2024-06-17 03:14:38 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 03:44:38 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 04:14:44 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 04:44:38 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 05:14:51 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 05:44:39 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 06:15:21 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 06:44:40 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 07:02:28 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 07:32:12 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 08:04:03 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 08:33:58 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 09:03:56 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 09:34:03 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 10:01:54 1sJ2l9-001t5Y-ND Message is frozen
2024-06-17 10:31:47 1sJ2l9-001t5Y-ND Message is frozen

total 60
drwxrwx--x 3 Debian-exim mail     4096 Jun 17 03:25 .
drwxr-x--x 3 root        root     4096 May 21 16:07 ..
-rw-rw---- 1 Debian-exim mail       39 Jun 16 01:13 accounts
-rw-rw---- 1 Debian-exim mail        0 Jun 16 01:13 aliases
-rw-rw---- 1 Debian-exim mail        0 Jun 16 01:13 antispam
-rw-rw---- 1 Debian-exim mail        0 Jun 16 01:13 antivirus
-rw-r----- 1 root        josephch 1399 Jun 17 03:25 apache2.conf
-rw-r----- 1 root        josephch 1553 Jun 17 03:25 apache2.ssl.conf
-rw-rw---- 1 Debian-exim mail      916 Jun 16 01:13 dkim.pem
-rw-rw---- 1 Debian-exim mail        0 Jun 16 01:13 fwd_only
-rw-rw---- 1 Debian-exim mail       14 Jun 16 01:13 ip
-rw-rw---- 1 Debian-exim mail       25 Jun 16 01:13 limits
-rw-r----- 1 root        josephch 1108 Jun 17 03:25 nginx.conf
-rw-rw---- 1 Debian-exim mail      159 Jun  6 17:20 nginx.conf_letsencrypt
-rw-r--r-- 1 root        root       45 Jun 17 03:25 nginx.forcessl.conf
-rw-r----- 1 root        josephch 1438 Jun 17 03:25 nginx.ssl.conf
lrwxrwxrwx 1 Debian-exim mail       63 Jun  6 17:20 nginx.ssl.conf_letsencrypt -> /home/josephch/conf/mail/josephchuks.com/nginx.conf_letsencrypt
-rw-rw---- 1 dovecot     mail      140 Jun 16 01:13 passwd
drwxr-x--- 2 Debian-exim mail     4096 Jun 16 01:13 ssl

Execute these commands and try again:

chown dovecot:mail /var/log/dovecot.log*
chmod 660 /var/log/dovecot.log*
systemctl restart exim4
systemctl restart dovecot
3 Likes

Thank you once again.

It worked!

1 Like

Out of curiosity, why did you change your permissions? I have a mail server and I have never had this happen.

The issue just occurred out of nowhere and I had do all I could.

ok thnx

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.