Koozali.org: home of the SME Server

Mail loop from root to root?

Offline holck

  • ****
  • 317
  • +1/-0
Mail loop from root to root?
« on: March 06, 2023, 08:35:11 PM »
I seem to have run in to some kind of mail loop. Every 5 minutes or so, the pattern below repeats itself. There are no mails stuck in the qmail queue. I can't find out where the messages are located. Any advice appreciated :-)


Code: [Select]
2023-03-06 20:12:35.824900500 new msg 566580440
2023-03-06 20:12:35.824901500 info msg 566580440: bytes 748 from <root@ibsgaarden.dk> qp 25381 uid 400
2023-03-06 20:12:35.834684500 starting delivery 2: msg 566580440 to local root@sme10.ibsgaarden.dk
2023-03-06 20:12:35.834693500 status: local 2/20 remote 0/20
2023-03-06 20:12:35.834720500 delivery 1: success: forward:_qp_25381/did_0+0+1/
2023-03-06 20:12:35.834946500 status: local 1/20 remote 0/20
2023-03-06 20:12:35.834947500 end msg 566580439
2023-03-06 20:12:35.844670500 delivery 2: success: did_1+0+1/
2023-03-06 20:12:35.844765500 status: local 0/20 remote 0/20
2023-03-06 20:12:35.844814500 end msg 566580440
2023-03-06 20:13:56.735705500 status: exiting
2023-03-06 20:14:53.666463500 status: local 0/20 remote 0/20
2023-03-06 20:15:01.374922500 new msg 566580404
2023-03-06 20:15:01.374923500 info msg 566580404: bytes 627 from <root@ibsgaarden.dk> qp 25557 uid 0
2023-03-06 20:15:01.389702500 starting delivery 1: msg 566580404 to local alias-localdelivery-root@ibsgaarden.dk
2023-03-06 20:15:01.389703500 status: local 1/20 remote 0/20
2023-03-06 20:15:01.420235500 new msg 566580439
2023-03-06 20:15:01.420253500 info msg 566580439: bytes 748 from <root@ibsgaarden.dk> qp 25560 uid 400
2023-03-06 20:15:01.435812500 starting delivery 2: msg 566580439 to local root@sme10.ibsgaarden.dk
2023-03-06 20:15:01.435814500 status: local 2/20 remote 0/20
2023-03-06 20:15:01.435814500 delivery 1: success: forward:_qp_25560/did_0+0+1/
2023-03-06 20:15:01.435814500 status: local 1/20 remote 0/20
2023-03-06 20:15:01.435814500 end msg 566580404
2023-03-06 20:15:01.471384500 delivery 2: success: did_1+0+1/
2023-03-06 20:15:01.471385500 status: local 0/20 remote 0/20
2023-03-06 20:15:01.471385500 end msg 566580439
2023-03-06 20:20:01.603510500 new msg 566580404
2023-03-06 20:20:01.603512500 info msg 566580404: bytes 627 from <root@ibsgaarden.dk> qp 25890 uid 0
2023-03-06 20:20:01.615275500 starting delivery 3: msg 566580404 to local alias-localdelivery-root@ibsgaarden.dk
2023-03-06 20:20:01.615276500 status: local 1/20 remote 0/20
2023-03-06 20:20:01.656713500 new msg 566580439
2023-03-06 20:20:01.656714500 info msg 566580439: bytes 748 from <root@ibsgaarden.dk> qp 25893 uid 400
2023-03-06 20:20:01.668375500 starting delivery 4: msg 566580439 to local root@sme10.ibsgaarden.dk
2023-03-06 20:20:01.668376500 status: local 2/20 remote 0/20
2023-03-06 20:20:01.668376500 delivery 3: success: forward:_qp_25893/did_0+0+1/
2023-03-06 20:20:01.668377500 status: local 1/20 remote 0/20
2023-03-06 20:20:01.668377500 end msg 566580404
2023-03-06 20:20:01.697384500 delivery 4: success: did_1+0+1/
2023-03-06 20:20:01.697385500 status: local 0/20 remote 0/20
2023-03-06 20:20:01.697385500 end msg 566580439
......

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Mail loop from root to root?
« Reply #1 on: March 08, 2023, 01:59:09 PM »
Is there a cron job running that might be sending notifications?
  less /var/log/cron

(I see _daily_ log entries similar to  yours in /var/log/qmail/current on my system which appear to be generated by "logwatch")

Do these files have any more information?
  /var/log/qpsmtpd/current
  /var/log/sqpsmtpd/current

Is there anything in /var/log/messages at the same time(s) as the qmail log entries?

Is there anything interesting in the Maildir for admin?
  cd /home/e-smith/Maildir
  find .

Can you find the emails using something like this?
  find / -ctime -1 -type f -name "*$(config get SystemName)*"


If all else fails, does some process log errors if you stop the qmail service for 10 - 15 minutes?