Issues Emailing Groups / Wrong Email Domains

I have a new Nethserver 8 installation, and all email going outside the server works great, but any mail sent internally is sending to user.name@ad.domain.com instead of user.name@domain.com, which obviously doesn’t exist. Causing them to get stuck in the queue, and not move.

This is mainly happening when sending to groups, but seems to happen occasionally to users (depending on the sender)

How do I fix this?

FYI

HTH

My instance does not use SOGo, and this is Nethserver 8…

So I don’t think this applies.

Can you provide some examples, with a related Mail log excerpt?

@davidep Here is an excerpt of the logs

> 2024-07-05T11:28:24-04:00 [1:mail1:postfix/lmtp] A12C483C7482: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=599, delays=598/0.04/0.06/0.78, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:33:23-04:00 [1:mail1:postfix/error] E7B8183D3706: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=none, delay=2375, delays=2374/0.03/0/0.01, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:33:23-04:00 [1:mail1:postfix/error] 963DF83D4377: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=none, delay=2337, delays=2337/0.02/0/0, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:33:23-04:00 [1:mail1:postfix/error] 9EE7D83C7480: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=none, delay=2137, delays=2137/0.02/0/0, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:36:05-04:00 [1:mail1:postfix/qmgr] 521A183C740E: from=<double-bounce@ad.domain.com>, size=242, nrcpt=1 (queue active)
> 2024-07-05T11:36:05-04:00 [1:mail1:postfix/lmtp] 521A183C740E: to=<jon.barrett@ad.domain.com>, orig_to=<jon_barrett@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.31, delays=0.09/0.02/0.05/0.16, dsn=2.1.5, status=deliverable (250 2.1.5 OK)
> 2024-07-05T11:36:05-04:00 [1:mail1:postfix/qmgr] DFB9C83C740E: from=<double-bounce@ad.domain.com>, size=242, nrcpt=1 (queue active)
> 2024-07-05T11:36:06-04:00 [1:mail1:postfix/lmtp] DFB9C83C740E: to=<robert_owen@ad.domain.com>, orig_to=<robert_owen@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.22, delays=0.03/0/0/0.19, dsn=5.1.1, status=undeliverable (host mail.domain.com[/var/lib/umail/lmtp] said: 550 5.1.1 <robert_owen@ad.domain.com> User doesn't exist: robert_owen@ad.domain.com (in reply to RCPT TO command))
> 2024-07-05T11:36:14-04:00 [1:mail1:postfix/lmtp] E5F0083C740D: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=9.4, delays=8.8/0/0/0.6, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:36:18-04:00 [1:mail1:postfix/lmtp] 484B383C740E: to=<jon.barrett@ad.domain.com>, orig_to=<jon_barrett@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=13, delays=13/0/0.04/0.28, dsn=2.0.0, status=sent (250 2.0.0 <jon.barrett@ad.domain.com> NIU/OPESiGbbCAAAsjsBXA Saved)
> 2024-07-05T11:38:23-04:00 [1:mail1:postfix/lmtp] 86D9C83D4376: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=1155, delays=1155/0.02/0.05/0.45, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:38:24-04:00 [1:mail1:postfix/lmtp] A12C483C7482: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=1199, delays=1198/0.03/0.06/0.71, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:43:23-04:00 [1:mail1:postfix/lmtp] 7B0A383C7404: to=<president@ad.domain.com>, orig_to=<president@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4656, delays=4656/0.03/0.05/0.5, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:43:24-04:00 [1:mail1:postfix/lmtp] E5F0083C740D: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=439, delays=438/0.03/0.06/0.75, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:48:23-04:00 [1:mail1:postfix/lmtp] E78B883D436C: to=<president@ad.domain.com>, orig_to=<president@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4509, delays=4508/0.03/0.05/0.42, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:53:24-04:00 [1:mail1:postfix/lmtp] E5F0083C740D: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=1039, delays=1038/0.03/0.05/0.65, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:58:23-04:00 [1:mail1:postfix/lmtp] 86D9C83D4376: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=2355, delays=2355/0.05/0.05/0.42, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T11:58:23-04:00 [1:mail1:postfix/lmtp] A12C483C7482: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=2398, delays=2398/0.04/0.06/0.66, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:00:15-04:00 [1:mail1:dovecot] lmtp(no-reply)<3444><64H9B48YiGZ0DQAAsjsBXA>: save: box=INBOX, uid=1, msgid=<20240705160015.0DFF283C740F@mail.domain.com>, from=Mail Delivery System <MAILER-DAEMON@ad.domain.com>, subject=Undelivered Mail Returned to Sender, flags=()
> 2024-07-05T12:00:15-04:00 [1:mail1:postfix/lmtp] 0DFF283C740F: to=<no-reply@ad.domain.com>, orig_to=<no-reply@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.26, delays=0.02/0.02/0.05/0.18, dsn=2.0.0, status=sent (250 2.0.0 <no-reply@ad.domain.com> 64H9B48YiGZ0DQAAsjsBXA Saved)
> 2024-07-05T12:01:56-04:00 [1:mail1:postfix/qmgr] A336983C740E: from=<double-bounce@ad.domain.com>, size=242, nrcpt=1 (queue active)
> 2024-07-05T12:01:56-04:00 [1:mail1:postfix/lmtp] A336983C740E: to=<brad.trammell@ad.domain.com>, orig_to=<it-alerts@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.78, delays=0.6/0.02/0/0.17, dsn=2.1.5, status=deliverable (250 2.1.5 OK)
> 2024-07-05T12:02:02-04:00 [1:mail1:postfix/lmtp] 9E5C583C740E: to=<brad.trammell@ad.domain.com>, orig_to=<it-alerts@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=6.4, delays=4.4/0/0/2, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> IJqaAPgYiGZ0DQAAsjsBXA Saved)
> 2024-07-05T12:04:03-04:00 [1:mail1:postfix/lmtp] E5E9283C740E: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=2, delays=1.5/0.01/0.05/0.36, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:04:09-04:00 [1:mail1:postfix/qmgr] E52CD83C740F: from=<double-bounce@ad.domain.com>, size=242, nrcpt=1 (queue active)
> 2024-07-05T12:04:10-04:00 [1:mail1:postfix/lmtp] E52CD83C740F: to=<car2@ad.domain.com>, orig_to=<car2@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.21, delays=0.02/0/0.05/0.14, dsn=2.1.5, status=deliverable (250 2.1.5 OK)
> 2024-07-05T12:04:14-04:00 [1:mail1:postfix/lmtp] E6E6983C740F: to=<car2@ad.domain.com>, orig_to=<car2@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.5, delays=4.2/0/0/0.29, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:05:19-04:00 [1:mail1:postfix/lmtp] E281983C740C: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=1.1, delays=0.7/0/0.04/0.39, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:13:23-04:00 [1:mail1:postfix/lmtp] E7B8183D3706: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4775, delays=4774/0.03/0.05/0.68, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:13:24-04:00 [1:mail1:postfix/lmtp] E5E9283C740E: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=562, delays=561/0.06/0.08/1.1, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:13:24-04:00 [1:mail1:postfix/lmtp] E6E6983C740F: to=<car2@ad.domain.com>, orig_to=<car2@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=554, delays=553/0.08/0.12/1, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:13:24-04:00 [1:mail1:postfix/error] 963DF83D4377: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=none, delay=4738, delays=4737/1.3/0/0, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:13:24-04:00 [1:mail1:postfix/error] 9EE7D83C7480: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=none, delay=4538, delays=4537/1.3/0/0, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:13:24-04:00 [1:mail1:postfix/lmtp] E5F0083C740D: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=2240, delays=2238/0.04/0.09/1.2, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:13:24-04:00 [1:mail1:postfix/lmtp] E281983C740C: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=487, delays=485/0.09/0.17/1.1, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:19:18-04:00 [1:mail1:postfix/lmtp] 2BB5483C7411: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=1.1, delays=0.59/0.02/0.05/0.43, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:23:23-04:00 [1:mail1:postfix/lmtp] E6E6983C740F: to=<car2@ad.domain.com>, orig_to=<car2@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=1154, delays=1153/0.03/0.06/0.48, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:23:23-04:00 [1:mail1:postfix/lmtp] E5E9283C740E: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=1162, delays=1161/0.04/0.05/0.55, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:23:24-04:00 [1:mail1:postfix/lmtp] E281983C740C: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=1086, delays=1085/0.05/0.08/0.7, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:28:23-04:00 [1:mail1:postfix/error] 2BB5483C7411: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=none, delay=546, delays=546/0.03/0/0.01, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:28:23-04:00 [1:mail1:postfix/error] 55E2483D316A: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=none, delay=8652, delays=8652/0.02/0/0, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:32:59-04:00 [1:mail1:postfix/qmgr] 8B49083C7412: from=<double-bounce@ad.domain.com>, size=242, nrcpt=1 (queue active)
> 2024-07-05T12:32:59-04:00 [1:mail1:postfix/lmtp] 8B49083C7412: to=<president@ad.domain.com>, orig_to=<president@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.29, delays=0.09/0.02/0.05/0.14, dsn=2.1.5, status=deliverable (250 2.1.5 OK)
> 2024-07-05T12:33:03-04:00 [1:mail1:postfix/lmtp] 98D6C83C7412: to=<president@ad.domain.com>, orig_to=<president@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.1, delays=3.7/0/0/0.42, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:34:48-04:00 [1:mail1:postfix/lmtp] 7659C83C7413: to=<brad.trammell@ad.domain.com>, orig_to=<it-alerts@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.57, delays=0.29/0.02/0.05/0.22, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> LuOrLqggiGa5EgAAsjsBXA Saved)
> 2024-07-05T12:36:46-04:00 [1:mail1:postfix/qmgr] A794083C7414: from=<double-bounce@ad.domain.com>, size=242, nrcpt=1 (queue active)
> 2024-07-05T12:36:47-04:00 [1:mail1:postfix/lmtp] A794083C7414: to=<shea.dailey@ad.domain.com>, orig_to=<shea.dailey@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.32, delays=0.12/0.02/0/0.18, dsn=2.1.5, status=deliverable (250 2.1.5 OK)
> 2024-07-05T12:36:50-04:00 [1:mail1:postfix/lmtp] A16A683C7413: to=<brad.trammell@ad.domain.com>, orig_to=<brad.trammell@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.2, delays=3.3/0/0/0.91, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> SHQGMyEhiGa5EgAAsjsBXA Saved)
> 2024-07-05T12:36:50-04:00 [1:mail1:postfix/lmtp] A16A683C7413: to=<brad.trammell@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.2, delays=3.3/0/0/0.91, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> SHQGMyEhiGa5EgAAsjsBXA Saved)
> 2024-07-05T12:36:50-04:00 [1:mail1:postfix/lmtp] A16A683C7413: to=<ralph.howe@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.2, delays=3.3/0/0/0.91, dsn=2.0.0, status=sent (250 2.0.0 <ralph.howe@ad.domain.com> SHQGMyEhiGa5EgAAsjsBXA:R3 Saved)
> 2024-07-05T12:36:50-04:00 [1:mail1:postfix/lmtp] A16A683C7413: to=<shea.dailey@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.2, delays=3.3/0/0/0.91, dsn=2.0.0, status=sent (250 2.0.0 <shea.dailey@ad.domain.com> SHQGMyEhiGa5EgAAsjsBXA:R4 Saved)
> 2024-07-05T12:36:50-04:00 [1:mail1:postfix/lmtp] A16A683C7413: to=<shea.dailey@ad.domain.com>, orig_to=<shea.dailey@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.2, delays=3.3/0/0/0.91, dsn=2.0.0, status=sent (250 2.0.0 <shea.dailey@ad.domain.com> SHQGMyEhiGa5EgAAsjsBXA:R4 Saved)
> 2024-07-05T12:38:23-04:00 [1:mail1:postfix/lmtp] 4AF0D83C7403: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=9225, delays=9225/0/0/0.5, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:38:24-04:00 [1:mail1:postfix/lmtp] 86D9C83D4376: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4756, delays=4755/0.02/0.04/0.78, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:38:24-04:00 [1:mail1:postfix/lmtp] 98D6C83C7412: to=<president@ad.domain.com>, orig_to=<president@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=325, delays=324/0.08/0.12/0.7, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:38:24-04:00 [1:mail1:postfix/lmtp] 2BB5483C7411: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=1147, delays=1146/0.04/0.11/0.86, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:38:24-04:00 [1:mail1:postfix/lmtp] A12C483C7482: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4799, delays=4798/0.03/0.07/1, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:41:12-04:00 [1:mail1:postfix/error] 8D30683C7413: to=<brad.trammell@ad.domain.com>, orig_to=<brad.trammell@domain.com>, relay=none, delay=0.43, delays=0.41/0.01/0/0.01, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:41:28-04:00 [1:mail1:postfix/qmgr] 5E29683C7414: from=<double-bounce@ad.domain.com>, size=242, nrcpt=1 (queue active)
> 2024-07-05T12:41:28-04:00 [1:mail1:postfix/error] 5E29683C7414: to=<logan.ungleich@ad.domain.com>, orig_to=<logan.ungleich@domain.com>, relay=none, delay=0.02, delays=0.02/0/0/0, dsn=4.4.2, status=undeliverable (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:43:23-04:00 [1:mail1:postfix/error] E6E6983C740F: to=<car2@ad.domain.com>, orig_to=<car2@domain.com>, relay=none, delay=2354, delays=2354/0.03/0/0.01, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:43:23-04:00 [1:mail1:postfix/error] E5E9283C740E: to=<chief@ad.domain.com>, orig_to=<chief@domain.com>, relay=none, delay=2362, delays=2362/0.02/0/0.01, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:43:23-04:00 [1:mail1:postfix/error] E281983C740C: to=<treasurer@ad.domain.com>, orig_to=<treasurer@domain.com>, relay=none, delay=2286, delays=2286/0.02/0/0, dsn=4.4.2, status=deferred (delivery temporarily suspended: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)
> 2024-07-05T12:43:53-04:00 [1:mail1:postfix/lmtp] A5A5083C7410: to=<brad.trammell@ad.domain.com>, orig_to=<brad.trammell@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.71, delays=0.46/0.02/0.04/0.19, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> sMaOBckiiGaPFAAAsjsBXA Saved)
> 2024-07-05T12:44:48-04:00 [1:mail1:postfix/lmtp] BA8E783C7414: to=<brad.trammell@ad.domain.com>, orig_to=<brad.trammell@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.45, delays=0.24/0/0/0.2, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> +DonAAAjiGaPFAAAsjsBXA Saved)
> 2024-07-05T12:46:11-04:00 [1:mail1:postfix/qmgr] AEBC783C7415: from=<double-bounce@ad.domain.com>, size=242, nrcpt=1 (queue active)
> 2024-07-05T12:46:11-04:00 [1:mail1:postfix/lmtp] AEBC783C7415: to=<ralph.howe@ad.domain.com>, orig_to=<ralph.howe@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.28, delays=0.09/0/0.05/0.15, dsn=2.1.5, status=deliverable (250 2.1.5 OK)
> 2024-07-05T12:46:16-04:00 [1:mail1:postfix/lmtp] A734D83C7410: to=<brad.trammell@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.5, delays=3.7/0/0/0.73, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> 0BnqF1cjiGYmFQAAsjsBXA Saved)
> 2024-07-05T12:46:16-04:00 [1:mail1:postfix/lmtp] A734D83C7410: to=<ralph.howe@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.5, delays=3.7/0/0/0.73, dsn=2.0.0, status=sent (250 2.0.0 <ralph.howe@ad.domain.com> 0BnqF1cjiGYmFQAAsjsBXA:R2 Saved)
> 2024-07-05T12:46:16-04:00 [1:mail1:postfix/lmtp] A734D83C7410: to=<ralph.howe@ad.domain.com>, orig_to=<ralph.howe@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.5, delays=3.7/0/0/0.73, dsn=2.0.0, status=sent (250 2.0.0 <ralph.howe@ad.domain.com> 0BnqF1cjiGYmFQAAsjsBXA:R2 Saved)
> 2024-07-05T12:46:16-04:00 [1:mail1:postfix/lmtp] A734D83C7410: to=<shea.dailey@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.5, delays=3.7/0/0/0.73, dsn=2.0.0, status=sent (250 2.0.0 <shea.dailey@ad.domain.com> 0BnqF1cjiGYmFQAAsjsBXA:R4 Saved)
> 2024-07-05T12:46:16-04:00 [1:mail1:postfix/lmtp] A734D83C7410: to=<shea.dailey@ad.domain.com>, orig_to=<shea.dailey@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=4.5, delays=3.7/0/0/0.73, dsn=2.0.0, status=sent (250 2.0.0 <shea.dailey@ad.domain.com> 0BnqF1cjiGYmFQAAsjsBXA:R4 Saved)
> 2024-07-05T12:47:49-04:00 [1:mail1:postfix/lmtp] 001DE83C7410: to=<brad.trammell@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.89, delays=0.27/0/0/0.61, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> AKGmDbUjiGYmFQAAsjsBXA Saved)
> 2024-07-05T12:47:49-04:00 [1:mail1:postfix/lmtp] 001DE83C7410: to=<ralph.howe@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.89, delays=0.27/0/0/0.61, dsn=2.0.0, status=sent (250 2.0.0 <ralph.howe@ad.domain.com> AKGmDbUjiGYmFQAAsjsBXA:R2 Saved)
> 2024-07-05T12:47:49-04:00 [1:mail1:postfix/lmtp] 001DE83C7410: to=<shea.dailey@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.89, delays=0.27/0/0/0.61, dsn=2.0.0, status=sent (250 2.0.0 <shea.dailey@ad.domain.com> AKGmDbUjiGYmFQAAsjsBXA:R3 Saved)
> 2024-07-05T12:48:17-04:00 [1:mail1:postfix/lmtp] C795A83C7410: to=<brad.trammell@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.98, delays=0.45/0/0/0.53, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> GG09C9EjiGYmFQAAsjsBXA Saved)
> 2024-07-05T12:48:17-04:00 [1:mail1:postfix/lmtp] C795A83C7410: to=<ralph.howe@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.98, delays=0.45/0/0/0.53, dsn=2.0.0, status=sent (250 2.0.0 <ralph.howe@ad.domain.com> GG09C9EjiGYmFQAAsjsBXA:R2 Saved)
> 2024-07-05T12:48:17-04:00 [1:mail1:postfix/lmtp] C795A83C7410: to=<shea.dailey@ad.domain.com>, orig_to=<it@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=0.98, delays=0.45/0/0/0.53, dsn=2.0.0, status=sent (250 2.0.0 <shea.dailey@ad.domain.com> GG09C9EjiGYmFQAAsjsBXA:R3 Saved)
> 2024-07-05T12:48:23-04:00 [1:mail1:postfix/lmtp] 8D30683C7413: to=<brad.trammell@ad.domain.com>, orig_to=<brad.trammell@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=431, delays=431/0/0/0.25, dsn=2.0.0, status=sent (250 2.0.0 <brad.trammell@ad.domain.com> SJtjGNcjiGYmFQAAsjsBXA Saved)
> 2024-07-05T12:48:24-04:00 [1:mail1:postfix/lmtp] 98D6C83C7412: to=<president@ad.domain.com>, orig_to=<president@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=924, delays=924/0.02/0.06/0.51, dsn=4.4.2, status=deferred (lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once)

Here is an example of one such email that bounced back to it’s sender:

> From: Mail Delivery System
> Sent: Friday, July 5, 2024 11:41 PM
> To: car3@domain.com
> Subject: Undelivered Mail Returned to Sender
> 
> This is the mail system at host mail.domain.com.
> 
> I'm sorry to have to inform you that your message could not
> be delivered to one or more recipients. It's attached below.
> 
> For further assistance, please send mail to postmaster.
> 
> If you do so, please include this problem report. You can
> delete your own text from the attached returned message.
> 
>                    The mail system
> 
> <car2@ad.domain.com> (expanded from <chiefs@domain.com>): lost connection
>     with mail.domain.com[/var/lib/umail/lmtp] while sending end of data --
>     message may be sent more than once
> 
> <car3@ad.domain.com> (expanded from <chiefs@domain.com>): lost connection
>     with mail.domain.com[/var/lib/umail/lmtp] while sending end of data --
>     message may be sent more than once
> 
> <car4@ad.domain.com> (expanded from <chiefs@domain.com>): lost connection
>     with mail.domain.com[/var/lib/umail/lmtp] while sending end of data --
>     message may be sent more than once
> 
> <chief@ad.domain.com> (expanded from <chiefs@domain.com>): lost connection
>     with mail.domain.com[/var/lib/umail/lmtp] while sending end of data --
>     message may be sent more than once

Is Dovecot running? Did you start it at the end of migration?

You can see it from the Mail status page.

I answer by myself: yes.

Let’s gather more information

  1. Go to Logs page, select Mail app and enter Follow mode
  2. Restart Dovecot
  3. Try to send a message to a single recipient.
  4. Cut paste the captured log here.

To restart Dovecot

runagent -m mail1 systemctl --user restart dovecot

So the strange part is that it’s not every email, and it’s not every user, but it’s persistent enough that it’s causing issues with deliverability. For example, I have a user group that is working flawlessly, but the email I included earlier that bounced, the user that sent it is a member of the group that he sent it to, so he should have just gotten a copy of his email. Instead it bounced.

I do not have SOGo or WebTop installed, and the user reported he sent that email from RoundCube.

There can be log messages from Dovecot. Please try to filter the Mail log with that string.

2024-07-06T03:55:35-04:00 [1:mail1:rspamd] (normal) <42825f>; task; rspamd_task_write_log: id: <050901dacf79$e1243590$a36ca0b0$@domain.com>, qid: <2CA9283D316A>, ip: 71.115.150.34, user: brad.trammell, from: <brad.trammell@domain.com>, (default: F (no action): [0.00/15.00] [CHECKS_BYPASS(0.00){},DKIM_SIGNED(0.00){domain.com:s=default;}]), len: 47368, time: 532.806ms, dns req: 0, digest: <362176bc676ab564186ed29b3346ad6e>, rcpts: <ralph.howe@domain.com>, mime_rcpts: <ralph.howe@domain.com>, settings_id: checks_bypass
2024-07-06T03:55:35-04:00 [1:mail1:dovecot] lmtp(ralph.howe)<50301><SC0bLnf4iGZ9xAAAsjsBXA>: save: box=INBOX, uid=14244, msgid=<050901dacf79$e1243590$a36ca0b0$@domain.com>, from="Brad J Trammell" <brad.trammell@domain.com>, subject=Ignore this, flags=()
2024-07-06T03:55:35-04:00 [1:mail1:dovecot] lmtp(ralph.howe)<50301><SC0bLnf4iGZ9xAAAsjsBXA>: sieve: msgid=<050901dacf79$e1243590$a36ca0b0$@domain.com>: stored mail into mailbox 'INBOX'
2024-07-06T03:55:35-04:00 [1:mail1:postfix/lmtp] 2CA9283D316A: to=<ralph.howe@ad.domain.com>, orig_to=<ralph.howe@domain.com>, relay=mail.domain.com[/var/lib/umail/lmtp], delay=3.9, delays=3.7/0/0/0.22, dsn=2.0.0, status=sent (250 2.0.0 <ralph.howe@ad.domain.com> SC0bLnf4iGZ9xAAAsjsBXA Saved)

Sending to individual users seems to not be as much of an issue, it’s when you send to a group, but again it’s not every single group.

I just tried replying to an email sent to a group I’m in by car3@domain.com, and when I replied to it this is what the message in the mail queue shows for that message:

Message ID: 6CA7883D316A
Arrival time: 2024-07-06 04.02
Message size: 53.13 KiB
Sender: brad.trammell@domain.com

Recipient 1
brad.trammell@ad.domain.com
Delay reason: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once

Recipient 2
car3@ad.domain.com
Delay reason: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once

Recipient 3
ralph.howe@ad.domain.com
Delay reason: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once

Recipient 4
shea.dailey@ad.domain.com
Delay reason: lost connection with mail.domain.com[/var/lib/umail/lmtp] while sending end of data -- message may be sent more than once

I just received the email (notice I’m on the reply), but it still shows in the mail queue as having failed. Mind you this isn’t in the logs, this is in the mail queue itself.

Maybe some group expansion fails.

Can you send a screenshot of the chiefs group definition in Addresses page?

Are they all AD users?

All of the group addresses are made up of their AD user counter part. Similar to how it was in NS7. If a user is part of a group, and that group has an address, each of them gets a copy of the email.

Here’s a screenshot:

Each of the names you see under chiefs are user accounts (1st Asst Chief is Car3@domain.com)

  • Chief@ is Chief of Fire
  • Car2@ is Deputy
  • and so on.

I’m eager to get this resolved as this instance serves a fire department, and email communications are mission critical communications. This issue was noticed about a day and a half ago, and we don’t know how long it’s been going on because it’s only affecting certain groups of users.

What about the AD setup? How many DCs, are they Samba or MS, internal or external?


Can you exclude any possible error in configuration like mail-loops?


I still don’t grasp the issue origin, but if you want to make an attempt, let’s try to add this custom value:

lmtp_destination_recipient_limit = 1

Here’s how to make a custom config in NS8 Mail: GitHub - NethServer/ns8-mail: NS8 Mail module with SMTP, IMAP, Spam/Virus filter


Do you use mail quotas? Is any user mailbox full? 2.3.1 with quota and lmtp; message may be sent more than once

So as quickly as this started happening, it stopped.

All emails are now working as they’re expected to. After digging through the logs, it appeared as if it was trying to relay through itself. Given that it was trying to use ad.domain.com as it’s relay host.

Either way, it seems to be working now.

Off topic, any chance there is a way to put a feature in for mail disclaimer configurations? I’d like to be able to add these for all email leaving the domain, and have a specific one for an individual domain.

Not within Mail itself because altering the message can invalidate DKIM signing.

IIRC WebTop has this feature. It is a feature that is handled better by the mail client than the server.

We need to unfortunately have it done server side, so we’ll have to look at setting up an internal relay that appends it to the email body depending on who the recipient is.

Thanks for your help! :slight_smile: