Three EML files in Queue

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
DawieHuman
New user
New user
Posts: 4
Joined: 2021-03-25 16:24

Three EML files in Queue

Post by DawieHuman » 2021-03-25 16:35

Hi, we have three EML files hanging around in the folder (outbound queue). The SMTP logs show that an error occurred - too many simultaneous connections during the send. The receiving party terminated the connection. Now the three EML files are in the folder, but in the UI, we see no emails in the queue.

All other emails are flowing through the server for days now (7 days later).

How do we get HMail to send the email?

All we have is the three .eml files.

We can delete them and forget about the issue, but would like to know how to re-submit the email.

Thanks in advance

User avatar
mattg
Moderator
Moderator
Posts: 22437
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Three EML files in Queue

Post by mattg » 2021-03-26 00:17

first up. make sure that you refresh the queue

Then check your logs thoroughly, and then open them with an email client (ie thunderbird)
I often find that the messages that get stuck are viruses, or mail outs to multiple recipeints, or that the message has actually been sent.


If they are tmp files, they are remnants of a SpamAssassin check

I just went through my data folder

I have one entry genuinely in the queue, and I deleted about 10 messages going back over the last six months - all but two were obviously spam.
My server currently serves about 1000 messages per day across 14 domains.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

DawieHuman
New user
New user
Posts: 4
Joined: 2021-03-25 16:24

Re: Three EML files in Queue

Post by DawieHuman » 2021-03-26 13:27

Thanks, I don't see any obvious way to refresh the queue and restarted the services three times. In the logs we can clearly see the error. The logs show the email coming in and then it forwards the email (the solution works as a relay). In the sending part it clearly shows the recipient reporting "too many simultaneous connections" and cutting the link.

Now we have an empty queue in the UI, but the three EML files.

Opening the EML shows a standard email reporting that a Job completed successfully. This kind of email goes out every day from this system and all of them work fine. The problem emails were generated on the 18th. Just that one day for three emails.

Just wondered how to coax the system to retry the three. It is as if HMAIL forgot about them.

Will look at options on how to refresh a Queue. Must be missing something obvious.

User avatar
mattg
Moderator
Moderator
Posts: 22437
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Three EML files in Queue

Post by mattg » 2021-03-27 23:15

To refresh the queue

In the GUI
Status >> Delivery Queue >> Refresh (button at top of screen)

Please show the logs with the error

If it was a 5xx error, a bounce should created for the sender
If it was a 4xx error, hmailserver will try to send again
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

DawieHuman
New user
New user
Posts: 4
Joined: 2021-03-25 16:24

Re: Three EML files in Queue

Post by DawieHuman » 2021-03-31 11:08

Thanks for the pointers and yes, we tried the button. The refresh executes and nothing changes.

The errors we see and note we are running for weeks already and only have the three errors. Trying to understand what the options are when we get this in larger scale. Also - note - the system acts as a relay to some of our systems. No mailboxes on it. Pure - Receive - Queue - Send stuff.

HMail generated an error file for each message. 3 messages and three errors:

"ERROR" 8084 "2021-02-18 23:30:20.912" "Severity: 3 (Medium), Code: HM5006, Source: SMTPDeliverer::DeliverMessage(), Description: Message 10228 could not be delivered since the data file does not exist."

The transport log showed the following:

"SMTPD" 7008 305022 "2021-02-18 22:37:40.70...
"SMTPD" 7008 305022 "2021-02-18 22:37:40.703" "23.147.153.233" "SENT: 220 ZAPRNBMAPP2074 ESMTP"
"SMTPD" 9700 305022 "2021-02-18 22:37:40.750" "23.147.153.233" "RECEIVED: ehlo LAB1063.ds1.xyz.com"
"SMTPD" 9700 305022 "2021-02-18 22:37:40.750" "23.147.153.233" "SENT: 250-ZAPRNBMAPP2074[nl]250-SIZE 20480000[nl]250-AUTH LOGIN[nl]250 HELP"
"SMTPD" 8424 305022 "2021-02-18 22:37:40.781" "23.147.153.233" "RECEIVED: mail FROM:<Mary.Ranka@xyz.com> size=8066"
"SMTPD" 8424 305022 "2021-02-18 22:37:40.797" "23.147.153.233" "SENT: 250 OK"
"SMTPD" 9700 305022 "2021-02-18 22:37:40.812" "23.147.153.233" "RECEIVED: rcpt TO:<Mary.Ranka@xyz.com>"
"SMTPD" 9700 305022 "2021-02-18 22:37:40.828" "23.147.153.233" "SENT: 250 OK"
"SMTPD" 7008 305022 "2021-02-18 22:37:40.859" "23.147.153.233" "RECEIVED: data"
"SMTPD" 7008 305022 "2021-02-18 22:37:40.859" "23.147.153.233" "SENT: 354 OK, send."
"SMTPD" 8104 305022 "2021-02-18 22:37:40.922" "23.147.153.233" "SENT: 250 Queued (0.000 seconds)"

<... Then we see the sending (relay) ....>

"TCPIP" 8084 "2021-02-18 22:37:40.922" "Connecting to 23.147.148.233:25..."
"SMTPC" 8424 305024 "2021-02-18 22:37:40.937" "23.147.148.233" "RECEIVED: 421 4.3.2 The maximum number of concurrent connections has exceeded a limit, closing transmission channel"
"SMTPC" 8424 305024 "2021-02-18 22:37:40.937" "23.147.148.233" "SENT: QUIT"

User avatar
mattg
Moderator
Moderator
Posts: 22437
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Three EML files in Queue

Post by mattg » 2021-03-31 11:26

That error indicates that the antivirus on the machine that hMailserver is installed on doesn't have the hMailserver data directory excluded from regular file scanning

ALSO, if the emails have the same TO as the FROM and the messages are not really from your user, then I'm guessing that they contained a virus anyway
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

DawieHuman
New user
New user
Posts: 4
Joined: 2021-03-25 16:24

Re: Three EML files in Queue

Post by DawieHuman » 2021-04-14 12:24

Thanks for responding.

1. The system is sending email daily and I suspect the team sending the email tested some script that send an email after a job completes. It looks as if the receiving end ran into an issue and terminated the connection and we have not seen more of this since the day of the event.
2. It isn't uncommon for some engineers to send email from themselves to themselves to test mailflow, but I will confirm the sending address. The pattern here is that I run a job on a system as myself and now I inform myself when the job completed. This is something we can address

The main question I had was more around getting email back into the sending process, because with an IIS SMTP server setup it is possible to drop the email again in a queue to be picked up. It doesn't look as if there is any option to drop a mail somewhere in a folder to be picked up as a new email.

Much appreciated

User avatar
johang
Senior user
Senior user
Posts: 1128
Joined: 2008-09-01 09:20

Re: Three EML files in Queue

Post by johang » 2021-04-14 16:33

DawieHuman wrote:
2021-04-14 12:24
Thanks for responding.

1. The system is sending email daily and I suspect the team sending the email tested some script that send an email after a job completes. It looks as if the receiving end ran into an issue and terminated the connection and we have not seen more of this since the day of the event.
2. It isn't uncommon for some engineers to send email from themselves to themselves to test mailflow, but I will confirm the sending address. The pattern here is that I run a job on a system as myself and now I inform myself when the job completed. This is something we can address

The main question I had was more around getting email back into the sending process, because with an IIS SMTP server setup it is possible to drop the email again in a queue to be picked up. It doesn't look as if there is any option to drop a mail somewhere in a folder to be picked up as a new email.

Much appreciated

"It doesn't look as if there is any option to drop a mail somewhere in a folder to be picked up as a new email."

That is correct, hmailserver default has NO option of dropping email into a folder to be picked up as a new email.
there is no drop folder or pickup directory for emails in hmailserver.

the question has been asked and responded to in other threads for instance in:

viewtopic.php?t=23980

viewtopic.php?t=31978


if a problem with delivering email to other server should occure hmailserver will send an NDR to the originating sender to notify that the email is not delivered, the sender will take appropriate actions ( resending, checking for spelling errors and what not ) therefor it is of the essence when using script based email sending to use a functional sending/from emailadress so it is possible for human intervention to follow up if there are problems.
lets cheat darwin out of his legacy, find a cure for cancer...

User avatar
mattg
Moderator
Moderator
Posts: 22437
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Three EML files in Queue

Post by mattg » 2021-04-15 00:59

you can open those errant mail in a mail client like thunderbird and then 'send' them
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Post Reply