Restart causes email to be re-delievered?

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
ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-22 12:39

For last couple of month, when I restart service / server, (some clients and not a few) complain about their non-delievered email delievered to their reciepts. It is I think, their non delievered mail stuck in somewhere and when I make a restart it is delievered but after many days later.

User avatar
jimimaseye
Moderator
Moderator
Posts: 8156
Joined: 2011-09-08 17:48

Re: Restart causes email to be re-delievered?

Post by jimimaseye » 2015-06-22 12:43

Do you check the delivery queue? or look in the root of the data directory? Also, look in the logfiles about the time of the original passing of the email from the clients to see what then actually happens (ie what then happens when it comes to sending them "SMTPC"). The log file usually has answers to most things.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Re: Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-22 12:45

It is hard to detect mail that has start deliever and finished after x days later.

ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Re: Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-22 12:54

What are the recommended option to enable for logging ? Smtp / Pop / Tcp/IP enough?

User avatar
jimimaseye
Moderator
Moderator
Posts: 8156
Joined: 2011-09-08 17:48

Re: Restart causes email to be re-delievered?

Post by jimimaseye » 2015-06-22 12:56

Should be easy actually.

Customer says "my email has only just been delievered"

You ask, "when did you send it? Show me the date/time in your SENT mail"

You get the date/time from the email, and look in the logs for that time. Then trace it from there.

APPLICATION and SMTP are a must and usually sufficient for daily routine checking (in my opinion). For tracing problems, TCPIP may help. DEBUG as a last resort if you have real problems. Note that TCPIP and DEBUG will give you MASSIVE log files.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

prisma
Senior user
Senior user
Posts: 310
Joined: 2010-07-09 13:16

Re: Restart causes email to be re-delievered?

Post by prisma » 2015-06-22 12:58

Do you use external accounts fetched by POP3 ?
https://github.com/hmailserver/hmailserver/issues/107

ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Re: Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-22 13:36

Thank you guys. I will see what I do..

ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Re: Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-22 14:36

Client complain about they mails are re-delievered. Not just delievered. It is like hmail re-send those mail. Do you think, next time I can catch them in queue before I make a restart?

ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Re: Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-22 14:43

I just checked some other hmail server and there are mails created 11 days ago in mail queue. So it is ilke hmail does not complete delivery. Any suggestion?

User avatar
SorenR
Senior user
Senior user
Posts: 3211
Joined: 2006-08-21 15:38
Location: Denmark

Re: Restart causes email to be re-delievered?

Post by SorenR » 2015-06-22 15:26

ozgurerdogan wrote:I just checked some other hmail server and there are mails created 11 days ago in mail queue. So it is ilke hmail does not complete delivery. Any suggestion?
Enable debug logging ( + TCP/IP and SMTP) and try to deliver mails again from hMailAdministrator -> Status -> Delivery queue.

Select one, right click, select "send now".
SørenR.

“With age comes wisdom, but sometimes age comes alone.”
- Oscar Wilde

ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Re: Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-22 15:48

But I need to find out what cause them to stuck in queue. Probably they are being delievered and also stuck in queue. I enabled logging and reduce retry time to 2 and 15 minutes in between retries. And just waiting for a new stuck in queue. Hope it will give a clue..

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

Re: Restart causes email to be re-delievered?

Post by mattg » 2015-06-23 00:34

What version of HMailserver??
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Re: Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-23 09:22

It is 5.6.3-B2249

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

Re: Restart causes email to be re-delievered?

Post by mattg » 2015-06-23 09:44

Do you have any inline virus scanning, or Spam checking?
What are your retry settings?
Do you use a SMTP relayer?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Re: Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-23 10:34

No antivirus.
Block certain attachment with default list.
multi.surbl.org / zen.spamhaus.org / bl.spamcop.net / dnsbl.njabl.org / b.barracudacentral.org / hostkarma.junkemailfilter.com / combined.njabl.org / multi.uribl.com
Greylisting enabled
Retry 2 times with 15 minutes delay
No smtp relay

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

Re: Restart causes email to be re-delievered?

Post by mattg » 2015-06-23 11:09

Are these messages all very large?

is there a common theme with recipient domains?


(I don't have that issue on same version)
do you regularly log? can you follow an initial delivery of one such message from received from client to received by recipient server??
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

ozgurerdogan
Senior user
Senior user
Posts: 267
Joined: 2010-11-19 18:50

Re: Restart causes email to be re-delievered?

Post by ozgurerdogan » 2015-06-23 11:16

Not sure but heard that some client are sending some documents so probably have attachments but not sure about the sizes. I enabled logging and when there is a stuck I will update the thread. No common thing. They are different.

Post Reply