Search found 228 matches

by ras07
2016-12-20 06:01
Forum: Off-topic discussions
Topic: Why RFC's arent always right.....
Replies: 7
Views: 4779

Re: Why RFC's arent always right.....

RFC's only matters to Programmers Well, I wouldn't go quite that far ... I'd imagine that many, if not most, "RFC compliant" services give users enough rope to hang themselves with in terms of configuring in a non-RFC compliant manner, if the user so chooses. Doing so is at your own risk, of course...
by ras07
2016-12-20 05:32
Forum: Off-topic discussions
Topic: Why RFC's arent always right.....
Replies: 7
Views: 4779

Re: Why RFC's arent always right.....

RFC5321 says that smtp banners should advertise the FQDN host name ... The words "must", "should", "may", etc. have very specific meanings in RFC language. Per RFC 2119 : 3. SHOULD This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to igno...
by ras07
2016-12-20 05:18
Forum: Feature requests
Topic: .ItemByName behavior
Replies: 7
Views: 3190

Re: .ItemByName behavior

I readily admit that I'm a bit vague on the distinction, but my understanding is that Nothing would be appropriate for an object, and Empty would be appropriate for a variant. Since the .ItemByName properties return an object (Application.Domains.ItemByName() returns a Domain object,for example) I a...
by ras07
2016-12-20 03:56
Forum: Feature requests
Topic: .ItemByName behavior
Replies: 7
Views: 3190

Re: .ItemByName behavior

That's a good idea - let me work on that.

In the larger scheme of things, I still think it would be a lot cleaner if all .ItemBy* properties would return Nothing if the item isn't found.

ras
by ras07
2016-12-19 23:48
Forum: Feature requests
Topic: .ItemByName behavior
Replies: 7
Views: 3190

Re: .ItemByName behavior

Yeah, that's about what I'm doing now ... but On Error Resume Next can hide a lot of programming faults or other errors that would otherwise be found. Would be a lot better not to have to use it.
by ras07
2016-12-19 20:37
Forum: Feature requests
Topic: .ItemByName behavior
Replies: 7
Views: 3190

.ItemByName behavior

Application.Settings.SecurityRanges.ItemByName(string sName) throws a "Subscript out of range" error if the named range doesn't exist. It looks like Domains.ItemByName and Accounts.ItemByAddress exhibit the same behavior; I haven't tested other .ItemBy... properties. Would it be possible to instead ...
by ras07
2016-12-19 19:59
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 51
Views: 27150

Re: Script to rename Attachment file type

Interesting ... I've seen something that sounds similar, although it has nothing to do with a script. When the virus checker (ClamAV) detects a virus, I have it set to delete attachments. When it does this it sometimes munges the message body. Here's a snipped of a raw .eml file that's been munged: ...
by ras07
2016-12-07 06:30
Forum: Scripting
Topic: Can you add headers in OnSMTPData?
Replies: 15
Views: 6246

Re: Can you add headers in OnSMTPData?

estradis wrote:We only ban intrusion attempts, not spammers. Maybe that's the difference.
Ah - yeah, that makes sense. (It's what I ended up doing as well.)
by ras07
2016-12-06 00:58
Forum: Scripting
Topic: Can you add headers in OnSMTPData?
Replies: 15
Views: 6246

Re: Can you add headers in OnSMTPData?

Interesting ... we have dramatically different spam experiences. A couple months ago I decided to auto-ban the most blatant of spamming IPs ... only those IPs who are on many different DNSBLs, and that repeatedly sent us only obvious spam. In less than 2 weeks the autoban list exceeded 3,000 entries...
by ras07
2016-11-28 08:47
Forum: General discussions
Topic: {REQ}php mail sender local
Replies: 3
Views: 2661

Re: {REQ}php mail sender local

https://www.hmailserver.com/documentation/latest/?page=reference_ssltls describes the various connection security options. https://www.hmailserver.com/documentation/latest/?page=reference_tcpipport describes how to set them. For STARTTLS (either optional or required) you will need an SSL certificate...
by ras07
2016-11-27 05:29
Forum: General discussions
Topic: {REQ}php mail sender local
Replies: 3
Views: 2661

Re: {REQ}php mail sender local

It looks like your sender (webmail?) is configured to require STARTTLS, but your server is not configured to accept STARTTLS. What exactly are you trying to do? In general, there's not a lot to be gained by encrypting localhost communication. Your IP is in the range used by a some pretty notorious I...
by ras07
2016-11-27 00:20
Forum: General discussions
Topic: Anti Spam BLACK LIST
Replies: 11
Views: 3349

Re: Anti Spam BLACK LIST

You can write a script to search through the headers looking for a particular domain(s), and then do what you want with it.

If you provide a little more detail on exactly what you want to do, we can probably point you in the right direction.
by ras07
2016-11-25 05:46
Forum: Scripting
Topic: Can you add headers in OnSMTPData?
Replies: 15
Views: 6246

Re: Can you add headers in OnSMTPData?

Yep, saw that. Was sort of assuming that was a cascading problem from the extra NL (figuring the scan for headers stopped at the double NL), but that's a presumption.
by ras07
2016-11-25 05:11
Forum: Scripting
Topic: Can you add headers in OnSMTPData?
Replies: 15
Views: 6246

Re: Can you add headers in OnSMTPData?

It's not that critical. I'm using RvdH's OnHELO mod, described at www.hmailserver.com/forum/viewtopic.php?t=30193 . There's certain HELO responses that are clearly spam-related, and I'd like to drop (and ban) them immediately. There are other responses that are technically invalid, but I don't want ...
by ras07
2016-11-25 04:44
Forum: General discussions
Topic: Qestion. How Can I SetUp local machine mail server sending outside to gmail hotmail etc..
Replies: 7
Views: 2229

Re: Qestion. How Can I SetUp local machine mail server sending outside to gmail hotmail etc..

With or without business-class broadband, virtually any provider will have an email gateway you can use for outbound SMTP. But, as jimimaseye points out, there's a fair bit of relatively esoteric knowledge necessary to run your own email server - it's not overly hard, but it is fairly involved. It's...
by ras07
2016-11-23 22:33
Forum: Scripting
Topic: Can you add headers in OnSMTPData?
Replies: 15
Views: 6246

Re: Can you add headers in OnSMTPData?

You do not want to modify oMessage in any way at this stage. Use the next event. Actually that's kind of the motivation for what I'm trying to do. I'd like to do some checks in OnSMTPData, and then take action based on those checks in OnAcceptMessage, without re-executing the OnSMTPData checks. Glo...
by ras07
2016-11-23 22:10
Forum: Feature requests
Topic: OnSMTPError event handler
Replies: 1
Views: 2087

OnSMTPError event handler

I think would be very useful to call a handler when a 500-level SMTP response is sent ("530 SMTP authentication is required", "503 Must have sender and recipient first", etc). Both the error code and the response message would need to be passed to the handler (some codes, 503 for example, can get se...
by ras07
2016-11-23 21:07
Forum: Scripting
Topic: Can you add headers in OnSMTPData?
Replies: 15
Views: 6246

Re: Can you add headers in OnSMTPData?

Sorry to bump, but does anyone know if this ought to work? If it should, I'll open a defect ... I've done quite a bit of testing with it and it consistently does this.
by ras07
2016-11-21 23:43
Forum: General discussions
Topic: question: notification for infected mails
Replies: 18
Views: 4948

Re: question: notification for infected mails

jimimaseye's reply is probably best, but if you still want to go the forwarding route, just add a rule criteria that says Recipient List does not include <mirroraddress.domain.com>.
by ras07
2016-11-21 07:05
Forum: SpamAssassin implementation discussions
Topic: Anti Spam Settings
Replies: 68
Views: 111008

Re: Anti Spam Settings

I use all of these, and not all are traditional URIBL or SURBL lists multi.surbl.org dbl.spamhaus.org uribl.spameatingmonkey.net uribl.swinog.ch ubl.nszones.com I've tried uribl.swinog.ch in the past, but hardly ever got any hits with it. Is there something special you need to do with it? The instr...
by ras07
2016-11-19 18:11
Forum: General discussions
Topic: Global and Local rules both moving email
Replies: 5
Views: 2031

Re: Global and Local rules both moving email

That depends; do local rules get executed against new messages in the user's account, or new messages in the Inbox. Appears to be the latter.
by ras07
2016-11-19 08:03
Forum: Scripting
Topic: Can you add headers in OnSMTPData?
Replies: 15
Views: 6246

Can you add headers in OnSMTPData?

I know the message properties are only partially populated when OnSMTPData fires. Should one expect to be able to add or modify headers and then execute oMessage.Save ? This forum post https://www.hmailserver.com/forum/viewtopic.php?t=28131 would seem to indicate that you can. But when I try it, it ...
by ras07
2016-11-19 05:02
Forum: General discussions
Topic: Global and Local rules both moving email
Replies: 5
Views: 2031

Re: Global and Local rules both moving email

mattg wrote:I suspect that account level rules only work on mail intended for the inbox
Yeah, that appears to be the case. Bummer.
by ras07
2016-11-19 04:59
Forum: Scripting
Topic: Way to auto-ban unknow user
Replies: 10
Views: 8895

Re: Way to auto-ban unknow user

Alternately, if you cheat a little with some third-party tools you can pretty simply monitor the log file to do this. Make sure SMTP logging is on, then do something like this: Sub OnAcceptMessage (oClient, oMessage) Dim LogFileName, NowTime NowTime = Now LogFileName = "c:\HMailServer\Logs\hmailserv...
by ras07
2016-11-19 04:25
Forum: Scripting
Topic: Way to auto-ban unknow user
Replies: 10
Views: 8895

Re: Way to auto-ban unknow user

I think you actually could do it without resorting to monitoring the log files. Create a "catch-all" account (Advanced tab under Domain settings). In OnAcceptMessage save the sender's IP address to a header, like so: Sub OnAcceptMessage (oClient, oMessage) oMessage.HeaderValue("X-Sender-IP") = oClie...
by ras07
2016-11-19 03:36
Forum: General discussions
Topic: Global and Local rules both moving email
Replies: 5
Views: 2031

Global and Local rules both moving email

If a Global rule is triggered that causes an email to be moved to a particular IMAP folder (not to a different user or to a global folder) can a Local rule later be applied that moves it to a different IMAP folder? From experimenting (with Debug logging on), the answer appears to be no. (In fact, I'...
by ras07
2016-11-01 17:30
Forum: General discussions
Topic: Use Let's Encrypt Certificates with HM
Replies: 55
Views: 27497

Re: Use Let's Encrypt Certificates with HM

Does anyone know of a script to automate obtaining and renewing certs for hmailserver? I'm not the expert, but as I understand it, the process for obtaining and renewing Let's Encrypt certs requires an HTTPS server - so to my knowledge there's not a way to automate it with hMS alone. For the time b...
by ras07
2016-08-31 19:53
Forum: Scripting
Topic: General question: passing info from one On* sub to another
Replies: 0
Views: 2203

General question: passing info from one On* sub to another

In general, what's the best practice for maintaining context between fired events? For example, I have some processing in OnAcceptMessage that could be more effective in OnSMTPData, but later I'll want to access that info in OnAcceptMessage. I could write the context out to a file or database based ...
by ras07
2016-08-31 18:55
Forum: Feature requests
Topic: API to detect STARTTLS
Replies: 2
Views: 2336

Re: API to detect STARTTLS

I added a poll question and some extra bits Tell me if you would like the question changed Thanks! Really, I can't see the need for any more than knowing whether it was encrypted or not, but perhaps someone else will. Perhaps just generalize the question to something like "I would like access to in...
by ras07
2016-08-31 03:49
Forum: Scripting
Topic: What's the RIGHT way to call an external program?
Replies: 4
Views: 3186

Re: What's the RIGHT way to call an external program?

That's pretty dramatic overkill! Also doesn't help if I don't have access to the source of the program I'm calling.
by ras07
2016-08-31 00:19
Forum: Scripting
Topic: What's the RIGHT way to call an external program?
Replies: 4
Views: 3186

Re: What's the RIGHT way to call an external program?

(I think you'd need to instantiate another WScript.Shell object; I didn't try it, but I think calling Exec and Run on the same WScript.Shell instance will cause trouble.) But in any case, making a second Exec/Run call to wait for the first is pretty heavyweight ... setting up and tearing down the co...
by ras07
2016-08-30 23:45
Forum: General discussions
Topic: something@mydomain.com send me a SPAM.
Replies: 5
Views: 2770

Re: something@mydomain.com send me a SPAM.

or even better, require authentication from local to local e-mailadresses in your IP Ranges The IP range settings trigger on the SMTP envelope info, yes? So the envelope could say it's coming from anybody@anywhere.com, whereas the header info (which is what the users' email clients see) says it's f...
by ras07
2016-08-30 23:22
Forum: Scripting
Topic: What's the RIGHT way to call an external program?
Replies: 4
Views: 3186

What's the RIGHT way to call an external program?

TL;DR: how to you release a time slice when you need to wait for an external program to complete? As far as I can tell, VBScript has 2 ways to call an external program: WshShell.Exec and WshShell.Run. WshShell.Run will block (possibly forever) waiting for the called program to return. It also doesn...
by ras07
2016-08-30 20:50
Forum: Feature requests
Topic: API to detect STARTTLS
Replies: 2
Views: 2336

API to detect STARTTLS

It would nice to be able to know whether the in the incoming SMTP session was encrypted (for example, as a property in the Client object).

In my experience STARTTLS sessions are rarely spam; it would be cool to be able to utilize that knowledge in a spam strategy.
by ras07
2016-08-30 20:38
Forum: Scripting
Topic: Detect STARTTLS session in script?
Replies: 2
Views: 1662

Re: Detect STARTTLS session in script?

I went ahead and parsed the log file for now ... it's slow and a little error prone (not to mention inelegant) but probably fine for my low-volume server.

It could be a convenient feature to have in the future, though ... I'll add a feature request.
by ras07
2016-08-28 01:19
Forum: Scripting
Topic: Detect STARTTLS session in script?
Replies: 2
Views: 1662

Detect STARTTLS session in script?

I've noticed that incoming SMTP sessions that utilize STARTTLS are rarely spam. I'd like to incorporate that knowledge in my spam strategy, but I haven't found a way to detect that from a script. Is there a way to tell from a script whether the SMTP session was encrypted (and possibly what TLS versi...
by ras07
2016-08-12 09:36
Forum: General discussions
Topic: Use Let's Encrypt Certificates with HM
Replies: 55
Views: 27497

Re: Use Let's Encrypt Certificates with HM

No I was planning to use only one 'Let's Encrypt' SAN Certificate with alternative DNS names ... The way i was thinking the 'Let's Encrypt' SAN Certificate with alternative DNS names would return valid certificate to a client when automatically configuring their Outlook/Thunderbird accounts. Did yo...
by ras07
2015-03-31 20:30
Forum: General discussions
Topic: Minimalist backup routine
Replies: 18
Views: 4105

Re: Minimalist backup routine

Thanks - I agree there should be some error checking. I'll definitely add that. I've played pretty extensively with Robocopy and I just can't get it to perform. I don't know why but scanning the directory structure takes forever. Here's an output example: Total Copied Skipped Mismatch FAILED Extras ...
by ras07
2015-03-31 06:52
Forum: General discussions
Topic: Minimalist backup routine
Replies: 18
Views: 4105

Re: Minimalist backup routine

I'm restarting hMailServer before copying the data directory on purpose. I just don't want the server down that long. I'm trying to understand how dangerous that is. I tried a bunch of copy options including Robocopy, and basically nothing was faster than 7za - even when there was nothing to update ...
by ras07
2015-03-31 06:03
Forum: General discussions
Topic: Minimalist backup routine
Replies: 18
Views: 4105

Minimalist backup routine

Since upgrading to 5.6.2 I've been having sporadic trouble with the built-in backup system. It appears to fail when a .eml file gets moved/deleted between the backup of the account files and the data backup (which can be 10 or 15 minutes on my system with ~2 GB of data). I'm nearly certain this is n...
by ras07
2014-11-01 08:24
Forum: Feature requests
Topic: Look up domains from sender address against SURBL lists
Replies: 2
Views: 2198

Re: Look up domains from sender address against SURBL lists

percepts wrote:I think running spamassassin will do this for you.
Sure, but hMailServer's anti-spam capability is very nearly good enough that you don't need SA.
by ras07
2014-10-29 22:27
Forum: Feature requests
Topic: Look up domains from sender address against SURBL lists
Replies: 2
Views: 2198

Look up domains from sender address against SURBL lists

In anecdotal testing, it looks like scanning oMessage.From / oMessage.FromAddress for domains and looking those domains up on the SURBL lists would catch quite a bit of spam that doesn't have any links in the message body.
by ras07
2014-10-29 22:21
Forum: Feature requests
Topic: SURBL Servers Need Configurable "Expected result" messages
Replies: 6
Views: 4876

Re: SURBL Servers Need Configurable "Expected result" messag

SorenR wrote: Some of it I guess you can build with a script in hMailServer....
I had the same thought, and started building such a script last night ... performing the lookup is the easy part ... but it turns out that just finding the domain names to query in the message body is non-trivial.
by ras07
2014-10-29 07:56
Forum: Feature requests
Topic: Ability to specify DNS server for blacklists
Replies: 1
Views: 2862

Ability to specify DNS server for blacklists

Some blacklists won't work with some DNS servers - for example, uribl.com blocks major DNS providers, so if you use Google or OpenDNS you can't use uribl.com. They want to you make the request directly to one of their mirrors. As a demonstration: C:\>nslookup 2.0.0.127.black.uribl.com Server: google...
by ras07
2014-10-29 07:42
Forum: Feature requests
Topic: Long-term roadmap suggestions?
Replies: 91
Views: 51660

Re: Long-term roadmap suggestions?

Better and simpler backup and restore. Better restore for single messages. I think the hmail backup works OK as is. It is really only designed, I think, for smaller setups. Larger setups should be using other using other means such as disk mirroring or DB and Datafolder backups off site. I agree wi...
by ras07
2014-10-29 07:26
Forum: Feature requests
Topic: SURBL Servers Need Configurable "Expected result" messages
Replies: 6
Views: 4876

Re: SURBL Servers Need Configurable "Expected result" messag

It would be nice to add the following parameters to the blacklist configuration for example.dnsbl.tld: Response: 127.0.0.1 Score: 0 Response: 127.0.0.2 Score: 10 Response: 127.0.0.3-4 Score: 5 Response: 127.0.0.10||127.0.0.13 Score: 6 I agree this would be handy, but as long as you had the ability ...
by ras07
2014-08-26 08:16
Forum: Scripting
Topic: Message.Copy trouble
Replies: 8
Views: 8657

Re: Message.Copy trouble

I don't think it's permissions - I'm authenticating with the Administrator account. For clarity I restructured it as follows - no errors are logged: Sub OnDeliverMessage(oMessage) Dim oApp, oDom, oAcct, oFldr Set oApp = CreateObject("hMailServer.Application") Call oApp.Authenticate(hMSAuthUser, hMSA...
by ras07
2014-08-26 07:01
Forum: Scripting
Topic: Message.Copy trouble
Replies: 8
Views: 8657

Re: Message.Copy trouble

It's not working on OnDeliverMessage either.
mattg wrote:is oMsg what is in the brackets of the sub??
Sorry, oMsg should be oMessage (the parameter for, in this case, OnDeliverMessage).
by ras07
2014-08-26 05:20
Forum: Scripting
Topic: Message.Copy trouble
Replies: 8
Views: 8657

Message.Copy trouble

I'm having trouble with the Message.Copy method. First off, I'm trying to call it in OnAcceptMessage, and I'm not positive this is legit (but I can't find any documentation that it isn't). If the message has to already exist in one IMAP folder before you copy it to another, then that's my problem, a...
by ras07
2013-08-03 19:00
Forum: Scripting
Topic: Random error with AddRecipient
Replies: 6
Views: 3279

Re: Random error with AddRecipient

Hmmm ... I didn't think that was possible, since those values come directly from sender of the incoming message (called from OnAcceptMessage). But it looks like in some cases oMessage.From is set to an email address (rather than a name) and oMessage.FromAddress is blank - not what I expected. Appare...
by ras07
2013-08-02 05:46
Forum: Scripting
Topic: Random error with AddRecipient
Replies: 6
Views: 3279

Re: Random error with AddRecipient

Wow ... no ideas?
by ras07
2013-07-30 00:22
Forum: Scripting
Topic: Random error with AddRecipient
Replies: 6
Views: 3279

Random error with AddRecipient

I have a script that sends an email to users when they are approaching their quota. A snippet: Dim WarnMsg Set WarnMsg = CreateObject("hMailServer.Message") Call WarnMsg.AddRecipient(MiscreantName, MiscreantAddress) ' added the following debugging code - LogStr just writes to a timestamped log file ...
by ras07
2012-09-12 18:22
Forum: Feature requests
Topic: Negative Spam Score [90%]
Replies: 18
Views: 15725

Re: Negative Spam Score

Sounds good Bill - let me know if you want someone to test it out. I'm running the latest beta already.
by ras07
2012-09-12 00:08
Forum: Feature requests
Topic: Negative Spam Score [90%]
Replies: 18
Views: 15725

Re: Negative Spam Score

I know this is quite an old thread, but I'd like to reiterate this request. There are now a number of free whitelisting DBL's (DunBL's?) around (hostkarma.junkemailfilter.com for instance) so this would be really handy. I haven't looked at the code so I don't want to presume, but it's possible that ...
by ras07
2012-09-10 04:02
Forum: General discussions
Topic: Possible restore glitchlet
Replies: 2
Views: 1370

Re: Possible restore glitchlet

Yep, that's the one
by ras07
2012-09-10 00:22
Forum: General discussions
Topic: Possible restore glitchlet
Replies: 2
Views: 1370

Possible restore glitchlet

Just noticed an oddity on a 5.3.2-B1769 restore ... after the restore, the SSL Certificate field was blank on the TCP/IP port configuration screens for 465/SMTP, 993/IMAP, and 995/POP3. As a result, none of the secure protocols worked after the restore. Backup was also from 5.3.2-B1769, and I manual...
by ras07
2012-09-09 05:44
Forum: General discussions
Topic: upgrade advice
Replies: 3
Views: 1446

Re: upgrade advice

Good to hear.

Any issues with going straight from 5.3.2 to the latest beta, or should I upgrade to 5.3.3 first? (I didn't do that on my test machine, and didn't notice any issues.)
by ras07
2012-09-09 04:47
Forum: General discussions
Topic: upgrade advice
Replies: 3
Views: 1446

upgrade advice

I'm planning an upgrade from 5.3.2-B1769 using embedded MSSQL CE to something more recent using MySQL 5.5.27. (More details in this thread .) This will be a low-volume production mail server (around 200-300 msgs / day). I was planning to go to the latest beta build, and I've been playing with it on ...
by ras07
2012-09-07 05:12
Forum: General discussions
Topic: Upgrade strategy
Replies: 4
Views: 2188

Re: Upgrade strategy

which embedded database are you currently using? I'm embarrassed to say that I didn't realize there was more than one embedded database option. The diagnostics report: Database type: MSSQL Compact If you can use the internal backup, then it doesn't matter and what you say should work. Got it. Inter...
by ras07
2012-09-07 03:36
Forum: General discussions
Topic: Upgrade strategy
Replies: 4
Views: 2188

Upgrade strategy

I'm currently running: - 5.3.2-B1769 - embedded db - on Windows 7 x64 on physical hardware I'm planning to move to: - latest beta build - MySQL 5.5.27 - on Windows XPsp3 x86 running in a virtual machine on VMWare Paths will remain the same. My data directory is about 1.1 GB right now, but occasional...