Search found 2383 matches

by SorenR
2018-07-22 00:43
Forum: General discussions
Topic: Spam requests effecting performance
Replies: 7
Views: 196

Re: Spam requests effecting performance

Perhaps a warning... Sendgrid, Rackspace and such hosting companies have redundant servers in many countries. Just make sure you don't block one of those by mistake :wink: I have been running a GeoIP log over the past couple of weeks. It really surprised me where the servers are located. For me it c...
by SorenR
2018-07-16 21:49
Forum: General discussions
Topic: URGENT- please help, mail server sending spam
Replies: 19
Views: 222

Re: URGENT- please help, mail server sending spam

OK thanks. Would it be possible for me to create a global script to create a copy of all outgoing mail in a folder which can expire after a month say? To cover these kinds of instances and make sure for example that the outgoing spam has not done anything serious. https://www.hmailserver.com/docume...
by SorenR
2018-07-15 22:28
Forum: User contributed hMailServer 5 scripts
Topic: SpamAssassin Bootcamp (sa-learn) train BAYES
Replies: 74
Views: 24756

Re: SpamAssassin Bootcamp (sa-learn) train BAYES

Version 0.4.2 that never made it to this thread as an archive ;-)

Remember to update your local.cf as the reference to the bayes db is removed from sa-learn.exe (not needed if present in local.cf)
by SorenR
2018-07-15 11:04
Forum: User contributed hMailServer 5 scripts
Topic: SpamAssassin Bootcamp (sa-learn) train BAYES
Replies: 74
Views: 24756

Re: SpamAssassin Bootcamp (sa-learn) train BAYES

https://support.microsoft.com/en-us/hel ... tion-marks

I would use quotes around this ...

"C:\Program Files\JAM Software\SpamAssassin for Windows\sa-learn.exe"
by SorenR
2018-07-14 23:34
Forum: User contributed hMailServer 5 scripts
Topic: SpamAssassin Bootcamp (sa-learn) train BAYES
Replies: 74
Views: 24756

Re: SpamAssassin Bootcamp (sa-learn) train BAYES

What does your sa-learn.cmd look like ??
by SorenR
2018-07-14 19:16
Forum: General discussions
Topic: Sudden Service misbehaviour - help required (service fails to stop)
Replies: 42
Views: 683

Re: Sudden Service misbehaviour - help required please

kb4338818 It appears to kill FileZilla ... https://forum.filezilla-project.org/viewtopic.php?f=6&p=163932 A workaround ... Maybe ... In German :roll: https://www.deskmodder.de/blog/2018/07/10/kb4338818-windows-7-monatliches-update-juli-2018/ EDIT: There Will Be A Fix ... Soon! https://www.reddit.co...
by SorenR
2018-07-12 12:19
Forum: Feature requests
Topic: Greylisting by subnetwork
Replies: 7
Views: 256

Re: Greylisting by subnetwork

Actually, I have switched off Greylisting since several months ago... I use a 20 second delay on "OnClientConnect", "OnHELO" and "OnSMTPData" and that seems to filter out the worst hogs. Then I filter the HELO/EHLO greeting ... and impose a complete rulebook of SPAM Catchers before delivering mail t...
by SorenR
2018-07-12 10:58
Forum: Feature requests
Topic: Greylisting by subnetwork
Replies: 7
Views: 256

Re: Greylisting by subnetwork

As usual, excellent work SorenR From research I've found that the OnHELO sub is only populated on the second connection. This happens only with StartTLS connections to your mailserver. On first OnHELO connection, oClient.helo is blank After negotiating a successful StartTLS, OnHELO is triggered a s...
by SorenR
2018-07-11 22:16
Forum: Feature requests
Topic: Greylisting by subnetwork
Replies: 7
Views: 256

Re: Greylisting by subnetwork

Another nice option would be by domain like in postgrey. Then with one rule we could for example whitelist Outlook/Office365: *outbound.protection.outlook.com Well... ;-) Option Explicit ' **************************************************************************************************************...
by SorenR
2018-07-07 11:25
Forum: Scripting
Topic: powershell management from other computer
Replies: 8
Views: 106

Re: powershell management from other computer

I hadn't quoted the entire codeblock, since it never gets to the authentication part.. The error is on the new-object line.. $hm = New-Object -ComObject hMailServer.Application $hm.Authenticate("yyy", "xxx") | out-null $hmdom = $hm.Domains.ItemByName("staff.local.lan") $hmdomaccts = $hmdom.Accounts...
by SorenR
2018-07-07 11:14
Forum: Scripting
Topic: powershell management from other computer
Replies: 8
Views: 106

Re: powershell management from other computer

Hi, I'm running some mailbox creation routines from powershell scripts located on the server. Can I somehow import the powershell modules so I can run such scripts from our management server (located in the same domain, thus reachable over the internal network) Install hMailAdmin on the management ...
by SorenR
2018-07-03 22:59
Forum: General discussions
Topic: Orphaned NDR messages
Replies: 3
Views: 105

Re: Orphaned NDR messages

Alkochm wrote:
2018-07-03 21:58
This still feels like a bug somewhere since all NDR behavior is uncontrolled.
Nah, it feels like that now, but that's only 'cause you haven't learnt to tame the beast yet. :mrgreen:
by SorenR
2018-07-03 19:55
Forum: General discussions
Topic: Orphaned NDR messages
Replies: 3
Views: 105

Re: Orphaned NDR messages

Hello. I have problem with NDR messages (since there is no option to disable em). I've already read topics here about using rules to delete NDR messages, but since rules applies only on delivery of message into mailbox - this is not my case. Try create a route to a dummy box for the same domain as ...
by SorenR
2018-06-16 08:34
Forum: User-submitted tutorials
Topic: Powershell Script to disable user based on the number of e-mail sent.
Replies: 4
Views: 207

Re: Powershell Script to disable user based on the number of e-mail sent.

pauloroberto wrote:
2018-06-16 01:56
Hey man, how do I delete the post?
You don't.

But it is no problem. Some day, someone may need inspiration on how to use hMailServer with PowerShell and they can see how you did it.
by SorenR
2018-06-15 23:36
Forum: User-submitted tutorials
Topic: Powershell Script to disable user based on the number of e-mail sent.
Replies: 4
Views: 207

Re: Powershell Script to disable user based on the number of e-mail sent.

Something like this ??

viewtopic.php?f=20&t=28269

The script is pasted into EventHandlers.vbs so it's real-time ...
by SorenR
2018-06-15 17:30
Forum: User-submitted tutorials
Topic: Powershell Script to export all e-mail address transmitted by the server (To and From).
Replies: 2
Views: 116

Re: Powershell Script to export all e-mail address transmitted by the server (To and From).

hMailServer can log traffic in AWStat format. Check it out, it could have saved you a lot of work :mrgreen:
by SorenR
2018-06-14 23:40
Forum: Scripting
Topic: Script - determine all recipients, even for non-existent address
Replies: 10
Views: 365

Re: Script - determine all recipients, even for non-existent address

I can solve this by getting the TO and CC lines and pulling email addresses from that. I don't see a way to get the BCC recipients from oMessage? https://www.hmailserver.com/documentation/latest/?page=com_object_message I may not need it anyway but I am just curious if it is possible. Ah.. The eter...
by SorenR
2018-06-12 09:08
Forum: Scripting
Topic: Script - determine all recipients, even for non-existent address
Replies: 10
Views: 365

Re: Script - determine all recipients, even for non-existent address

Did you end up coming up with a work around? in my case, I could create all the user accounts if I had to by pulling from our AD user list. I'd rather have the catchall keep the original addresses if possible. Well, a theory was formed that you could replace the "Catch-All" account in the existing ...
by SorenR
2018-06-09 15:36
Forum: Scripting
Topic: Script - determine all recipients, even for non-existent address
Replies: 10
Views: 365

Re: Script - determine all recipients, even for non-existent address

Just a note... The CatchAll address will kill all but the first unknown as hMailServer consolidate recipients.. EG. To: joe@domain.tld, jack@domain.tld, jane@domain.tld, john@domain.tld Catchall (not.here@domain.tld) will take care of joe@domain.tld, jack@domain.tld and john@domain.tld leaving jane@...
by SorenR
2018-06-09 15:14
Forum: General discussions
Topic: GDPR: Encrypted mail transmission possible?
Replies: 9
Views: 462

Re: GDPR: Encrypted mail transmission possible?

Just in case people don't know what on earth you guys are talking about...

The popular version, for those of us that don't speak legalese ... :mrgreen:
https://www.metacompliance.com/media/20 ... sguide.pdf
by SorenR
2018-06-04 16:23
Forum: Scripting
Topic: rejecting smtp connection upon not submitting the required client domain in the HELO
Replies: 12
Views: 508

Re: rejecting smtp connection upon not submitting the required client domain in the HELO

1: You installed the official 5.6.7 (yes/no) ?

2: You downloaded https://d-fault.nl/files/5.6.7-B2425.16.7z and copied the files to hMailServer (yes/no) ?

3: You modified the script to include "Sub OnHELO(oClient)" (yes/no) <-- YES
by SorenR
2018-06-04 11:48
Forum: Scripting
Topic: rejecting smtp connection upon not submitting the required client domain in the HELO
Replies: 12
Views: 508

Re: rejecting smtp connection upon not submitting the required client domain in the HELO

RvdH is maintaining a selection of modifications, keeping them up-to-date. If you use version 5.6.7 you can pull the alternative version here. Several of us are using it for production without problems. You can find older version in the same thread. http://www.hmailserver.com/forum/viewtopic.php?p=2...
by SorenR
2018-05-29 16:34
Forum: General discussions
Topic: hMailServer Won't Queue Outgoing Messages
Replies: 24
Views: 848

Re: hMailServer Won't Queue Outgoing Messages

Actually, I have a lot of experience with telephony, both analog going back over 30 years and VoIP. I do not have a lot of experience with email systems. And thus the questions here. I did find that the problem appears to be an incompatibility of some kind between the alarm device and hMailServer. ...
by SorenR
2018-05-29 08:02
Forum: General discussions
Topic: hMailServer Won't Queue Outgoing Messages
Replies: 24
Views: 848

Re: hMailServer Won't Queue Outgoing Messages

Mr. Rayfield, if I'm correct, should be quite knowledgeable in Radio Communication, Telephone Switchboards, IP telephony, High-speed Internet Services, Hosting of VPS's in the cloud and DNS. So... since this is new and uncharted territory to you (otherwise you would not be asking here), I suggest yo...
by SorenR
2018-05-10 11:16
Forum: General discussions
Topic: Reverse DNS does not match SMTP Banner
Replies: 17
Views: 1417

Re: Reverse DNS does not match SMTP Banner

Hi, I am trying to implement DMARC. I think that I have SPF and DKIM working but I notice that MX Toolbox reports an error with my SMTP banner. I am not sure how to resolve this. I have entered my mail server dn into the protocal settings in hmailserver for both General and Delivery of email ie mai...
by SorenR
2018-05-05 22:23
Forum: Off-topic discussions
Topic: Win 10 Enterprise force lnstalls Updates/Upgrades to
Replies: 12
Views: 599

Re: Win 10 Enterprise force lnstalls Updates/Upgrades to

https://www.oo-software.com/en/shutup10

Will remember changes between updates, you only need to run it after the update to see what changes were made and then re-do them.
by SorenR
2018-04-25 14:09
Forum: General discussions
Topic: New breed of spammers...
Replies: 4
Views: 2005

New breed of spammers...

Got this today. Tic??t#323099809: <coyote@acme.inc> 25.04.2018 04:55:55 Think twice Afsender Perry Wesson Modtager coyote@acme.inc Dato I dag 03:54 Prioritet Normal Return-Path order@andalucianguides.com Good day! Dont regard on my English, Im from Belgium.We put our virus onto your system.At presen...
by SorenR
2018-03-24 16:07
Forum: General discussions
Topic: Spamhaus & Barracuda DNS BlackLists
Replies: 7
Views: 795

Re: Spamhaus & Barracuda DNS BlackLists

Barracuda ? Doesn't Barracuda need you to register nowadays to be able to access their DNSBL? The first step is to request access to the BRBL. Once your name server (DNS server) IP addresses have been approved for access, you will need to configure your mail server. All modern mail servers have a '...
by SorenR
2018-03-24 13:44
Forum: General discussions
Topic: Log file HUGE
Replies: 11
Views: 779

Re: Log file HUGE

Hmm... I log SMTP... ONLY! If I f'd up some code, it will throw an error and I can deal with that, then. My system will "hands down" cope with pretty much everything they can throw at it and has been for many years. The ONLY reason I look in my logfiles (and yes, I do my own custom logging) is to op...
by SorenR
2018-03-18 01:06
Forum: General discussions
Topic: Scripts UTF-16 support issue?
Replies: 10
Views: 666

Re: Scripts UTF-16 support issue?

When you search for the string to set as trigger of SPAM, do you look in the email with an email client or do you look in the ".eml" file with a text editor? I actually save all mails sent to myself in the hmailserver_events.log to make sure I get the text as seen by the script. I returned to the d...
by SorenR
2018-03-17 01:30
Forum: General discussions
Topic: Scripts UTF-16 support issue?
Replies: 10
Views: 666

Re: Scripts UTF-16 support issue?

I might overcomplicate it, but I get mails through the server that contains partial sentences like these (one per line): der vil helt og aldeles forbløffe dig endeløse tilbud vi får hver dag så kontakt mig på et kærlighedsside får du svar i løbet lÃ¥n=20op=20til=2010=2e000=20med...
by SorenR
2018-03-15 15:05
Forum: General discussions
Topic: Scripts UTF-16 support issue?
Replies: 10
Views: 666

Re: Scripts UTF-16 support issue?

Thanks for your help :D I used your testcode with my own mail address, and I quickly saw the difference. I now use the "oMessage.EncodeFields = False" to make sure all mails are coded in the same way during scripting. I still 'replace oranges with apples' as you called it :wink: as I have come acro...
by SorenR
2018-03-13 22:28
Forum: Scripting
Topic: Deny banned server via Backup-MX...
Replies: 2
Views: 665

Re: Deny banned server via Backup-MX...

RvdH wrote:
2018-03-13 10:45
Isn't that 'For Each Match In Matches' not overdue?
....there is only a single match returned by the function isn't?
Well... It's one of many ways to work with objects :mrgreen:

In theory the oLookup function could return multiple results... But for this, it is overkill :mrgreen:
by SorenR
2018-03-12 12:21
Forum: General discussions
Topic: Is there a way to force hms headers?
Replies: 11
Views: 854

Re: Is there a way to force hms headers?

Thank you all for your replies. After reading all your comments the "short" answer seems to "No". The longer answer seems to be "By compiling an own branch", one of the things I'd like to avoid. I'm going to try to setup spamassassin to analyze result headers. I know, SA can handle SPF, but I have ...
by SorenR
2018-03-12 11:59
Forum: General discussions
Topic: Scripts UTF-16 support issue?
Replies: 10
Views: 666

Re: Scripts UTF-16 support issue?

Thanks for the answer :) So... if I understand you correctly, then I can start my script with Sub OnAcceptMessage(oClient, oMessage) oMessage.EncodeFields = False ... or am I misunderstanding something? Try this test code to fully understand the functionality of oMessage.EncodeFields... You need to...
by SorenR
2018-03-11 16:07
Forum: General discussions
Topic: Is there a way to force hms headers?
Replies: 11
Views: 854

Re: Is there a way to force hms headers?

Not quite jimimaseye Those headers are added once the hMailserver MARK spam threshold is reached If you set the MARK threshold to 0 then all mail that trigger any test will get these headers added A message without these headers will not score on any SPAM tests This detail is definitely available i...
by SorenR
2018-03-11 01:52
Forum: General discussions
Topic: Scripts UTF-16 support issue?
Replies: 10
Views: 666

Re: Scripts UTF-16 support issue?

Hi I am a longtime happy user of hMailServer. I have run into an odd problem lately though. I run my own script for filtering spam, which have worked great for a long time, but now I have noticed more and more spam slipping through. It appears to be an issue with utf-16 encoded mails that slips thr...
by SorenR
2018-03-10 13:58
Forum: Scripting
Topic: Deny banned server via Backup-MX...
Replies: 2
Views: 665

Deny banned server via Backup-MX...

I have code in my eventhandlers.vbs to read the next "Received:" header on emails that come in via the relay (Backup-MX) in order to check it with the AutoBan list and reject connection if appropriate... It's slow code and every single mail coming in via the relay (Backup-MX) must be checked. It is ...
by SorenR
2018-03-03 00:15
Forum: General discussions
Topic: IP stored into hmaildb tables
Replies: 3
Views: 444

Re: IP stored into hmaildb tables

Luket wrote:
2018-03-02 21:59
Hi all,

wish to know witch format are IPs stored into MySQL hmaildb scheme ?
https://dev.mysql.com/doc/refman/5.6/en ... inet6-aton
by SorenR
2018-03-02 22:42
Forum: Development & alpha discussions
Topic: REQUEST: Allow Users to edit their own rules
Replies: 5
Views: 670

Re: REQUEST: Allow Users to edit their own rules

tunis wrote:
2018-03-02 20:36
SorenR wrote:
2018-03-02 18:46
I found an awesome swede on GitHub that made a Roundcube plugin for editing hmailserver user rules AND
It's probably my plugins on github. This are also find on roundcube plugin site.
I also use your remote password driver ;-)
by SorenR
2018-03-02 18:46
Forum: Development & alpha discussions
Topic: REQUEST: Allow Users to edit their own rules
Replies: 5
Views: 670

Re: REQUEST: Allow Users to edit their own rules

My users can do it in their webmail...

I found an awesome swede on GitHub that made a Roundcube plugin for editing hmailserver user rules AND ... :!: I can have webmail on 'nix and hMail on 'doze. :mrgreen:

Untitled.jpg
by SorenR
2018-02-21 20:34
Forum: User contributed hMailServer 5 scripts
Topic: Add timeout to script function?
Replies: 5
Views: 578

Re: Add timeout to script function?

I know you can't use it in HM script but here goes ... WScript.Echo WScript.Timeout WScript.Timeout = 15 WScript.Echo "Start..." While True WScript.Sleep 5000 WScript.Echo "Tick..." Wend WScript.Echo "Stop..." He he..... Hint: perhaps look into calling the exe via PowerShell, IIRC you can set a time...
by SorenR
2018-02-19 23:07
Forum: User-submitted tutorials
Topic: Store and lookup SpamAssassin bayes in mySQL
Replies: 26
Views: 2160

Re: Store and lookup SpamAssassin bayes in mySQL

katip wrote:find "mysql.xs.dll" in \strawberry\perl\site\lib\auto\DBD\mysql\
copy it to <Spamassassin folder>\runtime\lib\auto\DBD\mysql\
Perhaps this or it could trigger an idea ???
https://bugzilla.mozilla.org/show_bug.cgi?id=987742
by SorenR
2018-02-19 18:56
Forum: User-submitted tutorials
Topic: Store and lookup SpamAssassin bayes in mySQL
Replies: 26
Views: 2160

Re: Store and lookup SpamAssassin bayes in mySQL

I already have a mysql.xs.dll, and I've tried to substitute it with a newer version, but it doesn't work. An error says "this is not a valid Win32 application" (!!!) I thought, it was most simple to use Mysql with Spamassassin :( It works for me using ActiveState Perl... SA version 3.4.0, Bayes on ...
by SorenR
2018-02-03 19:24
Forum: Scripting
Topic: DNS SPF Greylist > Whitelist
Replies: 9
Views: 908

Re: DNS SPF Greylist > Whitelist

I took a different route... SPF is too much work :mrgreen: I have extraced the whitelist@greylist code from my eventhandlers.vbs Option Explicit ' ****************************************************************************************************************************** ' ********** Settings ****...
by SorenR
2018-01-31 18:43
Forum: User-submitted tutorials
Topic: Windows God Mode = Control Panel on steroids.
Replies: 4
Views: 738

Windows God Mode = Control Panel on steroids.

Not so much a tutorial, more a way to "bend" your Windows. Verified on Vista Home Premium, Windows 10 Home and Windows 10 Pro. Create a directory locally, on a network share, on a USB key or on a CD/DVD - it does not really matter where... Name it: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} For ...
by SorenR
2018-01-28 19:32
Forum: Off-topic discussions
Topic: Spam attacks? Do you think you are hard done to?
Replies: 137
Views: 31213

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

Been running my Black/Whitelist code for a while now - seems to be rock solid ;-) A sample from my custom logging... ;-) BTW.. I have a rule that move mail to a SPAM folder so the script only need to tag SPAM. "--BW Number of recipients... 1" "--BW To: wile.e.coyote@acme.inc" "--BW From: "Computerwo...
by SorenR
2018-01-28 19:17
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 107
Views: 19619

Re: Sub OnHELO(oClient) progress?

Once you have the basics running you'll figure it out by monitoring your logfiles. Every environment is different i.e. it is unlikely we share the same bots/spammers so... dig into your logs and go from there.
by SorenR
2018-01-19 23:18
Forum: SpamAssassin implementation discussions
Topic: SpamAssassin Score + hMailServer Score
Replies: 36
Views: 7537

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 17:40
Forum: User contributed hMailServer 5 scripts
Topic: Ban IP address on Hmail with Password proxy
Replies: 33
Views: 3713

Re: Ban IP address on Hmail with Password proxy

viewtopic.php?f=2&t=30965&p=193666&hili ... an#p193666

This is the version I use now, first version without session locking was engineered in 2015 :wink:
by SorenR
2017-12-21 00:17
Forum: General discussions
Topic: Go Public
Replies: 34
Views: 1569

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: 551

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: 1243

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 - Code: (null)" (thats the lin...
by SorenR
2017-11-04 20:37
Forum: General discussions
Topic: how handle accent in subject from Blat
Replies: 6
Views: 599

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: 1430

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 on my Windo...