Bug in send message more then one recipients with temp err

Use this forum if you want to discuss a problem or ask a question related to a hMailServer beta release.
Post Reply
mns17
Normal user
Normal user
Posts: 124
Joined: 2008-06-18 11:13

Bug in send message more then one recipients with temp err

Post by mns17 » 2011-10-25 10:43

Hi, All
Hmail 5.4-B1931

If the message contains more than one recipients and can't be send because of a temporal error to one of receivers (greylist or mx error). That message repeats to ALL recipients each attempt of delivery!!!!

'user2@mydomain.ru' - is wrong user!!!

Code: Select all

"SMTPD"	10636	12014	"2011-10-25 14:38:05.048"	"192.168.1.13"	"RECEIVED: MAIL FROM: <user1@mydomain.ru>"
"SMTPD"	10636	12014	"2011-10-25 14:38:05.063"	"192.168.1.13"	"SENT: 250 OK"
"SMTPD"	10636	12014	"2011-10-25 14:38:05.063"	"192.168.1.13"	"RECEIVED: RCPT TO: <'user2@mydomain.ru'>"
"SMTPD"	10636	12014	"2011-10-25 14:38:05.063"	"192.168.1.13"	"SENT: 250 OK"
"SMTPD"	10636	12014	"2011-10-25 14:38:05.063"	"192.168.1.13"	"RECEIVED: RCPT TO: <user3@mydomain.ru>"
"SMTPD"	10636	12014	"2011-10-25 14:38:05.063"	"192.168.1.13"	"SENT: 250 OK"
"SMTPD"	3088	12014	"2011-10-25 14:38:05.063"	"192.168.1.13"	"RECEIVED: RCPT TO: <user4@mydomain.ru>"
"SMTPD"	3088	12014	"2011-10-25 14:38:05.079"	"192.168.1.13"	"SENT: 250 OK"
"SMTPD"	6616	12014	"2011-10-25 14:38:05.079"	"192.168.1.13"	"RECEIVED: RCPT TO: <user5@mydomain.ru>"
"SMTPD"	6616	12014	"2011-10-25 14:38:05.079"	"192.168.1.13"	"SENT: 250 OK"
"SMTPD"	3692	12014	"2011-10-25 14:38:05.220"	"192.168.1.13"	"RECEIVED: DATA"
"SMTPD"	3692	12014	"2011-10-25 14:38:05.220"	"192.168.1.13"	"SENT: 354 OK, send."
"SMTPD"	3160	12014	"2011-10-25 14:38:05.938"	"192.168.1.13"	"SENT: 250 Queued (0.141 seconds)"

Code: Select all

"SMTPD"	11936	0	"2011-10-25 14:38:06.032"	"TCP"	"DNS - MX Lookup: mydomain.ru'"
"SMTPD"	11936	0	"2011-10-25 14:38:06.032"	"TCP"	"DNS - Query failure. Treating as temporary failure. Query: mydomain.ru', Type: 15, DnsQuery return value: 9560."
"SMTPD"	3480	12014	"2011-10-25 14:38:06.470"	"192.168.1.13"	"RECEIVED: QUIT"
"SMTPD"	3480	12014	"2011-10-25 14:38:06.470"	"192.168.1.13"	"SENT: 221 goodbye"

Code: Select all

"SMTPD"	11564	0	"2011-10-25 14:42:22.387"	"TCP"	"DNS - MX Lookup: mydomain.ru'"
"SMTPD"	11564	0	"2011-10-25 14:42:22.387"	"TCP"	"DNS - Query failure. Treating as temporary failure. Query: mydomain.ru', Type: 15, DnsQuery return value: 9560."

Code: Select all

"SMTPD"	11936	0	"2011-10-25 14:47:00.881"	"TCP"	"DNS - MX Lookup: mydomain.ru'"
"SMTPD"	11936	0	"2011-10-25 14:47:00.881"	"TCP"	"DNS - Query failure. Treating as temporary failure. Query: mydomain.ru', Type: 15, DnsQuery return value: 9560."
End each time message will be sends to ALL recipients :(

mns17
Normal user
Normal user
Posts: 124
Joined: 2008-06-18 11:13

Re: Bug in send message more then one recipients with temp e

Post by mns17 » 2011-10-25 11:20

P.S. Wrong recipients must be FIRST of recipients!
TO: 'user2@mydomain.ru',user3@mydomain.ru,user4@mydomain.ru,user5@mydomain.ru

message will be send to 'user2@mydomain.ru',user3@mydomain.ru,user4@mydomain.ru,user5@mydomain.ru
each retry

If wrong recipient not first? then message will be send each retry to ALL recipients "after" wrong recipients.

TO: user3@mydomain.ru,'user2@mydomain.ru',user4@mydomain.ru,user5@mydomain.ru

message will be send to 'user2@mydomain.ru',user4@mydomain.ru,user5@mydomain.ru each retry

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Bug in send message more then one recipients with temp e

Post by Bill48105 » 2011-10-25 15:59

Hi mns17,
Thanks for the info. What happens if it is permanent fail (5xx vs 4xx)? Does it matter if the following recipients are local (on same hmail server) or not?
Thx
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

mns17
Normal user
Normal user
Posts: 124
Joined: 2008-06-18 11:13

Re: Bug in send message more then one recipients with temp e

Post by mns17 » 2011-10-25 16:09

Bill, thanks for reply!
What happens if it is permanent fail (5xx vs 4xx)?
Then all OK. Message will be sends only ounce.
Does it matter if the following recipients are local (on same hmail server) or not?
No, it's dosn't matter.

And it's only on 5.4 version of HmailServer

Can you test this on your system?

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Bug in send message more then one recipients with temp e

Post by Bill48105 » 2011-10-25 17:18

Ok thanks for the info mns17, I'll check it out. That is helpful to minimize where I need to look & testing. :)
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

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

Re: Bug in send message more then one recipients with temp e

Post by mattg » 2011-10-26 05:29

And that pretty well matches my experience too FWIW
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: Bug in send message more then one recipients with temp e

Post by dzekas » 2011-10-26 05:37

mns17 wrote:Hi, All
Hmail 5.4-B1931

If the message contains more than one recipients and can't be send because of a temporal error to one of receivers (greylist or mx error). That message repeats to ALL recipients each attempt of delivery!!!!

'user2@mydomain.ru' - is wrong user!!![/code]

End each time message will be sends to ALL recipients :(
Not only wrong user, wrong recipient address. It is not supposed to be quoted. Program can quote only local part with double quotes.

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Bug in send message more then one recipients with temp e

Post by Bill48105 » 2011-10-26 05:41

dzekas wrote:Not only wrong user, wrong recipient address. It is not supposed to be quoted. Program can quote only local part with double quotes.
I had modified early hmail 5.4 to not accept addresses like that but martin rolled back the changes with concerns it'd break compatibility. The over & over problem exists either way but the bad address being accepted just makes it easier to reproduce. :D
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

User avatar
katip
Senior user
Senior user
Posts: 701
Joined: 2006-12-22 07:58
Location: Istanbul

Re: Bug in send message more then one recipients with temp e

Post by katip » 2011-10-26 06:17

mns17 wrote:Hi, All
Hmail 5.4-B1931

If the message contains more than one recipients and can't be send because of a temporal error to one of receivers (greylist or mx error). That message repeats to ALL recipients each attempt of delivery!!!!
Already reported here and discussed here.
Katip
--
HMS 5.7.0-B2428-LTS-64-bit, MySQL 5.7.24, SA 3.4.2, ClamAV 0.101.2 + SaneS

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Bug in send message more then one recipients with temp e

Post by Bill48105 » 2011-10-26 06:45

Thanks katip. Good news is think I got it fixed. :D
mns17's info helped tremendously to track it down. While working on it found another issue that has been bugging me where messages would bounce immediately if there were no servers found. Now they stay in queue until max tries is hit or someone removes them from queue if desired.
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

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

Re: Bug in send message more then one recipients with temp e

Post by mattg » 2011-10-26 07:09

So how do we get a new build?

Can you or Doom or I try to list these as latest Beta somehow?
Is Martin's automated testing process available to you?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Bug in send message more then one recipients with temp e

Post by Bill48105 » 2011-10-26 07:34

mattg wrote:So how do we get a new build?

Can you or Doom or I try to list these as latest Beta somehow?
Is Martin's automated testing process available to you?
Well I PM'd it to mns17 since he was OP & was able to reproduce to test but I always post up in IRC for those hanging around. I avoid posting in threads since they become outdated too quickly & can be REALLY BUGGY so nice to minimize who all has it to avoid mass confusion. (Plus believe it or not I have no permissions to edit posts later on! lol)

The regression tests are in the source but I've never taken the time to try & get them working as I've not had a need. At this point the plan is to make mid rev builds available as needed (the same ones I use myself but little testing done) with official regression tested releases still done by martin.

As far as how they'll get posted, DooM can post them like he did the PEEK hotfix one for me the other day but trying to avoid issues & confusion on which build is which & not messing up martin's build numbering etc. Still not worked out best process but we're trying. :)
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Bug in send message more then one recipients with temp e

Post by Bill48105 » 2012-03-06 00:44

Should this be considered resolved in the newer 5.4 experimentals? I've not seen it happen since updating here & not seen any negative consequences. Feedback is appreciated.
http://www.hmailserver.com/devnet/?page ... ssueid=366
Thx
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

Post Reply