Search found 1327 matches
- 2021-04-18 21:11
- Forum: General discussions
- Topic: Cannot resolve MX
- Replies: 76
- Views: 1717
Re: Cannot resolve MX
FYI I identified 2 or 3 years ago that Mx records entered as CNAMEs were causing lookup problems in 5.7 (where they did not have a problem in 5.6 production). This was reported on Github that martin has acknowledged with view to fix on 5.7. It is acknowledged that mx records SHOULDNT be entered as ...
- 2021-04-18 13:46
- Forum: General discussions
- Topic: Cannot resolve MX
- Replies: 76
- Views: 1717
- 2021-04-18 13:08
- Forum: General discussions
- Topic: Cannot resolve MX
- Replies: 76
- Views: 1717
Re: Cannot resolve MX
Understand that, but not every IT deparment will listen to my desprite call or email to fix their setup :-( you don't get it...follow the RFC or you will not be able to receive (all) outside email [edit] bohemia-znak.cz -> mx : mail.bohemia-znak.cz mail.bohemia-znak.cz -> cname: bohemia-znak.cz you...
- 2021-04-18 12:13
- Forum: General discussions
- Topic: Cannot resolve MX
- Replies: 76
- Views: 1717
Re: Cannot resolve MX
Understand that, but not every IT deparment will listen to my desprite call or email to fix their setup :-( you don't get it...follow the RFC or you will not be able to receive (all) outside email [edit] bohemia-znak.cz -> mx : mail.bohemia-znak.cz mail.bohemia-znak.cz -> cname: bohemia-znak.cz you...
- 2021-04-18 11:15
- Forum: General discussions
- Topic: Cannot resolve MX
- Replies: 76
- Views: 1717
Re: Cannot resolve MX
I dont have energy to tell every company here in Czech Republic to follow the RFC :-( so.... You should... Reverting back to 5.6.8 is just symptom fixing, eg: MX lookup will work locally but you have absolutely no guarantee every other mailserver on the internet will be able to resolve your MX when...
- 2021-04-18 10:26
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
Discovered a new HTTP status code 418. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418 It has been implemented in Python 3.9 ... and comes from RFC 2324 and RFC 7168 https://save418.com/ I know it is a HTCPCP protocol status code but perhaps we could adopt it for SMTP/IMAP/POP ? Errors...
- 2021-04-16 20:23
- Forum: SpamAssassin implementation discussions
- Topic: Avoid Backscatter and Improve Spam Defense
- Replies: 11
- Views: 166
Re: Avoid Backscatter and Improve Spam Defense
This is all i could find on the Mailop list, but it seems to be gone forever
https://www.mail-archive.com/mailop@mai ... 11607.html
- 2021-04-15 23:07
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
I installed the Gateway app on my phone. I have free SMS with my plan 8) Thx that Gateway app worked... Don't think i have an actual use for this...SMS ancient technology :mrgreen: Now, where is the option to delete my account? Seem impossible to delete your account :wink: I got an email from "Jess...
- 2021-04-15 17:20
- Forum: SpamAssassin implementation discussions
- Topic: Avoid Backscatter and Improve Spam Defense
- Replies: 11
- Views: 166
Re: Avoid Backscatter and Improve Spam Defense
LashBack SPAM DNSBL: ubl.unsubscore.com Code: 127.0.0.2 I just checked my spamd.logs....i had no hits for RCVD_IN_UNSUBSCORE Strange eh, until i found this: https://www.dnsbl.com/2021/01/status-of-ublunsubscorecom-offline.html DNS lookup for ubl.unsubscore.com returns NXDOMAIN, or is that normal?
- 2021-04-14 16:10
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
Its ubitquitous. Even more so than email. Its 'was' ubitquitous... i really can't say SMS nowadays plays a significant role (in my life)...i even can't remember when i received my last SMS (except the one send earlier using telerivet gateway app), all my 2fa methods (where is used SMS mostly for) a...
- 2021-04-14 14:20
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
Had to create an account... Not sure I did it right but... Had to give it a go as well...is this just me or is this utter crap? Still need a twilio account or such to receive messages? I installed the Gateway app on my phone. I have free SMS with my plan 8) Thx that Gateway app worked... Don't thin...
- 2021-04-14 13:47
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
- 2021-04-13 22:42
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
PS.. One reason using the MIME header is bad is if the sending server split the message into separate messages. Then hMailServer receive eg. 3 emails where each one have oMessage.To = address1; address2; address3 and thus parses 3 x 3 SMS'es if this is a gateway... If the sending server spits the r...
- 2021-04-13 21:21
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
Excuse me for hijacking another topic :mrgreen: @Soren I was just thinking out load And to be honest, I still havn't got a clue on what you are trying to accomplish..must say it looks like a very specific thingy Maybe you investigate recepientparser, where postmaster (catch-all) Is checked and perha...
- 2021-04-13 20:16
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
Isn't there any domain COM property for Catch-all address? https://www.hmailserver.com/documentation/latest/?page=com_object_domain Or is this one? string Postmaster The postmaster for this domain. E-mail sent to an nonexistent address will be redirected to this address. Old setting perhaps? I don'...
- 2021-04-13 20:08
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
Isn't there any domain COM property for Catch-all address? https://www.hmailserver.com/documentation/latest/?page=com_object_domain Or is this one? string Postmaster The postmaster for this domain. E-mail sent to an nonexistent address will be redirected to this address. Old setting perhaps? I don't...
- 2021-04-13 19:47
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
The pursuit of perfection is always a worthy goal. It sure is Perhaps move the functionality of the while loop of RecipientParser::AddRecipient_() to the end of SMTPDeliverer::PreprocessMessage_() somehow ... :?: @SorenR I think this might be very hard to accomplish, not to mention it is undesired ...
- 2021-04-13 17:40
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
Knock yourself out (if you think it is worth it)

- 2021-04-13 15:46
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
Is that a bug or a feature? :lol: In any case, that's the intended behavior. The OP didn't ask for multiple recipients. I don't use it that way either. There's more than one way to skin a cat. If he wants these server messages to go out to multiple recipients, then its better to set up an array of ...
- 2021-04-13 15:36
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
You would only be able to address the first recipient Is that a bug or a feature? :lol: In any case, that's the intended behavior. The OP didn't ask for multiple recipients. I don't use it that way either. There's more than one way to skin a cat. If he wants these server messages to go out to multi...
- 2021-04-13 14:16
- Forum: Scripting
- Topic: Email to HTTP
- Replies: 98
- Views: 498
Re: Email to HTTP
Example; Only account is john.doe Recipients: john.doe@myserver.inc, honest.john@myserver.inc, bill.gates@myserver.inc hms translate recpients to: john.doe@myserver.inc, bucket@myserver.inc, bucket@myserver.inc ... and reduces the list to: john.doe@myserver.inc, bucket@myserver.inc And herein lies ...
- 2021-04-13 11:23
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
I would have killed that message in OnAccept.... ;-) Me too, but this was just a test to trigger the specific event :lol: I am thinking about doing some stuff diffently in yesterdays commit related to the oMessage object...eg: turning it arround not moving the event trigger but moving the Persisten...
- 2021-04-13 09:22
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script

Code: Select all
9160 "2021-04-13 09:14:01.580" "OnDeliveryFailed: '' - ***@***.com - spambox@***.com - 'Message delivery cancelled during OnDeliverMessage-event'"
- 2021-04-13 08:51
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
What's with the "Message delivery cancelled during OnDeliverMessage-event" ?? I cannot remember ever seeing that. Not sure, have to admit i never seen this as well...but then again i just recently enabled logging in OnDeliveryFailed I asume this is called when Result.Value = 1 is being set in OnDel...
- 2021-04-12 21:28
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
- 2021-04-12 20:58
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
Settings>Protocols>SMTP>Advanced> Number of recipients in batch 

- 2021-04-12 17:53
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
Yeah, i looked up error 453 as well before....seems like a stange errorcode to return
I was more wondering why and for what purpose is was included in hm (especially as it isn't even documentated in hm docs)
For a mailserver that doesn't accept any mail from the outside? Seems harsh...
I was more wondering why and for what purpose is was included in hm (especially as it isn't even documentated in hm docs)
For a mailserver that doesn't accept any mail from the outside? Seems harsh...
- 2021-04-12 16:59
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
Btw, do you know where result value 3 is for? It isn't documented at all (the last time I checked)
- 2021-04-12 15:59
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
There is a feature request sub forum, and you have github to ask for features
'OnDeliveryRejected' will be a though one I think, as you have to write it (if done correctly) for manual rejections in OnHelo, OnSMTPData, etc etc as well

'OnDeliveryRejected' will be a though one I think, as you have to write it (if done correctly) for manual rejections in OnHelo, OnSMTPData, etc etc as well
- 2021-04-12 15:34
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
The fuzz was about logic. You cannot call something you do deliberately a failure! If a rule delete an email => poof, gone - and do you really want to know if someone is sending you a virus? Do you really need to know if a local client made a typo in an recepient emailaddress they send a mail to? ....
- 2021-04-12 14:49
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
https://www.hmailserver.com/forum/viewtopic.php?p=224959#p224959 https://www.hmailserver.com/forum/viewtopic.php?p=224989#p224989 (this one is really funny, reading all you said yesterday...virusscan is also DENIED and no FAILURE, not? :) ) BTW, none of the changes made that relate to the oMessage o...
- 2021-04-12 14:26
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
Your current changes to AWStats on 5.6.8 ... It seems I already had some of them (first one and the last one in SMTPDeliverer.cpp), that's why I did not have the AWStats problem ?!? This must have been an issue some time ago. I wonder why you did not have them as I do not recall having put them in ...
- 2021-04-11 19:51
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
You don't get the point... it ALWAYS threated this as a FAILURE, I have not changed anything there...this is no fix to change the internal logic This is about the oMessage object being empty in OnDeliveryFailed Event in one case and filled in another case, nothing more nothing less Perhaps no one r...
- 2021-04-11 18:49
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
You don't get the point... it ALWAYS threated this as a FAILURE, I have not changed anything there...this is no fix to change the internal logic
This is about the oMessage object being empty in OnDeliveryFailed Event in one case and filled in another case, nothing more nothing less
This is about the oMessage object being empty in OnDeliveryFailed Event in one case and filled in another case, nothing more nothing less
- 2021-04-11 18:29
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
Well... If you deliberately on purpose and forcefully delete the message before final delivery... Did it then FAIL delivery or was it DENIED delivery? :mrgreen: Actually, since the action is performed by a rule it may be regarded as premeditated and thus it cannot be a failure. 8) This change doesn...
- 2021-04-11 17:26
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
So the solution is to call AWStats::LogDeliveryFailure() inside SMTPDeliverer::RunGlobalRules before the message is deleted? :mrgreen: bool SMTPDeliverer::PreprocessMessage_(std::shared_ptr<Message> pMessage, String &sendersIP, RuleResult &globalRuleResult) { ... // Apply rules on this message. if (...
- 2021-04-11 15:12
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
PS, you still using awstats logging? Everytime Events::FireOnDeliveryFailed() is called (in SMTPDeliverer.cpp & ExternalDelivery.cpp) there is always a call to AWStats::LogDeliveryFailure() just before..... but yet in Events.cpp, i see this again: AWStats::LogDeliveryFailure(sSendersIP, pMessage->G...
- 2021-04-11 14:47
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
pMessage->GetFromAddress() is the SMTP MAIL FROM: ... Yes? It is NOT stored in the RAW EML file but kept in memory until message is released by hMailServer. If message is deleted you cannot access the message headers like "From:" and "Subject:" Should be something like that, allthough stored inside...
- 2021-04-11 14:41
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
PS, you still using awstats logging? Everytime Events::FireOnDeliveryFailed() is called (in SMTPDeliverer.cpp & ExternalDelivery.cpp) there is always a call to AWStats::LogDeliveryFailure() just before..... but yet in Events.cpp, i see this again: AWStats::LogDeliveryFailure(sSendersIP, pMessage->Ge...
- 2021-04-11 13:19
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
I'm a bit puzzled by this, sRecipientAddress is populated correctly and this value is also taken from pMessage, eg: https://github.com/hmailserver/hmailserver/blob/master/hmailserver/source/Server/SMTP/SMTPDeliverer.cpp#L473-L481 This is strange as that would indicate pMessage is populated on L473 b...
- 2021-04-11 10:44
- Forum: Scripting
- Topic: notification script
- Replies: 45
- Views: 5344
Re: notification script
Yep, I think so Add an issue to Github >> https://github.com/hmailserver/hmailserver/issues I think this only the case when triggerred by a global rule, not? That makes me believe the original message that should populate the oMessage properties doesn't exist anymore, eg: already delete by the rule...
- 2021-04-07 15:32
- Forum: User-submitted tutorials
- Topic: Hardening hMailServer - The ongoing saga!
- Replies: 72
- Views: 60377
Re: Hardening hMailServer - The ongoing saga!
Maybe simply look at the examples given/quoted?
- 2021-04-07 10:19
- Forum: Development & alpha discussions
- Topic: OpenSSL Security Advisory [25 March 2021]
- Replies: 30
- Views: 996
- 2021-04-05 13:37
- Forum: Off-topic discussions
- Topic: EventHandlers.vbs CurrentFolder
- Replies: 12
- Views: 460
Re: EventHandlers.vbs CurrentFolder
i do agree i should read "EventFolder" from ini file, as these might (manually) be located outside the InstallLocation folder Dim InstallLocation : InstallLocation = "C:\Program Files\hMailServer" If RegKeyExists("HKLM\SOFTWARE\hMailServer\InstallLocation") Then InstallLocation = RegKeyRead("HKLM\SO...
- 2021-04-05 13:19
- Forum: Off-topic discussions
- Topic: EventHandlers.vbs CurrentFolder
- Replies: 12
- Views: 460
Re: EventHandlers.vbs CurrentFolder
There is more then one road to Rome... i prefer reading it from registry (especially if/when that little issue is fixed)
- 2021-04-05 13:03
- Forum: Off-topic discussions
- Topic: EventHandlers.vbs CurrentFolder
- Replies: 12
- Views: 460
Re: EventHandlers.vbs CurrentFolder
Yes, question is how to locate ini file without using API... assuming service name is hMailServer (why not??) wmic service hmailserver get PathName should return full path to exe could be useful no? Can it really be that simple :mrgreen: Nice catch 8) Confirmed on Windows Server 2003 R2, Windows 10...
- 2021-04-05 12:53
- Forum: Off-topic discussions
- Topic: EventHandlers.vbs CurrentFolder
- Replies: 12
- Views: 460
Re: EventHandlers.vbs CurrentFolder
Constants.vbs is an obfuscated vbs (pentest...to hide sensitive information from prying eyes), containing public constants, like: ADMIN, PASSWORD, MYSQL table, username, password and some API keys (blocklist.de, abusipdb) Dim InstallLocation : InstallLocation = "C:\Program Files\hMailServer" If RegK...
- 2021-04-03 23:06
- Forum: General discussions
- Topic: Can't receive emails
- Replies: 7
- Views: 188
Re: Can't receive emails
This is not a support forum for roundcube but i'll give you some pointers though...
roundcube is hosted on the same server?
config.inc.php
roundcube is hosted on the same server?
config.inc.php
Code: Select all
$config['default_host'] = 'localhost';
$config['default_port'] = 143;
$config['smtp_server'] = 'localhost';
$config['smtp_port'] = 587;
- 2021-04-03 22:48
- Forum: General discussions
- Topic: Can't receive emails
- Replies: 7
- Views: 188
Re: Can't receive emails
As you seem to have tampered with a lot of the default values it is impossible to tell what is wrong
Run this and post the results.
https://hmailserver.com/forum/viewtopic ... 20&t=30914
Run this and post the results.
https://hmailserver.com/forum/viewtopic ... 20&t=30914
- 2021-04-03 22:07
- Forum: General discussions
- Topic: Can't receive emails
- Replies: 7
- Views: 188
Re: Can't receive emails
Trying to connect to TCP/IP address 11.22.33.44 on port 25. Received: * OK IMAPrev1. IMAP :?: Port 25 = SMTP port :!: I would suggest you restore the defaults....what gave you the brilliant idea to tamper with default settings in the first place? Take a look here: https://www.hmailserver.com/docume...
- 2021-04-03 19:58
- Forum: Off-topic discussions
- Topic: EventHandlers.vbs CurrentFolder
- Replies: 12
- Views: 460
Re: EventHandlers.vbs CurrentFolder
I Tried reading InstallLocation from registry to get the path dynamically (without calling oApp.Authenticate) ....but this seems wrong for 64-bit, already opened a issue We have various options after CreateObject("hMailServer.Application") and .Authenticate is called, but the point is i need it befo...
- 2021-04-03 15:39
- Forum: Off-topic discussions
- Topic: EventHandlers.vbs CurrentFolder
- Replies: 12
- Views: 460
EventHandlers.vbs CurrentFolder
I was trying to make some path(s) in my script dynamic, eg: compatible between x86 and x64 version One of the first things i tried is to include some external files relative to EventHandlers.vbs Dim FSO Set FSO= CreateObject("Scripting.FileSystemObject") WriteLog(FSO.GetAbsolutePathName(".")) Set FS...
- 2021-04-03 15:11
- Forum: Development & alpha discussions
- Topic: Sub OnHELO(oClient) progress?
- Replies: 244
- Views: 230729
Re: Sub OnHELO(oClient) progress?
This works with the HELO/EHLO greeting BUT... It COULD be modified to work with the resolved IP Address thus it can be run on servers pre-OnHELO. https://www.hmailserver.com/forum/viewtopic.php?p=205049#p205049 Yes, and that basically is what the OP is asking for Mine above, is a enhanced version o...
- 2021-04-03 11:57
- Forum: Development & alpha discussions
- Topic: Sub OnHELO(oClient) progress?
- Replies: 244
- Views: 230729
Re: Sub OnHELO(oClient) progress?
@RvdH I like most improvements, what I still miss is a whitelist for domains that ignore graylisting. e.g. *.outbound.protection.outlook.com There are some scripts, but it's not a nice solution. Could you add such an option? It sounds like you would like to greylistwhitelist connection based on HEL...
- 2021-04-01 21:26
- Forum: Scripting
- Topic: Modifying the Body before Forwarding
- Replies: 30
- Views: 1170
Re: Modifying the Body before Forwarding
EventLog.Write(oMessage.HeaderValue("X-hMailServer-LoopCount") < 1) result: "Script Error: Source: Microsoft VBScript runtime error - Error: 800A000D - Description: Type mismatch: '[string: ""]' EventLog.Write(oMessage.HeaderValue("X-hMailServer-LoopCount") > 0) result: "Script Error: Source: Micro...
- 2021-04-01 11:52
- Forum: Scripting
- Topic: Modifying the Body before Forwarding
- Replies: 30
- Views: 1170
Re: Modifying the Body before Forwarding
If oMessage.HeaderValue("X-hMailServer-LoopCount") = "" Then I don't think that header exists wehn it's empty.... oMessage.HeaderValue("X-hMailServer-LoopCount") only is added when loopcount > 0 +1 Better to say: if oMessage.HeaderValue("X-hMailServer-LoopCount") < 1 then..... as that would trigger...
- 2021-04-01 11:43
- Forum: Scripting
- Topic: Modifying the Body before Forwarding
- Replies: 30
- Views: 1170
Re: Modifying the Body before Forwarding
If oMessage.HeaderValue("X-hMailServer-LoopCount") = "" Then
I don't think that header exists wehn it's empty.... oMessage.HeaderValue("X-hMailServer-LoopCount") only is added when loopcount > 0
I don't think that header exists wehn it's empty.... oMessage.HeaderValue("X-hMailServer-LoopCount") only is added when loopcount > 0
- 2021-03-31 22:38
- Forum: Development & alpha discussions
- Topic: Sub OnHELO(oClient) progress?
- Replies: 244
- Views: 230729
Re: Sub OnHELO(oClient) progress?
Latest is 5.6.8-B2538.30 Just install the latest production and/or beta artifact from the URL below, then copy and overwrite files in this archive in hmailserver '/bin' directory https://build.hmailserver.com/viewLog.html?buildId=1216&buildTypeId=HMailServer_BuildHMailServer56&tab=artifacts (login ...
- 2021-03-31 21:01
- Forum: SpamAssassin implementation discussions
- Topic: Max. size to send to Spamassassin
- Replies: 48
- Views: 2005
Re: Max. size to send to Spamassassin
I'm just wondering why SPAMC is limited at 256 MB ... http://byteconvert.org/ 5MB has been sufficient in hmailserver for most of us (for so long)... with spamc 256 MB is huge, but most likely they have been thinking the same...if it's that big it simply can't be spam Maybe we should forget about th...
- 2021-03-31 20:41
- Forum: SpamAssassin implementation discussions
- Topic: Max. size to send to Spamassassin
- Replies: 48
- Views: 2005
Re: Max. size to send to Spamassassin
Hmm... It seems the maximum message size spamc can send is 256 MB Check "--max-size=" https://spamassassin.apache.org/full/3.4.x/doc/spamc.html 256 MB = 262144 KB ~ 13422 iterations ... No ? If we were using spamc then yes....but hmailserver uses a it's own internal spamc like client, see SpamAssis...