Search found 1191 matches

by RvdH
2021-02-24 21:41
Forum: SpamAssassin implementation discussions
Topic: SA temp files picked up by windows defender virus
Replies: 10
Views: 83

Re: SA temp files picked up by windows defender virus

Maybe, (not tried myself as i am using ubuntu with SA 3.4.4) you could try to add TMPDIR to path.config included in Jam version

path.config

Code: Select all

DEF_RULES_DIR=./share/spamassassin
LOCAL_RULES_DIR=./etc/spamassassin
LOCAL_STATE_DIR=./share
by RvdH
2021-02-24 14:26
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

tunis wrote:
2021-02-24 14:01
Why have a hard coded limit?
ask martin :wink:

But as it currently has a hard limit and I tend to not changing the default behavior, the safest way is to overrule this with a INI setting (in my opinion)
Removing the hardcoded limit is another option, but this might trigger undesired behavior
by RvdH
2021-02-24 13:18
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

i don't know...thats why i am asking A decade ago when that code probably was written we all still dialed in with a 56k modem and a upper limit of 5MB was probably sufficient, but is it still today with Broadband cable, DSL? Bandwidth is cheaper nowadays, even for spammers That said, the code change...
by RvdH
2021-02-24 12:59
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

Would it be worth to add a option that can override this upper limit file size?
For example through INI (a setting that defaults to 5120 (5 x 1024 / 5MB) if not defined)
by RvdH
2021-02-23 16:27
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

Bingo :!: https://github.com/hmailserver/hmailserver/blob/master/hmailserver/source/Server/Common/AntiSpam/SpamProtection.cpp#L101-L108 L108 forces to pick the lower of the 2 values as maximum So this means 5MB (1024 * 5) is a hardlimit, maybe back in the day that code was sufficient, but nowadays ...
by RvdH
2021-02-23 15:33
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

Bingo :!: https://github.com/hmailserver/hmailserver/blob/master/hmailserver/source/Server/Common/AntiSpam/SpamProtection.cpp#L101-L108 L108 forces to pick the lower of the 2 values as maximum So this means 5MB (1024 * 5) is a hardlimit, maybe back in the day that code was sufficient, but nowadays 5...
by RvdH
2021-02-23 15:13
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

I got similar result as you...very strange

hMailServer "Maximum message size to scan" = 20480 (20Mb, right?)

I mailed myself a file 18407424 bytes (17,5 MB) big... nothing :?: :!:
by RvdH
2021-02-23 14:55
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

https://github.com/hmailserver/hmailser ... p#L99-L102

100000 (maxIterations) x 20000 (chunk) = 2000000000 Bits = 238.42 Megabytes
by RvdH
2021-02-23 14:15
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

Maybe a bits, bytes, megabytes inconsistently?

Like you already noticed hmailserver uses 1024 bytes as 1 mb, whereas spamassassin sees/uses 1000 bytes as 1 mb
by RvdH
2021-02-23 13:47
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

What do logs show? Is the message not sent or could it be that it is sent but it's spamassassin config not scanning (due to its own limit)? i was talking about direct incoming SMTP. i don't have extensive logging on (only SMTP and AWStats). my current setting for max. size is 8MB i.e. 8192 unfortun...
by RvdH
2021-02-23 13:39
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

What do logs show? Is the message not sent or could it be that it is sent but it's spamassassin config not scanning (due to its own limit)? i was talking about direct incoming SMTP. i don't have extensive logging on (only SMTP and AWStats). my current setting for max. size is 8MB i.e. 8192 unfortun...
by RvdH
2021-02-23 13:17
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

https://spamassassin.apache.org/full/3.4.x/doc/spamc.html default: 500 KB :?: Nah, i am wrong... hmailserver usus it's own (variation) of a spamc client not bound to spamc limitation(s) https://github.com/hmailserver/hmailserver/blob/master/hmailserver/source/Server/Common/AntiSpam/SpamAssassin/Spam...
by RvdH
2021-02-23 11:48
Forum: SpamAssassin implementation discussions
Topic: Max. size to send to Spamassassin
Replies: 34
Views: 206

Re: Max. size to send to Spamassassin

I suspect you never noticed the "Maximum message size to scan (KB)" setting under tab anti-spam? :lol:
by RvdH
2021-02-23 09:37
Forum: General discussions
Topic: eml files are not created
Replies: 13
Views: 120

Re: eml files are not created

Thanks all. I get it now. You are suggesting a workaround to forward the same email to local hmailserver account to get the eml files. But, do you know why eml files are not created when sending emails programmatically ? am i missing some settings (or) hmailserver doesn't support that ? They are cr...
by RvdH
2021-02-22 16:37
Forum: Off-topic discussions
Topic: 2fa for roundcube
Replies: 8
Views: 194

Re: 2fa for roundcube

No it is tied to the session as it seems, no method to tie it to device / browser
by RvdH
2021-02-22 15:39
Forum: Off-topic discussions
Topic: 2fa for roundcube
Replies: 8
Views: 194

Re: 2fa for roundcube

If anyone is interested, i found the reason TOTP created faulty QR codes, https://github.com/thomascube/roundcube-plugin-kolab-2fa/issues/7 Maybe a dumb question here, but when does this get used? Only on password change? Or is it like gmail where anytime a new browser/device is detected? Dumb ques...
by RvdH
2021-02-21 13:16
Forum: Off-topic discussions
Topic: 2fa for roundcube
Replies: 8
Views: 194

Re: 2fa for roundcube

If anyone is interested, i found the reason TOTP created faulty QR codes,
https://github.com/thomascube/roundcube ... a/issues/7
by RvdH
2021-02-16 13:59
Forum: General discussions
Topic: Long time for 250 Queued
Replies: 15
Views: 171

Re: Long time for 250 Queued

SQL server, the build-in one? ...how many accounts and domains?
The built-in SQL server isn't capable handling huge amounts of mail, domains and accounts..maybe you should consider moving to a "real" database
by RvdH
2021-02-14 12:32
Forum: General discussions
Topic: Checking for DKIM Signature
Replies: 21
Views: 381

Re: Checking for DKIM Signature

Do you have that many timeouts using spamassassin on Ubuntu? Not lots (but enough to annoy me) 8 so far this month 41 in January 2021 Might worth a try...i disabled LLMNR multicast on both Ubuntu as Windows Server 2019 as this slows down network significantly, lots to find on this on google https:/...
by RvdH
2021-02-14 09:18
Forum: General discussions
Topic: Checking for DKIM Signature
Replies: 21
Views: 381

Re: Checking for DKIM Signature

1 and 2 are related events If SpamAssassin times out, then no score is added to hMailserver. I score in SpammAssassin from negative 500, so SpamAssassin headers SHOULD always be added if the score is returned in time I have a SpamAssassin rule that adds 2.2 to all SpamAssassin scores, to match what...
by RvdH
2021-02-13 16:47
Forum: General discussions
Topic: Checking for DKIM Signature
Replies: 21
Views: 381

Re: Checking for DKIM Signature

SpamAssassin often doesn't respond in time, and hMailsevrer ignores the result If have a rule that checks for SPamAssassin header and adds a default SA score if no headers exist Whats your point? SpamAssassin often doesn't respond in time; Then you probably did not configure it properly, mine on av...
by RvdH
2021-02-12 15:14
Forum: General discussions
Topic: Checking for DKIM Signature
Replies: 21
Views: 381

Re: Checking for DKIM Signature

¯\_(ツ)_/¯ Regex is fun. You can do regex in spamassassin as well :mrgreen: The penalty on resources on the server for having scripts for everything is greater then if you let spamassassin take care of it Pish posh... on a small server, there is an inverse relationship between penalty and fun. :lol:...
by RvdH
2021-02-12 13:44
Forum: General discussions
Topic: Checking for DKIM Signature
Replies: 21
Views: 381

Re: Checking for DKIM Signature

palinka wrote:
2021-02-12 13:40
¯\_(ツ)_/¯ Regex is fun.
You can do regex in spamassassin as well :mrgreen:

The penalty on resources on the server for having scripts for everything is greater then if you let spamassassin take care of it
by RvdH
2021-02-12 12:19
Forum: General discussions
Topic: Checking for DKIM Signature
Replies: 21
Views: 381

Re: Checking for DKIM Signature

I really do not see what you are planning to do with this....such a waste of time and resources on the server
simply use SpamAssassin (which does a better job checking DKIM anyway) and set scores accordingly

DKIM_SIGNED
DKIM_VALID
DKIM_INVALID
DKIM_VALID_AU
by RvdH
2021-02-10 21:48
Forum: Off-topic discussions
Topic: 2fa for roundcube
Replies: 8
Views: 194

Re: 2fa for roundcube

Addendum, HOTP works with Google Authenticator mobile app, but not with Microsoft Authenticator mobile app...go figure :?: :!:

Ps, FYI running PHP and roundcube on IIS
by RvdH
2021-02-10 21:39
Forum: Off-topic discussions
Topic: 2fa for roundcube
Replies: 8
Views: 194

Re: 2fa for roundcube

Mmm, weird tried switching to HOTP driver and this works fine.... problem solved it seems :)
by RvdH
2021-02-10 21:37
Forum: Off-topic discussions
Topic: 2fa for roundcube
Replies: 8
Views: 194

2fa for roundcube

Anyone has any experience with adding 2fa for roundcube webmail? I would like to enable TOTP for use with Microsoft/Google Authenticator mobile app I found this plugin. https://github.com/thomascube/roundcube-plugin-kolab-2fa I installed the plugin, enabled composer and ran composer.phar to install ...
by RvdH
2021-02-08 18:14
Forum: General discussions
Topic: No WOL (Wake On LAN)
Replies: 6
Views: 193

Re: No WOL (Wake On LAN)

It is called hMailServer for a reason...
palinka is right, it is kinda ridiculous to use a server program and use WOL to wake it.... a server is supposed to run 24/7
by RvdH
2021-01-23 19:42
Forum: General discussions
Topic: SPF and Host not checked on EHLO <IP-Address>
Replies: 6
Views: 1322

Re: SPF and Host not checked on EHLO <IP-Address>

@Darksand
SorenR wrote:
2021-01-22 00:15
You will need the latest 5.6.8 B2534 from RvdH for hMailServer to interpret SPF macros like %{i}.
The above referenced 5.6.8 B2534 adds, besides the ability to interpret SPF macros like %{i}. the ability to output the actual SPF check result to the debug log as well (if enabled)
by RvdH
2021-01-23 13:19
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 234
Views: 220000

Re: Sub OnHELO(oClient) progress?

SorenR wrote:
2021-01-23 13:07
Am I the only one syncing your fork?
Yup, seems so ;)
by RvdH
2021-01-23 08:46
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 234
Views: 220000

Re: Sub OnHELO(oClient) progress?

Git ?? A bit harsh. 😂 Not you, silly... :mrgreen: RvdH's github repository. :idea: Oh well, should have quoted @RvdH and not you. Basically it is this commit (never released) and this one discussed here , which you both have merged inside your fork and compiled against OpenSSL 1.1.1i making it matc...
by RvdH
2021-01-22 23:41
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 234
Views: 220000

Re: Sub OnHELO(oClient) progress?

Oops, totally forgot to update this topic :oops: Latest is 5.6.8-B2534.28 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=1115&buildTypeId=HMai...
by RvdH
2021-01-22 15:34
Forum: Feature requests
Topic: RFC Local hostname in SMTP-protocol
Replies: 9
Views: 1729

Re: RFC Local hostname in SMTP-protocol

You can manually set hostname under SMTP settings, that already does the trick or am i missing something?
by RvdH
2021-01-18 16:27
Forum: SpamAssassin implementation discussions
Topic: Spamassassin (Jam 3.4.2) FromNameSpoof
Replies: 1
Views: 384

Re: Spamassassin (Jam 3.4.2) FromNameSpoof

v342.pre # This is the right place to customize your installation of SpamAssassin. # # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be # tweaked. # # This file was installed during the installation of SpamAssassin 3.4.2, # and contains plugin loading commands for the new plugins ad...
by RvdH
2020-12-24 10:55
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 234
Views: 220000

Re: Sub OnHELO(oClient) progress?

For debugging, you do not need that
by RvdH
2020-12-24 10:14
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 234
Views: 220000

Re: Sub OnHELO(oClient) progress?

gotspatel wrote:
2020-12-24 09:17
mattg wrote:
2020-12-24 08:38
You must use the same base version...
Sir can you please explain more. I am not an expert but can read and follow instructions.
It is in the readme :?
by RvdH
2020-12-24 09:43
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 234
Views: 220000

Re: Sub OnHELO(oClient) progress?

gotspatel wrote:
2020-12-24 09:17
mattg wrote:
2020-12-24 08:38
You must use the same base version...
Sir can you please explain more. I am not an expert but can read and follow instructions.
It is the readme :?
by RvdH
2020-12-23 21:08
Forum: General discussions
Topic: I am thinking that this should not be allowed
Replies: 22
Views: 4859

Re: I am thinking that this should not be allowed

OTOH if using Palinka's edition the IP address is blocked in firewall... Should be pretty terminal for the bot ;-) Even then simultaneous connections are possible before they get banned on firewall level :?: :!: @DrmCa Be warned, disconnect.exe or CPorts, will kill all instances of that ip...also t...
by RvdH
2020-12-23 20:45
Forum: General discussions
Topic: I am thinking that this should not be allowed
Replies: 22
Views: 4859

Re: I am thinking that this should not be allowed

This spammer is essentially DDOSing my server. I only noticed because I tried to load this log file into a database and it failed due to the primary key violation. Good thing it did because otherwise I would not have known. "DEBUG" 7332 "2020-12-21 13:46:17.037" "Client connection from 216.118.251....
by RvdH
2020-12-23 11:50
Forum: General discussions
Topic: Yet Another Smtp Limit
Replies: 9
Views: 1932

Re: Yet Another Smtp Limit

Thanks for thinking about it. I don't want to know their passwords or tell them which ones to use. They do have access to the hMailServer WebAdmin to change their passwords. I disallow access to WebAdmin , but i do allow access to roundcube (webmail) where they can change their password....benefit ...
by RvdH
2020-12-21 16:55
Forum: General discussions
Topic: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
Replies: 27
Views: 4457

Re: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)

No, but there it simply tells to log to awstats as rejected.... the "normal" reject message for virus found is elsewhere, you are clearly mixing things up
by RvdH
2020-12-21 16:28
Forum: General discussions
Topic: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
Replies: 27
Views: 4457

Re: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)

It ONLY has use for Awstats as i see it, this simply prevents your awstast statistics to go haywire when using global rules to delete mail That's BS! I had a look at the rest of the code. There are two other procedures built the same way calling "Events::FireOnDeliveryFailed", but they actually wor...
by RvdH
2020-12-21 09:09
Forum: General discussions
Topic: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
Replies: 27
Views: 4457

Re: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)

It ONLY has use for Awstats as i see it, this simply prevents your awstast statistics to go haywire when using global rules to delete mail
by RvdH
2020-12-20 19:00
Forum: General discussions
Topic: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
Replies: 27
Views: 4457

Re: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)

You do not get my point, there is NO reason to pass the HELO/EHLO greeting as a string....you ALREADY HAVE IT in oClient.HELO :)

[edit]
Ah, i see what you mean now... you don't pass the EHLO/HELO FCDN but only HELO/EHLO
by RvdH
2020-12-20 18:41
Forum: General discussions
Topic: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
Replies: 27
Views: 4457

Re: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)

The addition to OnHELO(oClient, sTxt) is to capture "HELO" or "EHLO". I can use this to shortcircuit my IDS code if a spammer first tries a EHLO and a second later a HELO. I'm not quite done with that as I need to add an indicator for STARTTLS active. What shortcut? it is triggered only on OnHelo, ...
by RvdH
2020-12-20 18:10
Forum: General discussions
Topic: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
Replies: 27
Views: 4457

Re: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)

Back to topic, i don't seem to have the problem you describe above, i do exactly the same, eg: spam forwarding and spam deleting using global rules
by RvdH
2020-12-20 18:07
Forum: General discussions
Topic: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
Replies: 27
Views: 4457

Re: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)

OnClientLogon(oClient, sPassword) :evil:
This is a no go for me, this can be abused to collect a full list of username/passwords if someone/something has gain unauthorized access to the server running hMailServer making it vulnerable
by RvdH
2020-12-20 18:00
Forum: General discussions
Topic: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
Replies: 27
Views: 4457

Re: Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)

You have been tinkering with the code to much? :mrgreen: Anyway...what is the purpose of "Add HELO/EHLO as string to OnHELO(oClient, sTxt)"? As you already have this value available through oClient.HELO this seems completely redundant And X-SA-hMail-Mail-From, is this related/similar as this https:/...
by RvdH
2020-12-11 17:25
Forum: General discussions
Topic: Spam being ignored +/-
Replies: 57
Views: 7727

Re: Spam being ignored +/-

Ok, so running the latest version cause the version i was on for a while started allowing a shit ton of spam through, almost like it started ignoring SpamAssassin (or SA wasnt working right). So the past few days ive been editing my rules, adding new one and have been getting progressively pissed. ...
by RvdH
2020-12-11 16:19
Forum: General discussions
Topic: Users can change their email
Replies: 5
Views: 1048

Re: Users can change their email

You also have a roundcube setting to prevent this, eg; Example // Set identities access level: // 0 - many identities with possibility to edit all params // 1 - many identities with possibility to edit all params but not email address // 2 - one identity with possibility to edit all params // 3 - on...
by RvdH
2020-12-02 17:06
Forum: General discussions
Topic: Add a Certificate / Reduce Blocing
Replies: 8
Views: 1590

Re: Add a Certificate / Reduce Blocing

Virinum wrote:
2020-12-02 08:30
No. It’s Microsoft. They have their own blocklist. Problem with Microsoft is that if someone from your subnet sends spam, Microsoft blocks the whole subnet.
Not entirely true, his IP is also on http://www.spamrats.com/bl?81.174.138.141
by RvdH
2020-11-30 09:51
Forum: General discussions
Topic: Possible bug regarding SMTP and bare LF's/CRLF's
Replies: 4
Views: 1231

Re: Possible bug regarding SMTP and bare LF's/CRLF's

The OP posted on Github that they think they may have downloaded a private x64 build from this forum somewhere, they aren't sure where I'm not sure that bare LFs are the only to trigger that check in hMailserver, but in saying that, I get too much grief when I enforce that switch so I 'allow incorr...
by RvdH
2020-11-28 23:18
Forum: General discussions
Topic: Sending | Receiving Issue
Replies: 13
Views: 2106

Re: Sending | Receiving Issue

I just installed this https://github.com/messagerie-melanie2/Roundcube-Skin-Melanie2-Larry-Mobile to support mobile devices... I thought you had to pay for that one. Rainloop has a mobile interface built in. Its pretty cool. More updated UI than RC. Plus a couple of nice features like hmailserver c...
by RvdH
2020-11-22 20:44
Forum: Scripting
Topic: Delete messages older than N days
Replies: 28
Views: 9288

Re: Delete messages older than N days

And i would remove the else statement after 'If ($DeleteMessageErrors -gt 0) {}', as you can have both errors AND still purge messages successfully (i got 1 error, on DeleteByDBID on my first successful run) If ($DeleteMessageErrors -gt 0) { ... } If ($TotalDeletedMessages -gt 0) { ... } same proba...
by RvdH
2020-11-22 20:24
Forum: Scripting
Topic: hMailServer Offsite Backup
Replies: 72
Views: 15735

Re: hMailServer Offsite Backup

"[INFO] No fresh pdates available" :lol: :mrgreen:
by RvdH
2020-11-22 20:16
Forum: Scripting
Topic: Delete messages older than N days
Replies: 28
Views: 9288

Re: Delete messages older than N days

I had more files being deleted after i changed the $PruneFolders to be lowercase and change the script like: $PruneFolders = "test 4th level|trash|deleted|junk|spam|(2020-[0-1][0-9]-[0-3][0-9])$|listmail|unsubscribes" If ($SubFolderName .ToLower() -match [regex]$PruneFolders) { If ($hMSIMAPFolder.Na...
by RvdH
2020-11-22 20:03
Forum: Scripting
Topic: Delete messages older than N days
Replies: 28
Views: 9288

Re: Delete messages older than N days

Got it (for real this time :) ) I had one domain without account (domain holds only a alias), wrap this around Do { $hMSAccount = $hMSDomain.Accounts.Item($IterateAccounts) ... } Until ($IterateAccounts -eq $hMSDomainAccountsCount) If ($hMSDomainAccountsCount -gt 0) { } And while we are on it, you ...
by RvdH
2020-11-22 13:51
Forum: Scripting
Topic: Delete messages older than N days
Replies: 28
Views: 9288

Re: Delete messages older than N days

Got it (for real this time :) ) I had one domain without account (domain holds only a alias), wrap this around Do { $hMSAccount = $hMSDomain.Accounts.Item($IterateAccounts) ... } Until ($IterateAccounts -eq $hMSDomainAccountsCount) If ($hMSDomainAccountsCount -gt 0) { } And while we are on it, you a...