Search found 227 matches

by ras07
2010-05-11 17:50
Forum: Scripting
Topic: Newbie: send Quota-Message to Client
Replies: 12
Views: 7124

Re: Newbie: send Quota-Message to Client

Hi, @rus07: Thank you a lot. Your script works fine, that was what I´m looking for. Only this line throws an error: LogStr("Sending mailbox quota warning to " & WarnMsg.Recipients(0).Address & _ " (" & oAcct.QuotaUsed & "%)") Error: "ERROR" 480 "2010-05-11 09:48:17.543" "Script Error: Source: Laufz...
by ras07
2010-05-10 21:10
Forum: Scripting
Topic: Newbie: send Quota-Message to Client
Replies: 12
Views: 7124

Re: Newbie: send Quota-Message to Client

I recently looked for such a script; there was a v4 one, but it was rather involved. It looked like it would be a lot easier in v5, so I wrote one: '==================================================================================== Sub WarnQuotaMiscreants(MiscreantName, MiscreantAddress) '--------...
by ras07
2010-05-08 00:39
Forum: General discussions
Topic: Setting up a browser based client for hmailserver
Replies: 27
Views: 7624

Re: Setting up a browser based client for hmailserver

If you're looking for an easier starting point (if you're having troubles getting them to play nicely) maybe consider a kit like: http://sourceforge.net/projects/apachephpmysql/Bill Ouch, Bill: that package, and the underlying components, are six years old. :shock: http://sourceforge.net/projects/w...
by ras07
2010-05-08 00:18
Forum: General discussions
Topic: Getting blacklisted - unsure how to fix
Replies: 2
Views: 905

Re: Getting blacklisted - unsure how to fix

http://whatismyipaddress.com/blacklist-check is a good resource; it will automatically check your IP against 100 or so blacklists. Then you can address the ones that are listing you. Bigger concern, of course, is to address the underlying cause of you getting blacklisted in the first place. Could be...
by ras07
2010-05-08 00:13
Forum: General discussions
Topic: Configuration problem for Local SMTP and Remote SMTP
Replies: 18
Views: 3747

Re: Configuration problem for Local SMTP and Remote SMTP

There is one more thing to try, and that is to using your ISP (not Godaddy - I'm talking about whoever provides your actual internet service, with dynamic IP) as a relay. Some ISP's will throttle this usage, some won't. Worth a try.
by ras07
2010-05-06 02:28
Forum: General discussions
Topic: Configuration problem for Local SMTP and Remote SMTP
Replies: 18
Views: 3747

Re: Configuration problem for Local SMTP and Remote SMTP

I think you will have to explain more about your environment and what kinds of problems (error messages, logs, etc) you are having before anyone can help with specifics. But, in general, if you don't have a static IP that reverse-DNS resolves to your domain name, you will probably have trouble sendi...
by ras07
2010-05-05 01:03
Forum: Feature requests
Topic: Honeypot E-mail Address
Replies: 7
Views: 5540

Re: Honeypot E-mail Address

Well, I did the logfile analysis and my hypothesis was wrong; I get plenty of legitimately-addressed spam from the same IP's that are just guessing at account names. So there's definitely value in the idea. BUT, there's a big snag in scripting this - to identify the IP address as the sender of spam ...
by ras07
2010-05-04 07:57
Forum: Feature requests
Topic: Honeypot E-mail Address
Replies: 7
Views: 5540

Re: Honeypot E-mail Address

I think the idea would be to target addresses that you know are only used by spammers. For example, about 70% of the spam hitting my server is addressed to unknown users, and 85% of that unknown-user spam comes to just 25 addresses (which have never been legit active accounts on this domain). So I h...
by ras07
2010-05-04 04:15
Forum: General discussions
Topic: Windows 7 - not supported but can work?
Replies: 5
Views: 2425

Re: Windows 7 - not supported but can work?

But as I say, any other pointers welcomed! No real pointers per se; all I can tell you is that I run hMailServer on 64-bit Win7 with no issues. I do have it installed to c:\hMailServer rather than the default c:\Program Files (x86)\hMailServer, but that was more personal preference than any permiss...
by ras07
2010-05-03 18:43
Forum: General discussions
Topic: Someone uses my hms as a spam server
Replies: 11
Views: 2965

Re: Someone uses my hms as a spam server

Yep. In fact, a script to reject an SMTP session if a given authenticated user attempts to send too much email in too short a time wouldn't be hard. Maybe I'll take that on as a project ;-) Looks like others are way ahead of me; there's already scripts for this in the user contributed scripts secti...
by ras07
2010-05-03 18:14
Forum: General discussions
Topic: Someone uses my hms as a spam server
Replies: 11
Views: 2965

Re: Someone uses my hms as a spam server

One of big reasons for my move to hMail is because of autoban but that script to track messages caught my eye & figure there are a lot of possibilities there including getting an email alert if a particular user account sends too many emails which should help catch it sooner and hopefully avoid bei...
by ras07
2010-05-03 18:07
Forum: General discussions
Topic: What's wrong?
Replies: 9
Views: 3074

Re: What's wrong?

One note, I tried the telnet mail.hmailserver.com 25, and it didn't connect. As noted earlier, that's very common for a residential ISP, but ... So I tried my ISP's mail server (telnet smtp.myisp.com 25), and it wouldn't let me connect to that one either. THAT is very odd. How can you send email th...
by ras07
2010-05-03 17:53
Forum: General discussions
Topic: Someone uses my hms as a spam server
Replies: 11
Views: 2965

Re: Someone uses my hms as a spam server

Sub OnAcceptMessage(oClient, oMessage) Dim fs, File Set fs = CreateObject("Scripting.FileSystemObject") If fs.FileExists ("C:\Program Files\hMailServer\Logs\users.log") then Set File = fs.OpenTextFile("C:\Program Files\hMailServer\Logs\users.log", 8, true, -1) Else Set File = fs.CreateTextFile("C:\...
by ras07
2010-05-03 17:32
Forum: General discussions
Topic: Someone uses my hms as a spam server
Replies: 11
Views: 2965

Re: Someone uses my hms as a spam server

That stinks, seems one or more of your accounts has been compromised. See how they authenticate? Too bad from those logs you can't see which user it is for sure ... It actually is logged (SMTP logging), but it's just encoded (not encrypted). This line shows the account: "SMTPD" 2472 80009 "2010-05-...
by ras07
2010-05-02 04:29
Forum: General discussions
Topic: DNSBL query needs to check against all returned values
Replies: 11
Views: 3123

Re: DNSBL query needs to check against all returned values

martin wrote:This will be fixed during the weekend. A new 5.3 version will be up soon.
Woohoo! Looking forward to it.

Thanks, Martin!

ras
by ras07
2010-04-29 23:38
Forum: Scripting
Topic: Identify authenticated users?
Replies: 1
Views: 1159

Identify authenticated users?

Is it possible to tell from within a script whether the SMTP session is authenticated?

Is Client.User set only when the SMTP session is authenticated? It seems to be blank most of the time.
by ras07
2010-04-29 22:15
Forum: General discussions
Topic: BounceBack Action Rule
Replies: 3
Views: 1251

Re: BounceBack Action Rule

When you say "bounce back the email" do you mean rejecting the SMTP session? If so, a simplistic script to do that might look like ... File: Events/EventHandlers.vbs Sub OnAcceptMessage (oClient, oMessage) If InStr(oMessage.FromAddress, "baddomain.com") <> 0 Then Result.Value = 2 Result.Message = "M...
by ras07
2010-04-27 19:58
Forum: Scripting
Topic: HELO response in script?
Replies: 3
Views: 2068

Re: HELO response in script?

Does the info placed in the Received: header come from the HELO|EHLO response, or from a reverse DNS lookup?
by ras07
2010-04-27 05:43
Forum: General discussions
Topic: DNSBL query needs to check against all returned values
Replies: 11
Views: 3123

Re: DNSBL query needs to check against all returned values

Since there weren't any strong opinions one way or the other, I'll post this as a defect, since it doesn't behave as expected.
by ras07
2010-04-26 22:04
Forum: Scripting
Topic: Recipient.IsLocalUser
Replies: 6
Views: 2686

Re: Recipient.IsLocalUser

You could create a new message, call AddRecipient and then use the recipients collection to determine what the final address was. If I remember it correctly. A bit hackish, but kind of simple. Excellent! Perhaps just a bit "hackish" as you say, but it is simple, and let me get rid of 70 lines of tr...
by ras07
2010-04-26 19:29
Forum: General discussions
Topic: Rules
Replies: 7
Views: 1330

Re: Rules

Gomjaba wrote:However, every time I create a forward rule (or more than one) it takes about 2 minutes until the email arrives. "
Could it be that the delay is exactly one minute? If so, I believe this is by design, and cannot be modified. See this thread

ras
by ras07
2010-04-26 19:18
Forum: Scripting
Topic: HELO response in script?
Replies: 3
Views: 2068

HELO response in script?

Is there any way to access the HELO response in a script?
by ras07
2010-04-23 20:27
Forum: General discussions
Topic: setting up POP3 account on iphone
Replies: 3
Views: 1413

Re: setting up POP3 account on iphone

I concur; POP3 on an iPhone (any mobile device really) is just a bad idea. Even when the mobile device is well-behaved with POP3 (and the iPhone isn't), there's still just too many opportunities for access conflicts.

ras
by ras07
2010-04-22 05:11
Forum: General discussions
Topic: DNSBL query needs to check against all returned values
Replies: 11
Views: 3123

Re: DNSBL query needs to check against all returned values

Nope, that's the version I'm using. The change you mention was to be able to assign multiple (or a range of) Expected Results. What I'm saying is that some DBL's send back multiple actual results. So hMailServer needs to compare each actual result with range or value(s) in the Expected Result field.
by ras07
2010-04-22 05:06
Forum: General discussions
Topic: NOT operator or negative spam scoring for DNSBL?
Replies: 4
Views: 1460

Re: NOT operator or negative spam scoring for DNSBL?

OK, here's the script I mentioned. This script will let you assign as many different spam scores to as many different countries as you want, with only one DNS lookup. Basically, this script: - Does an NSLOOKUP against zz.countries.nerd.dk with the IP of the sending host - Looks up the result code fr...
by ras07
2010-04-21 22:12
Forum: General discussions
Topic: DNSBL query needs to check against all returned values
Replies: 11
Views: 3123

DNSBL query needs to check against all returned values

Some DNS blacklists (dnsbl.sorbs.net and hostkarma.junkemailfilter.com, to name two) can return more than one address: "DNS lookup: 214.101.231.220.safe.dnsbl.sorbs.net, 2 addresses found: 127.0.0.7, 127.0.0.6, Match: True" "DNS lookup: 253.163.241.195.safe.dnsbl.sorbs.net, 2 addresses found: 127.0....
by ras07
2010-04-21 09:35
Forum: Scripting
Topic: Doc error?
Replies: 2
Views: 1173

Re: Doc error?

Ah, I'm reversing name and type. My bad.
by ras07
2010-04-21 07:32
Forum: Scripting
Topic: Doc error?
Replies: 2
Views: 1173

Doc error?

I think I've run across an out-of-date doc page. I'm running 5.3.2/1769. I was trying to write a script that walked the header list. This page talks about the MessageHeaders and MessageHeader object, but I couldn't get them to work. I ran across a script somewhere something that referred to Headers ...
by ras07
2010-04-20 18:47
Forum: Scripting
Topic: Why doesn't this work?
Replies: 8
Views: 3115

Re: Why doesn't this work?

So I tried your suggestion; it's not thread-safe. OpenTextFile fails with

Code: Select all

Error: 800A0046 - Description: Permission denied
if another thread is simultaneously writing to the file.

Does anyone know how I can get the script in my original post (which works standalone) to work in hMailServer?

ras
by ras07
2010-04-20 18:29
Forum: Scripting
Topic: Code in main body of EventHandlers.vbs
Replies: 3
Views: 2252

Re: Code in main body of EventHandlers.vbs

Like I said, I've tried it and it seems to work, just asking if there are any gotchas to know about. I'll (at least partly) answer my own question; it works, but doesn't accomplish the goal. What I was hoping is that I could load a text file into memory and keep it there, thus avoiding re-reading i...
by ras07
2010-04-20 07:46
Forum: Scripting
Topic: Why doesn't this work?
Replies: 8
Views: 3115

Re: Why doesn't this work?

You don't flush or close the file?
by ras07
2010-04-20 07:27
Forum: Scripting
Topic: General VBscript memory question
Replies: 7
Views: 3014

Re: General VBscript memory question

And by embedded you mean the default MS SQL Express version that comes with Ver 5.x + of hMailserver Yeah, that one perhaps the database is the problem. MS SQL does like to quarantine memory dynamically. Perhaps just having some scripts running will make it want to quarantine more memory... Entirel...
by ras07
2010-04-20 05:44
Forum: General discussions
Topic: NOT operator or negative spam scoring for DNSBL?
Replies: 4
Views: 1460

Re: NOT operator or negative spam scoring for DNSBL?

I don't think there's a good way to accomplish this today with the built-in functionality. :-\ Scripts to the rescue :D brashquido: I was thinking on exactly the same lines you are. I'm writing a script that: - queries zz.countries.nerd.dk for the country - looks up the result code and writes out t...
by ras07
2010-04-20 03:54
Forum: Feature requests
Topic: Send spam rejection message from highest-value test
Replies: 4
Views: 1918

Re: Send spam rejection message from highest-value test

Is there a way to access the spam tests results and their corresponding values?
by ras07
2010-04-20 02:55
Forum: Scripting
Topic: Why doesn't this work?
Replies: 8
Views: 3115

Re: Why doesn't this work?

Why do you need for the script to sleep?Matt It's a subroutine that's opening a file, writing to it, and closing. Not thread-safe; if another instance comes along it's going to throw an error if it does the wrong thing at the wrong time. Since there's no MutEx in VBScript, a semaphore and short del...
by ras07
2010-04-20 02:49
Forum: Scripting
Topic: General VBscript memory question
Replies: 7
Views: 3014

Re: General VBscript memory question

How do you know that you have a memory leak?
Memory use grows a lot with my script enabled; just a little w/o it
What database do you use?
Embedded
What AV do you have installed as the command line scanner within hMailserver?
None
by ras07
2010-04-20 02:39
Forum: Scripting
Topic: Why doesn't this work?
Replies: 8
Views: 3115

Re: Why doesn't this work?

Shouldn't you use the variable SHELL somewhere in the sleep line... Apparently not, although I don't understand this either. Examples I see on the internet have it this way, and again, it seems to work fine in a standalone script. btw asking your mailserver to sleep isn't a good idea on a busy mail...
by ras07
2010-04-19 23:57
Forum: Feature requests
Topic: IP address in TCP/IP logging of AcceptEx
Replies: 3
Views: 2347

IP address in TCP/IP logging of AcceptEx

It would be really handy if, when the TCP/IP log logs an AcceptEx, it would add the IP address of the connecting machine to the log line. In cases where you don't have IMAP, POP3, and/or debug logging on, this would be an indication of where connections are coming. In addition, it would be helpful f...
by ras07
2010-04-19 23:15
Forum: Scripting
Topic: Why doesn't this work?
Replies: 8
Views: 3115

Why doesn't this work?

Sorry to be asking so many questions ... This works fine in a standalone script, but not an hMailServer script ... Dim Shell Set Shell = CreateObject("WScript.Shell") WScript.Sleep 100 In hMS I get this error: "Script Error: Source: Microsoft VBScript runtime error - Error: 800A01F4 - Description: V...
by ras07
2010-04-19 21:10
Forum: General discussions
Topic: thunderbird 3.0 say no any Encryption on pop3
Replies: 2
Views: 735

Re: thunderbird 3.0 say no any Encryption on pop3

Or ignore the warning and go on with life :)

See this thread for a discussion of when SSL is useful and when it isn't
by ras07
2010-04-19 20:47
Forum: Scripting
Topic: General VBscript memory question
Replies: 7
Views: 3014

Re: General VBscript memory question

mattg wrote:I don't think that you need to clean up the message, as it will be sent and cleaned up within the program.
Well, I definitely have a memory leak somewhere ...
by ras07
2010-04-19 20:44
Forum: Scripting
Topic: Code in main body of EventHandlers.vbs
Replies: 3
Views: 2252

Re: Code in main body of EventHandlers.vbs

Isn't loading a text file, just like setting a whole heap of global variables? Yeah, good point. Loading a text file when EventHandlers.vbs is loaded doesn't allow for that text file to be dynamic. If you wanted to say check a text file for aliases, or delivery recipients etc, you would need the te...
by ras07
2010-04-19 07:35
Forum: Scripting
Topic: General VBscript memory question
Replies: 7
Views: 3014

General VBscript memory question

I"m having trouble figuring out when to set an object to Nothing when you're done with it. In most examples of file handling, for example, they usually set the FileSystemObject handle to Nothing when they're done. But when I try that with, for example: Dim MyMsg Set MyMsg = CreateObject("hMailServer...
by ras07
2010-04-19 07:29
Forum: Scripting
Topic: Script hang
Replies: 17
Views: 5314

Re: Script hang

You're saying that "It blocks after one hung shell.". I'm not sure what you mean by this. What blocks? The delivery? Acceptance of message? Acceptance of new connections? I had some trace statements going to a text file, like so: Sub MyTrace(logString) Dim fso, LogFile Set fso = CreateObject("Scrip...
by ras07
2010-04-19 07:19
Forum: Scripting
Topic: Code in main body of EventHandlers.vbs
Replies: 3
Views: 2252

Code in main body of EventHandlers.vbs

Is it OK to have code in the main body of EventHandlers.vbs? The idea would be to do some initialization when EventHandlers.vbs is first loaded (in this case, loading a text file into memory), and then access that data later on in the event handlers. I've browsed around in the sample scripts, and I'...
by ras07
2010-04-19 06:50
Forum: General discussions
Topic: Interesting log entry: lots of AcceptEx
Replies: 12
Views: 3456

Re: Interesting log entry: lots of AcceptEx

In the latest version the debug log includes information on why a client connection was disconnected (for instance blocked by IP range). Given that one isn't likely to leave debug logging on due to log volume, and brute-force attack like this is unpredictable, would it make sense to include that in...
by ras07
2010-04-19 06:47
Forum: Scripting
Topic: Recipient.IsLocalUser
Replies: 6
Views: 2686

Re: Recipient.IsLocalUser

It checks whether a local account has been found which is matching the recipient address. So it resolves aliases? Assuming: - me@mydomain.com is a "real" account on a "real" domain - myaliasdomain.com is aliased to mydomain.com - myalias@mydomain.com is aliased to me@myaliasdomain.com - mygmailacct...
by ras07
2010-04-18 10:06
Forum: General discussions
Topic: Interesting log entry: lots of AcceptEx
Replies: 12
Views: 3456

Re: Interesting log entry: lots of AcceptEx

DeanoX wrote:Do you have auto-ban enabled?
I do indeed. That explains it!
by ras07
2010-04-18 03:57
Forum: General discussions
Topic: Interesting log entry: lots of AcceptEx
Replies: 12
Views: 3456

Re: Interesting log entry: lots of AcceptEx

OK, it looks like this is just a typical account scanner gone haywire. I didn't notice it before, but just previous to this in the log, I took about a dozen attempted random logins: "POP3D" 1392 1471 "2010-04-17 13:36:35.484" "173.23.65.217" "RECEIVED: USER spam" "POP3D" 1392 1471 "2010-04-17 13:36:...
by ras07
2010-04-18 02:28
Forum: General discussions
Topic: Interesting log entry: lots of AcceptEx
Replies: 12
Views: 3456

Re: Interesting log entry: lots of AcceptEx

Well, this is a bit worrisome ... I just noticed that hMailServer.exe was consuming ~92-94% CPU, and a bunch more memory than normal (~24 MB). Didn't seem to be affecting system response, though. I stopped and re-started hMS in the console and nothing changed. I stopped and restarted the service, an...
by ras07
2010-04-18 01:35
Forum: General discussions
Topic: Interesting log entry: lots of AcceptEx
Replies: 12
Views: 3456

Re: Interesting log entry: lots of AcceptEx

Could be or a spam botnet thats broken, perhaps your IP is down in a list of compromised accounts, just guessing on that though. Doubt if it's a broken spambot; it's POP3, not SMTP. 50 to 100 connections/sec doesn't seem like enough to be a DDOS attempt, and it didn't go on long enough to matter an...
by ras07
2010-04-18 01:01
Forum: General discussions
Topic: Interesting log entry: lots of AcceptEx
Replies: 12
Views: 3456

Interesting log entry: lots of AcceptEx

Just saw this in my log: "TCPIP" 3024 "2010-04-17 13:36:36.326" "TCPConnection - Posting AcceptEx on 0.0.0.0:110" "TCPIP" 3024 "2010-04-17 13:36:36.342" "TCPConnection - Posting AcceptEx on 0.0.0.0:110" "TCPIP" 3024 "2010-04-17 13:36:36.353" "TCPConnection - Posting AcceptEx on 0.0.0.0:110" "TCPIP" ...
by ras07
2010-04-17 23:20
Forum: Scripting
Topic: Script hang
Replies: 17
Views: 5314

Re: Script hang

^DooM^ wrote:Could be a limitation or a problem. Martin will have to take a look at it.
Sounds good. Obviously I can work around it by not being a dunce and calling execs that end up waiting on STDIN :wink: But if Martin wants any testing or re-create info, just let me know

ras
by ras07
2010-04-17 22:31
Forum: Scripting
Topic: Script hang
Replies: 17
Views: 5314

Re: Script hang

I did, that's what I've been saying. It blocks after one hung shell.

To be clear, it's not that it blocks the entire SMTP thread from starting; it's just that when the next OnAcceptMessage event happens, it hangs on CreateObject. I can recreate this at will.

ras
by ras07
2010-04-17 03:30
Forum: Scripting
Topic: Script hang
Replies: 17
Views: 5314

Re: Script hang

^DooM^ wrote:Default timeout is 30 minutes on a broken session. How many delivery threads do you have set?
5 delivery threads ... but I thought incoming SMTP/POP/IMAP connections were handled through command threads. That is set to 15.
by ras07
2010-04-16 23:05
Forum: Scripting
Topic: Script hang
Replies: 17
Views: 5314

Re: Script hang

After a whole lot of trial and error trying to reproduce this, there's what what I think is going on. My script was calling an external command line program. It was working fine, but at one point while tweaking it I made a mistake that left the called program waiting for input on STDIN, which of cou...
by ras07
2010-04-15 21:36
Forum: Archived feature requests
Topic: Persist column settings
Replies: 1
Views: 3889

Persist column settings

If the user modifies the column widths, column order, sort order, etc. in the Live Logging or Delivery Queue screens, these settings should be maintained for the next time that screen is viewed.
by ras07
2010-04-15 18:45
Forum: Scripting
Topic: Script hang
Replies: 17
Views: 5314

Re: Script hang

^DooM^ wrote:does hmail system account have permissions to access WScript.Shell?
Well, it used to work and I haven't changed any permissions. But how can I double-check this?

EDIT: The hMailServer service is running as Local System Account, btw
by ras07
2010-04-15 16:30
Forum: Scripting
Topic: Script hang
Replies: 17
Views: 5314

Re: Script hang

This is driving me crazy. My entire OnAcceptMessage right now is:

Code: Select all

Sub OnAcceptMessage(oClient, oMessage)
	Dim objShell
	Set objShell = CreateObject("WScript.Shell")
	set objShell = nothing
End Sub
And it hangs.

What can possibly be causing this?
by ras07
2010-04-15 15:59
Forum: Scripting
Topic: Recipient.IsLocalUser
Replies: 6
Views: 2686

Recipient.IsLocalUser

What exactly does Recipient.IsLocalUser check? Just that the domain of the recipient is configured in hMailServer, or that the recipient account actually exists?