OnAcceptMessage and temporary fail

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
amokkaths
New user
New user
Posts: 15
Joined: 2012-04-19 22:20

OnAcceptMessage and temporary fail

Post by amokkaths » 2015-12-09 00:35

Hello.
I do some check in my OnAcceptMessage.
The result of this check relies on remote system, so if that system is not available, check can not be done, function can't say if it should permit or deny the message. In this situation answering with "temporary fail" is right solution.
Is there a way to answer with 4xx temporary error from OnAcceptMessage?

Should I post a feature request?

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

Re: OnAcceptMessage and temporary fail

Post by jimimaseye » 2015-12-09 01:12

There is no way. It's either an accept or 5xx.

https://www.hmailserver.com/documentati ... eptmessage
5.7 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

Post Reply