Search found 2332 matches

Go to advanced search

by SorenR
2018-01-19 23:18
Forum: SpamAssassin implementation discussions
Topic: SpamAssassin Score + hMailServer Score
Replies: 36
Views: 5168

Re: SpamAssassin Score + hMailServer Score

All of these are in my /etc/spamassassin/ folder on my UBUNTU system. I don't use the Jam Software windows variant of SpamAssassin Its similar on the windows version. In JAM the local.cf is found in (default) C:\Program Files\JAM Software \SpamAssassin for Windows\etc\spamassassin . Place other cus...
by SorenR
2017-12-21 00:17
Forum: General discussions
Topic: Go Public
Replies: 34
Views: 584

Re: Go Public

more to the point MX records for that domain couldn't be found by Windows It's not a matter of changing MX records as much as creating MX records. I trust the 3 domains in hMailsevrer are actual real domains that you own, and have valid MX and DNS records for. If you detail the domain names we can ...
by SorenR
2017-11-28 17:18
Forum: Scripting
Topic: Catch all
Replies: 2
Views: 144

Re: Catch all

Code: Select all

SELECT domainpostmaster, domainname FROM hm_domains;
by SorenR
2017-11-05 17:53
Forum: Scripting
Topic: UTF8 subject bug my script
Replies: 10
Views: 400

Re: UTF8 subject bug my script

well it also creates an error when it stops the function that writes the bat file : "ERROR" 6152 "2017-11-05 12:29:57.152" "Script Error: Source: Microsoft VBScript runtime error - Error: 800A0005 - Description: Invalid procedure call or argument - Line: 130 Column: 0 - Cod...
by SorenR
2017-11-04 20:37
Forum: General discussions
Topic: how handle accent in subject from Blat
Replies: 6
Views: 236

Re: how handle accent in subject from Blat

Thanks for posting the fix haddock. But could you explain what that fix is and why? What is the relevance of the value 28591? https://ss64.com/nt/chcp.html https://msdn.microsoft.com/en-us/library/dd317756(v=vs.85).aspx chcp 28591 = iso-8859-1 = ISO 8859-1 Latin 1; Western European (ISO) I can't re...
by SorenR
2017-11-02 03:26
Forum: Scripting
Topic: how to start program via oondeliver
Replies: 12
Views: 505

Re: how to start program via oondeliver

and it works perfectly : it reads an eml, and apply gpg encryption and output it. the same code under sub on deliver doesn't give any result nothing no error... strange. Remove this ==> "On Error Resume Next" ;-) I had a look at some of my old hMail scripts... This aparently worked fine o...
by SorenR
2017-11-02 00:01
Forum: Scripting
Topic: how to start program via oondeliver
Replies: 12
Views: 505

Re: RE: Re: how to start program via oondeliver

if I try this Set WshShell = CreateObject("WScript.Shell") call WshShell.Run("cmd /c dir > c:\cygwin\home\ted\output.txt", 0, true) nothing and here I remove the 1, so it doesnt trigger the interactive ddetection service but no error , nothing happens and the output.txt is not m...
by SorenR
2017-10-30 19:47
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 92
Views: 11510

Re: Sub OnHELO(oClient) progress?

Then the bool wouldn't be set, and OnHELO sub would process. I suppose the easier way would be to process OnHELO on first connect and omit running OnHELO in startTLS. Yep, I find the logging useful. Many different ways to skin a cat. Personally, i think the real fix is in the server code. Without l...
by SorenR
2017-10-30 19:08
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 92
Views: 11510

Re: Sub OnHELO(oClient) progress?

Yep, I find the logging useful. Many different ways to skin a cat. Personally, i think the real fix is in the server code. Without looking at it, i would hope that a boolean could be set if startTLS is initiated, to skip onHELO. Then allow OnHELO after the startTLS connection was initiated. This wo...
by SorenR
2017-10-30 18:16
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 92
Views: 11510

Re: Sub OnHELO(oClient) progress?

For posterity, here is a better approach to skip duplicate database entries: try { List<string> lines = File.ReadAllLines(@"C:\Program Files (x86)\hMailServer\Logs\hmailserver_events.log").ToList(); string myString = IP; int count = lines.Count(s => myString.Contains(s)); if (count > 1) {...
by SorenR
2017-10-30 01:19
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 92
Views: 11510

Re: RE: Re: Sub OnHELO(oClient) progress?

SorenR wrote:If you look back in your other thread you'll see in my GreyWhiteList code i am using my eventlocking to avoid violating the database constraint. ;-)

This post ==> https://www.hmailserver.com/forum/viewtopic.php?p=199747#p199747
by SorenR
2017-10-29 23:15
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 92
Views: 11510

Re: RE: Re: Sub OnHELO(oClient) progress?

While testing some code that i just implemented for GreyWhitelisting, i ran into an interesting find. This issue is consistent and can be replicated on demand: Using SorenR's regex logic OnHELO I get a proper match from google and successfully call for a Greylist Whitelist addition. But the interes...
by SorenR
2017-10-29 16:43
Forum: Off-topic discussions
Topic: Spam attacks? Do you think you are hard done to?
Replies: 136
Views: 25644

Re: Spam attacks? Do you think you are hard done to?

Well, it's weekend and it looks like spammers and bots are on "vacation" ... :mrgreen: Anyways, I'll leave it on my server for a week to see if it is worth the effort. 3316 "2017-10-29 11:58:08.851" "Looking for server ********************************************************...
by SorenR
2017-10-28 19:10
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 1618

Re: Ban IP address on Hmail with Password proxy

Ok, thanks for clarification. I'll do some reading, but if you read this, feel free to beat me to the answer. I'm running 5.6.5-B2367. I'm guessing that OnHelo a burned-in unsupported feature in my version? I know i've seen an OnHelo thread, so i will go take a look as well. You won't find OnHELO i...
by SorenR
2017-10-28 18:20
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 1618

Re: Ban IP address on Hmail with Password proxy

I notice in your script that you are using OnHELO. As far as i understand, this is superseded by OnClientConnect, correct? I want to give the greywhitelist a go but just wanted to verify before i start testing. They are two different things... OnClientConnect will only give you the IP address and I...
by SorenR
2017-10-28 16:57
Forum: Off-topic discussions
Topic: Spam attacks? Do you think you are hard done to?
Replies: 136
Views: 25644

Re: Spam attacks? Do you think you are hard done to?

I found a little NAG in my setup... I use AutoBan as part of my IDS code and I also use an external Backup-MX ... My IDS code will AutoBan servers when they get too annoying ;-) So far so good, my server will thus ignore any further communication - that's what I thought :roll: I have been seeing ser...
by SorenR
2017-10-26 14:35
Forum: General discussions
Topic: How to know the original "TO" when using catch all & fwd/bcc
Replies: 6
Views: 372

Re: RE: Re: How to know the original "TO" when using catch all & fwd/bcc

A word of warning... There is a bug (?) in hMailServer where, if addressing to two different mail accounts that both will end up in Catch-All (or Alias), one will be dropped. hMailServer cannot handle oMessage.Recipients(i).Address holding duplicates ... :roll: I cannot reproduce this bug. Maybe it...
by SorenR
2017-10-26 13:03
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 92
Views: 11510

Re: RE: Re: Sub OnHELO(oClient) progress?

If you receive concurrent connections (winthin milliseconds) from the same IP and you try to ban that IP then "i" will never become "true" because "Err.Number" can never become "0" ... The IP was banned from another session during the while...wend loop. I thi...
by SorenR
2017-10-26 01:15
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 92
Views: 11510

Re: Sub OnHELO(oClient) progress?

Just had another (whilst typing this) "DEBUG" 7516 "2017-10-25 13:21:41.112" "TCP connection started for session 79" "SMTPD" 7516 79 "2017-10-25 13:21:41.112" "203.113.204.51" "SENT: 220 example.com ESMTP" "SMTPD" 2588 ...
by SorenR
2017-10-22 17:28
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 1618

Re: Ban IP address on Hmail with Password proxy

I still get viruses from friends that never should have been given access to electronic equipment. If I whitelist them ... :roll: Geezzzuss ... That is the main reason I gave up on Percepts' old script from 2013 doing the same as your binary Whitelist thingy. Original script dates back to 2008. http...
by SorenR
2017-10-20 22:59
Forum: General discussions
Topic: How to know the original "TO" when using catch all & fwd/bcc
Replies: 6
Views: 372

Re: How to know the original "TO" when using catch all & fwd/bcc

Or you could add a header via a script I'd add to onAcceptMessage, and manually add a header that matches each of the oMesaage.recipients (although if multiple people on your server get the same message all will be listed). BCC should come to your server individually (that's the point of BCC) Anoth...
by SorenR
2017-10-15 11:19
Forum: Off-topic discussions
Topic: Spam attacks? Do you think you are hard done to?
Replies: 136
Views: 25644

Re: RE: Re: Spam attacks? Do you think you are hard done to?

What if there are multiple matches? You are only checking the subject for blackilsted words? I guess that checking body or HTMLbody will slow server down I like the "X-hMailServer-Reason-0" - normally hMailserver starts at 1, but again what happens for multiple matches. Global = false, on...
by SorenR
2017-10-15 00:05
Forum: Off-topic discussions
Topic: Spam attacks? Do you think you are hard done to?
Replies: 136
Views: 25644

Re: Spam attacks? Do you think you are hard done to?

I'm testing some Blacklist code enhancements... Comments? Background: I move all mail with headervalue "X-hMailServer-Spam" = "YES" to users SPAM folder regardless if trigger is DNSBL, SpamAssassin or Blacklist. I have a number of Blacklists in my script, only one is shown here ....
by SorenR
2017-10-11 18:29
Forum: Off-topic discussions
Topic: Spam attacks? Do you think you are hard done to?
Replies: 136
Views: 25644

Re: Spam attacks? Do you think you are hard done to?

Had an interesting one overnight....out of France (dynamic IP address) An attack on port 587, where in a single minute, some 800 connections were made testing the ciphers and the SSL/TLS version used, some nearly 11000 log lines, all from the same IP address, all on port 587. I've added port 465 an...
by SorenR
2017-09-28 01:29
Forum: General discussions
Topic: DNS Secondary MX record - do I need one?
Replies: 7
Views: 526

Re: DNS Secondary MX record - do I need one?

Nice! Can I ask you how you are handling your spam? I have spam assassin installed but we still get mucho (a spanish term) amounts of spam - Only a few RBL's and SURBL's. - A fully trained SpamAssassin with nightly training from users inbox and spam folders. - About 1,000 lines of code in EventHand...
by SorenR
2017-09-27 21:59
Forum: General discussions
Topic: DNS Secondary MX record - do I need one?
Replies: 7
Views: 526

Re: DNS Secondary MX record - do I need one?

Well... MX records are NOT (as per RFC) required, but they make life a lot easier. I have 3 MX records... MX 10 "My Mailserver" MX 20 "My Backup-Mailserver" MX 30 "My Mailserver" Why would I have MX 10 and MX 30 point to the same server you may ask... SPAM is the answer...
by SorenR
2017-09-19 15:49
Forum: Scripting
Topic: oMessage set htmlbody changes mail charset to us-ascii
Replies: 9
Views: 720

Re: oMessage set htmlbody changes mail charset to us-ascii

You are reading oMessage... from Eventhandlers.vbs ?? Which event ?? I'm using a rule in hMailServer running for every mail thats message size is greater than 0. In this rule I do the following steps: - Setting a Header value in the mail to mark the mail as modified by script. Using Rule Action Set...
by SorenR
2017-09-18 18:03
Forum: Scripting
Topic: oMessage set htmlbody changes mail charset to us-ascii
Replies: 9
Views: 720

Re: oMessage set htmlbody changes mail charset to us-ascii

The character "=" have a different meaning in "Quoted-Printable" HTML (it's a line wrap) so a "3D" is added to reserved words/characters.

"=" means "line wrap"
"=3D" mean an equal sign.
by SorenR
2017-09-18 17:58
Forum: Scripting
Topic: oMessage set htmlbody changes mail charset to us-ascii
Replies: 9
Views: 720

Re: oMessage set htmlbody changes mail charset to us-ascii

You are reading oMessage... from Eventhandlers.vbs ??

Which event ??
by SorenR
2017-09-18 15:19
Forum: Scripting
Topic: oMessage set htmlbody changes mail charset to us-ascii
Replies: 9
Views: 720

Re: oMessage set htmlbody changes mail charset to us-ascii

Thanks for the hint with the documentation. Unfortunatly I found in the documentation only one property of the object oMessage that seems to Change a charset of a mail. The property string Charset (The main character set of the email). I tried to set this property to values utf-8 and iso-8859-1 . B...
by SorenR
2017-09-18 15:09
Forum: Off-topic discussions
Topic: best blacklist list
Replies: 22
Views: 17007

Re: best blacklist list

@SorenR I have enabled your IDS Detection script on my own "home" server....maybe i have misread something, but does'nt this basically interfere with HMS greylisting? No... Well, it should not and I have even cut down the timing on GL from what the GUI suggests.. EDIT: ... Ehrm... I use a...
by SorenR
2017-09-11 13:18
Forum: Off-topic discussions
Topic: best blacklist list
Replies: 22
Views: 17007

Re: best blacklist list

This all goes to show that there are no "standard setup" when it comes to fighting SPAM.. We all deal with it the best way we can by digging into the common toolbox and use whatever we can.
by SorenR
2017-09-11 01:52
Forum: Off-topic discussions
Topic: best blacklist list
Replies: 22
Views: 17007

Re: best blacklist list

Wow... I only have SpamAssassin and ... DNS: zen.spamhaus.org (127.0.0.2-11) b.barracudacentral.org (127.0.0.2) bl.spamcop.net (127.0.0.2) SURBL: multi.surbl.org dbl.spamhaus.org VBscript code to check for; - SnowShoe SPAM (Deny access) - Invalid HELO/EHLO string syntax (Deny access + AutoBan) - Inv...
by SorenR
2017-09-08 02:05
Forum: Scripting
Topic: Random Error: 800403E9
Replies: 16
Views: 1065

Re: Random Error: 800403E9

Ok... long story cut short.

Code in Eventhandlers.vbs "body" allways run. Code in Sub/Class/Function only run when called.

Eventhandlers.vbs is run at every event.

Ok?
by SorenR
2017-09-07 22:36
Forum: General discussions
Topic: External antivirus generates lots of false-positives
Replies: 3
Views: 363

Re: External antivirus generates lots of false-positives

You won't make this work... Read the helpmessage again, repeat until understood... Notice same returncode on virus, "action required" and "error in scanning"... Not something you want in an unmonitored server...
by SorenR
2017-09-07 22:25
Forum: Off-topic discussions
Topic: North Korea just fired a Missile over Japan
Replies: 10
Views: 1004

Re: North Korea just fired a Missile over Japan

Yeah, and we have this weird orange guy with one hand on the red button and the other typing on twitter...
by SorenR
2017-09-07 11:43
Forum: Scripting
Topic: Random Error: 800403E9
Replies: 16
Views: 1065

Re: Random Error: 800403E9

If you do as SorenR was doing By running the Include function in the script body means the Json object is loaded when the script is reloaded, so therefore available to all Sub's and Function's. Then I think that the Json Object is ONLY loaded at startup, or reload of scripts, and is also retained i...
by SorenR
2017-09-07 11:39
Forum: Scripting
Topic: Random Error: 800403E9
Replies: 16
Views: 1065

Re: Random Error: 800403E9

If you do as SorenR was doing By running the Include function in the script body means the Json object is loaded when the script is reloaded, so therefore available to all Sub's and Function's. Then I think that the Json Object is ONLY loaded at startup, or reload of scripts, and is also retained i...
by SorenR
2017-09-06 15:53
Forum: General discussions
Topic: Rules / Source / Spam issue
Replies: 28
Views: 1836

Re: Rules / Source / Spam issue

Bloody hell you gave me a good scare here... But then I went through my 900+ lines EventHandlers.vbs and found that I aparently have had a good day and thought of it :lol: There... Fixed it for you :mrgreen: That's also how my OnAcceptMessage works. I do tons of stuff in there - but only to external...
by SorenR
2017-09-06 15:39
Forum: General discussions
Topic: ECHR Judgement on company email
Replies: 2
Views: 331

Re: ECHR Judgement on company email

In short... You employer cannot legally read your mail unless they notify you first. I strongly suspect that most comapnies that want to read your emali will already have it in the small print of their IT Policy which you will have been made to read and acknowledge. (And who reads those until its t...
by SorenR
2017-09-06 15:36
Forum: Scripting
Topic: Random Error: 800403E9
Replies: 16
Views: 1065

Re: Random Error: 800403E9

Just finished testing... I only use GeoIP lookups when doing my selective AutoBanning, so I moved the statement ... Include("C:\hMailServer\Events\VbsJson.vbs") ... into my "Sub AutoBan...." code. Experiments with SysInternals FileMon show: hMailServer - Program start -> VbsJson....
by SorenR
2017-09-06 15:02
Forum: General discussions
Topic: ECHR Judgement on company email
Replies: 2
Views: 331

ECHR Judgement on company email

European Court of Human Rights. http://hudoc.echr.coe.int/eng?i=001-177082 In short... You employer cannot legally read your mail unless they notify you first. It is otherwise a breach of privacy. As this is an EU ruling, it applies to ALL MEMBERS of the European Union, regardless of any local legis...
by SorenR
2017-09-06 14:39
Forum: Scripting
Topic: Random Error: 800403E9
Replies: 16
Views: 1065

Re: Random Error: 800403E9

Correction... I forgot to "rem" the common line of code when testing "Include" from a sub ... :oops:

Will do some further experiments - unfortunately my system is not prepaired for generating SPAM and unsoliced requests so I have to wait for real life events... :wink:
by SorenR
2017-09-06 14:22
Forum: Scripting
Topic: Random Error: 800403E9
Replies: 16
Views: 1065

Re: Random Error: 800403E9

The difference on your code and my code is that I use a hardcoded link to the Json code. I see no reason for building a link from "variables" as the code is not going to move to a different directory/drive on its own anyway - and if does, it's probably because you messed up your installati...
by SorenR
2017-09-05 16:07
Forum: Scripting
Topic: Random Error: 800403E9
Replies: 16
Views: 1065

Re: Random Error: 800403E9

You need to rearrange your eventhandler... These are the first 35 lines of mine... By running the Include function in the script body means the Json object is loaded when the script is reloaded, so therefore available to all Sub's and Function's. You _can_ solve the problem by using filelocking, but...
by SorenR
2017-09-04 23:39
Forum: General discussions
Topic: Rules / Source / Spam issue
Replies: 28
Views: 1836

Re: Rules / Source / Spam issue

I sent an email with many BCC recipients today and found out that the header contains all BCC mail addresses I sent the message to. So all of the recipients could see the values for the BCC entries. Ouch! Can the script be tweaked so this does not happen? Yes, YOUR copy in the Sent Mail folder woul...
by SorenR
2017-08-31 19:05
Forum: Off-topic discussions
Topic: Spam attacks? Do you think you are hard done to?
Replies: 136
Views: 25644

Re: Spam attacks? Do you think you are hard done to?

https://www.troyhunt.com/inside-the-massive-711-million-record-onliner-spambot-dump/ https://haveibeenpwned.com/ I dare you :mrgreen: I found only one of my emails "compromised"... Adobe: In October 2013, 153 million Adobe accounts were breached with each containing an internal ID, userna...
by SorenR
2017-08-28 17:34
Forum: User-submitted tutorials
Topic: AutoConfigure
Replies: 19
Views: 1677

Re: AutoConfigure

I've noticed that Windows 10 Mail doesn't adhere to autoconfigure like Outlook does. Any suggestions for dealing with Windows 10 Mail?? Google doesn't turn up much for me... I have both the "Mozilla" solution and the "Outlook" solution (by AndreL) on my webserver (no .htaccess b...
by SorenR
2017-08-11 17:10
Forum: User-submitted tutorials
Topic: AutoConfigure
Replies: 19
Views: 1677

Re: AutoConfigure

mattg wrote:I knew It worked, but I wasn't sure about how
Thanks for the confirmation

That is not exactly my conclusion... Anyways %{REQUEST_FILENAME} means the actual filesystem path and file so this can't be tested from outside... So... my test is crap :mrgreen:
by SorenR
2017-08-11 16:15
Forum: User-submitted tutorials
Topic: AutoConfigure
Replies: 19
Views: 1677

Re: AutoConfigure

Hmm... Found a htaccess test site that I just had to try. http://htaccess.mwl.be/ NB: domain changed. Actual URL: Verified, when loaded in a browser it WILL show the XML output. https://www.acme.inc/.well-known/autodiscover/autodiscover.php htaccess to be tested: RewriteEngine On RewriteCond %{REQUE...
by SorenR
2017-08-11 14:01
Forum: User-submitted tutorials
Topic: AutoConfigure
Replies: 19
Views: 1677

Re: AutoConfigure

Not sure what the -s and -l is good for... TBH me neither, I copied that from http://www.virer.net/info/ol-autodiscover/index.html as detailed in my code It worked for me, that's what counts for me. http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html and search for '-l' including the quotes and t...
by SorenR
2017-08-10 17:55
Forum: User-submitted tutorials
Topic: AutoConfigure
Replies: 19
Views: 1677

Re: AutoConfigure

A rewrite of the URL is also needed. I use Apache and so rewrite is done with .htaccess (IIS needs a rewrite module added, and rules are generated and tested using the IIS Admin GUI, or a web.config file should be generated) RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQ...
by SorenR
2017-08-10 15:18
Forum: Scripting
Topic: ComAPI missing field - help to identify
Replies: 5
Views: 346

Re: ComAPI missing field - help to identify

Oops.. Was looking at Route... Anyways, it's the same story with SMTPRelayer... Just different id(36) in the API..
by SorenR
2017-08-10 15:05
Forum: Scripting
Topic: ComAPI missing field - help to identify
Replies: 5
Views: 346

Re: ComAPI missing field - help to identify

Hmmm... In my script I want to put in the logic that says: if password = blank/not set then....... Currently: if oSettings.smtprelayerpassword <> "" then TxtTemp = TxtTemp & "Password Entered" else TxtTemp = TxtTemp & "!NO PASSWORD SET!" any idea how Im can do ...
by SorenR
2017-08-10 14:50
Forum: Scripting
Topic: ComAPI missing field - help to identify
Replies: 5
Views: 346

Re: ComAPI missing field - help to identify

Chaps, Im trying to extend the diagnostic script but I have come across a particular head scratcher. We are in PROTOCOLS - Delivery Of EMail tab. We have 'SMTP Relayer' enabled. We have the Relayer HOSTNAME "SMTPRelayer" - this is listed in the documentation and also appears as an object ...
by SorenR
2017-08-04 16:43
Forum: Development & alpha discussions
Topic: Error C3083 compiling hMs
Replies: 81
Views: 3994

Re: Error C3083 compiling hMs

Thanks, lol, more VB. The Administrator is written in C#. However even when I try to translate it into C# I can't get it to work. There is no .Item method/property on Messages, there is only ItembyDBID(). So "Set oMessage = oIMAPFolder.Messages.Item(k)" will not work. It needs to be "...
by SorenR
2017-08-02 17:53
Forum: User contributed hMailServer 5 scripts
Topic: IP Blacklist - Block IPs (very basic but effective)
Replies: 12
Views: 2856

Re: IP Blacklist - Block IPs (very basic but effective)

Yes, my daughter is currently blonde, but that does not justify this domain... "@grupobimbo.com" ... Hmm... :lol: :lol: :lol: A bit harsh to block/mark all mail that derived from Symantec/messagelabs like that because of a single message... what if a spam mail arrives to you from a gmail ...

Go to advanced search