Search found 40 matches
- 2018-10-01 04:23
- Forum: Development & alpha discussions
- Topic: Sub OnHELO(oClient) progress?
- Replies: 526
- Views: 605497
Re: Sub OnHELO(oClient) progress?
Disconnect.exe seems to be doing a good job as a work around for me, thanks.
- 2018-09-27 11:43
- Forum: Development & alpha discussions
- Topic: Sub OnHELO(oClient) progress?
- Replies: 526
- Views: 605497
Re: Sub OnHELO(oClient) progress?
Thanks, I understand the complexities of bringing in the protocol to close the connection cleanly. Disconnect.exe could conflict with another user if its the same IP address, but that might be OK in this context, I'll give it a try.
- 2018-09-27 08:51
- Forum: Development & alpha discussions
- Topic: Sub OnHELO(oClient) progress?
- Replies: 526
- Views: 605497
Re: Sub OnHELO(oClient) progress?
Indeed, its the chicken & egg, OnClientConnect doesn't yet know the username and OnClientLogon doesn't have the return Result feature. I would like to block further activity for a specific user from a specific IP but I don't want to block all users from that IP address.
thanks
thanks
- 2018-09-27 05:34
- Forum: Development & alpha discussions
- Topic: Sub OnHELO(oClient) progress?
- Replies: 526
- Views: 605497
Re: Sub OnHELO(oClient) progress?
Thanks for the work on this, I really like the OnClientLogon event for logging login attempts. Any chance to allow a return result like onClientConnect? I have some cases where I do not want a specific account to be accessed by a specific IP, but allow that IP to access other accounts: https://www.h...
- 2017-12-21 04:48
- Forum: User contributed hMailServer 5 scripts
- Topic: Ban IP address on Hmail with Password proxy
- Replies: 33
- Views: 34174
Re: Ban IP address on Hmail with Password proxy
Using the code from ProxyAuth.exe, here is a way of adding to the ban list using native VBScript: replace: Sub OnClientConnect(oClient) If DroneBLAuthHacker(oClient.IPAddress) Then Set oShell = CreateObject("WScript.Shell") oShell.Run """C:\Program Files (x86)\hMailServer\Bin\ProxyAuth.exe"" -secret...
- 2017-12-20 12:36
- Forum: User contributed hMailServer 5 scripts
- Topic: Ban IP address on Hmail with Password proxy
- Replies: 33
- Views: 34174
Re: Ban IP address on Hmail with Password proxy
I have changed the way that the nslookup is done, the Shell version produces some strange behavior on busier servers (possibly threading) and found that the WMI method works very well: Function NSLookup(strIP) Dim strLookup, oResponse Dim a : a = Split(strIP, ".") strLookup = a(3) & "." & a(2) & "."...
- 2017-12-07 04:52
- Forum: User contributed hMailServer 5 scripts
- Topic: Ban IP address on Hmail with Password proxy
- Replies: 33
- Views: 34174
Re: Ban IP address on Hmail with Password proxy
I've modified one line of the OnClientConnect part of the script as the Shell.Run method seems to operate better when it waits for the process to complete before returning. From https://msdn.microsoft.com/en-us/library/d5fk67ky%28v=vs.84%29.aspx object.Run(strCommand, [intWindowStyle], [bWaitOnRetur...
- 2017-11-06 05:52
- Forum: User contributed hMailServer 5 scripts
- Topic: Ban IP address on Hmail with Password proxy
- Replies: 33
- Views: 34174
Re: Ban IP address on Hmail with Password proxy
My variation on the spamrats/ProxyAuth script but using dnsbl.dronebl.org and command-line based nslookup, many thanks to the other contributors on this: Sub OnClientConnect(oClient) If DroneBLAuthHacker(oClient.IPAddress) Then Set oShell = CreateObject("WScript.Shell") oShell.Run """C:\Program File...
- 2017-10-11 11:32
- Forum: Scripting
- Topic: Script to rename Attachment file type
- Replies: 54
- Views: 49767
Re: Script to rename Attachment file type
I can confirm that the body survives with the following html file (with an embedded image), sent as an attachment when using my version of the script: <html> <body> Here you go!<br> <img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGP C/xhBQAAAAlwSFlzAAALEwAA...
- 2017-10-03 09:59
- Forum: Scripting
- Topic: Script to rename Attachment file type
- Replies: 54
- Views: 49767
Re: Script to rename Attachment file type
Hi Martin, 1, yes it replaces all other scripts, just add this line to your OnAcceptMessage "Sub": WarningAttachments(oMessage) 2, I have added some more comments for you, to help with customizing it to your needs. Don't forget to set the path to your boilerplate file and the hmailserver temp folder...
- 2017-08-19 09:47
- Forum: Scripting
- Topic: Script to rename Attachment file type
- Replies: 54
- Views: 49767
Re: Script to rename Attachment file type
my workaround for the blank body issue, it seemed to happen consistently with html files, so here I save the attachments into a random folder, create an array of the attachment locations, delete the original attachments and then attach the renamed ones. There is also the option to add a disclaimer a...
- 2017-07-15 04:28
- Forum: Scripting
- Topic: HeaderValue Case Sensitive?
- Replies: 9
- Views: 9484
Re: HeaderValue Case Sensitive?
thanks, looks good
- 2017-07-14 06:18
- Forum: Scripting
- Topic: HeaderValue Case Sensitive?
- Replies: 9
- Views: 9484
Re: HeaderValue Case Sensitive?
Sure, here are two suggested amendments for the Message object documentation: string HeaderValue(string FieldName) Value of the first occurrence of the given header field. FieldName is not case sensitive. string FromAddress The sender address of the message, taken from "mail from" during the SMTP co...
- 2017-07-13 11:22
- Forum: Scripting
- Topic: HeaderValue Case Sensitive?
- Replies: 9
- Views: 9484
Re: HeaderValue Case Sensitive?
thanks, I have tested it, which is how I know it appears to be case insensitive. I can wait.
- 2017-07-13 11:11
- Forum: Scripting
- Topic: HeaderValue Case Sensitive?
- Replies: 9
- Views: 9484
Re: HeaderValue Case Sensitive?
thanks, I know how it appears (case insensitive). I would like it confirmed, as its not documented.
- 2017-07-13 10:07
- Forum: Scripting
- Topic: HeaderValue Case Sensitive?
- Replies: 9
- Views: 9484
HeaderValue Case Sensitive?
Can you confirm for the Message object Property:
FieldName is not case sensitive for reading or writing?
thanks
Code: Select all
string HeaderValue(string FieldName)
thanks
- 2016-09-16 05:00
- Forum: General discussions
- Topic: Escape Character Required for atachment names
- Replies: 5
- Views: 6015
Re: Escape Character Required for atachment names
Not sure on the exact match of that issue, that one seems related to spaces in the file names. I have attached the full email, its not very big, it won't cause sleep to occur during analysis :-) As I have now removed the problem email(s) from my mailbox and I have revert to using the latest Thunderb...
- 2016-09-09 12:16
- Forum: General discussions
- Topic: Escape Character Required for atachment names
- Replies: 5
- Views: 6015
Re: Escape Character Required for atachment names
The attachment in this particular email is an email that was forwarded as an attachment. The quotes are in the subject of that forwarded email so it could actually contain all of the non-supported characters. This then impacts on how hMailServer delivers the encapsulating email and its attachments t...
- 2016-09-06 10:34
- Forum: General discussions
- Topic: Escape Character Required for atachment names
- Replies: 5
- Views: 6015
Escape Character Required for atachment names
Hi Guys, I recently started to use eM Client and noticed some strange behavior. After some log investigation, it turns out that I had a rogue email that caused the IMAP session to exit. I contacted the eM Client support team and reported the issue. They have concluded it is because the attachment fi...
- 2011-11-25 06:44
- Forum: General discussions
- Topic: hMailServer crashes/stops
- Replies: 79
- Views: 60486
Re: hMailServer crashes/stops
I would like to add my experiences with the head-scratching caused by errors: HM5136 HM4208 HM5339 Although it might seem obvious that these are network errors we automatically think that its related purely to the application and that there is nothing that we can do on the server setup side to help....
- 2010-01-09 12:39
- Forum: General discussions
- Topic: ClamAV daily.cvd 10274 broken
- Replies: 3
- Views: 5632
Re: ClamAV daily.cvd 10274 broken
update: 10276
just released and confirmed working as normal.
just released and confirmed working as normal.
- 2010-01-09 08:13
- Forum: General discussions
- Topic: ClamAV daily.cvd 10274 broken
- Replies: 3
- Views: 5632
Re: ClamAV daily.cvd 10274 broken
10275 is broken because 10274 is broken.
As far as I know this is not a ClamAV engine problem, it is a ClamAV database problem.
If you have a daily.cld file (not daily.cvd) you can open it in eg notepad++ and search for pdf-9669 you will see the erroneous entry.
As far as I know this is not a ClamAV engine problem, it is a ClamAV database problem.
If you have a daily.cld file (not daily.cvd) you can open it in eg notepad++ and search for pdf-9669 you will see the erroneous entry.
- 2010-01-09 07:17
- Forum: General discussions
- Topic: ClamAV daily.cvd 10274 broken
- Replies: 3
- Views: 5632
ClamAV daily.cvd 10274 broken
Saturday started gloriously with all servers rejecting all messages due to being tagged as containing a virus. refer to this post on the ClamAV maillist, there was a bad entry in 10274 which was set as "0" bytes. http://old.nabble.com/PDF-9669-False-Positives--td27084341.html#a27085610 Edit: links t...
- 2009-06-23 17:48
- Forum: General discussions
- Topic: domain alias + routing rule rewrites recipient domain
- Replies: 4
- Views: 4507
Re: domain alias + routing rule rewrites recipient domain
mattg: yes, that would be a workaround
martin: thanks, I think that is a good label for it: "undefined" and overall would be beneficial to change.
we have "workedaround" for now.
martin: thanks, I think that is a good label for it: "undefined" and overall would be beneficial to change.
we have "workedaround" for now.
- 2009-06-23 08:15
- Forum: General discussions
- Topic: domain alias + routing rule rewrites recipient domain
- Replies: 4
- Views: 4507
domain alias + routing rule rewrites recipient domain
morning all - no doubt this scenario is unusual, please bear with me Scenario:- server1: is the smtp gateway for domains blah1.com and blah2.com server1: has domain blah1.com server1: domain blah1.com has an alias for blah2.com server1: has a routing rule for blah2.com which routes to server2 server...
- 2008-11-25 17:36
- Forum: General discussions
- Topic: General questions for SMTP gateway for Exchange 2003
- Replies: 6
- Views: 6140
Re: General questions for SMTP gateway for Exchange 2003
sorry, I misread 3. Whenever I see ASSP I think of Spam Assassin... v5 now has built-in support for SA. Which, with the aid of hMail's DNSBL and Grey Listing I have avoided using and hope to do so for many years to come. Our backup MX rejects around 99.5% of incoming emails (10,000 per day), which o...
- 2008-11-25 15:15
- Forum: General discussions
- Topic: General questions for SMTP gateway for Exchange 2003
- Replies: 6
- Views: 6140
Re: General questions for SMTP gateway for Exchange 2003
1, http://www.hmailserver.com/forum/viewtopic.php?t=8425&highlight= scroll down to my response 2, You could in the SMTP Route but a lot of duplication and extra administration. hMail as a SMTP gateway should route all incoming messages to Exchange, and Exchange should use hMail as a Smart Host, ie u...
- 2008-11-24 07:03
- Forum: General discussions
- Topic: Forwarding Relay and Exchange
- Replies: 0
- Views: 3291
Forwarding Relay and Exchange
Hi Guys, this is not a question or problem, just something that was observed today when Spamhaus changed a policy it uncovered an error in our setup. We use hMail as a SMTP gateway for our Exchange server and also keep some domains on it that we don't need the Exchange features for. - hMail is set t...
- 2007-06-19 13:55
- Forum: General discussions
- Topic: hmailserver as backup mx
- Replies: 2
- Views: 4279
- 2007-05-16 10:21
- Forum: General discussions
- Topic: ClamAV for Windows
- Replies: 81
- Views: 1282897
yes, instructions and download link here:
http://www.asspsmtp.org/wiki/ClamAV_Win32
skipping the ASSP section
you will also have to set a scheduled task for freshclam.exe (to get updates however often you want)
http://www.asspsmtp.org/wiki/ClamAV_Win32
skipping the ASSP section
you will also have to set a scheduled task for freshclam.exe (to get updates however often you want)
- 2007-05-16 03:00
- Forum: General discussions
- Topic: ClamAV for Windows
- Replies: 81
- Views: 1282897
- 2007-05-10 09:53
- Forum: General discussions
- Topic: ClamAV for Windows
- Replies: 81
- Views: 1282897
- 2007-04-27 11:36
- Forum: General discussions
- Topic: ClamAV for Windows
- Replies: 81
- Views: 1282897
anyone notice the licensing for PowerTools? Power Tools (25/9/06): This software is free for personal use. Commercial licences and support agreements are available from NJH Software. No warranty is made either explicitly or implicitly for its use. Yet no more information on the commercial aspect. So...
- 2007-03-30 04:14
- Forum: General discussions
- Topic: Help to setup just to be a BACKUP MX SMTP & no spam rela
- Replies: 7
- Views: 9249
the set up is identical to a normal hMailServer installation, except you don't have a domain with mailboxes, you have a domain under Protocols - SMTP - Routes for security under IP ranges, set your 'Internet' as follows:- Allow deliveries from: all checked except 'External to extternal accounts' Req...
- 2007-03-27 04:32
- Forum: General discussions
- Topic: SPF Inquiry
- Replies: 9
- Views: 10285
SPF is added as a 'TXT' record to your DNS Zone. Many hosting services only give you a small amount of 'A' and 'MX' records you can add. 'TXT' is a little more advanced and the hosters may not have a web interface for such additions, however they should be willing to add it manually for you. the 'TX...
- 2007-03-25 20:39
- Forum: General discussions
- Topic: DNS Blacklists Sites. All of them? or no?
- Replies: 5
- Views: 6751
- 2007-03-25 20:27
- Forum: General discussions
- Topic: DNS Blacklists Sites. All of them? or no?
- Replies: 5
- Views: 6751
- 2007-03-25 20:23
- Forum: General discussions
- Topic: SPF Inquiry
- Replies: 9
- Views: 10285
yes, if you use a relay your dns will sometimes be queried for SPF to check if that relay is authorized to send mail on your behalf. You can add the fully qualified name and ip address. You will have to add entries for all the servers you relay through. "v=spf1 a mx -all a:mail.myhoster.com a:256.1....
- 2007-03-22 13:46
- Forum: General discussions
- Topic: entire attachment is received before being reject on size
- Replies: 4
- Views: 4210
many thanks for the RFC clarification and for the note on client apps... sad to say Outlook 2003 SP2 does not provide the DATA size prior to sending (and thats with no AV interference/proxying) Edit: And you guessed it.... Thunderbird sends the DATA size before transmitting, hMailServer rejects the ...
- 2007-03-22 09:28
- Forum: General discussions
- Topic: entire attachment is received before being reject on size
- Replies: 4
- Views: 4210
entire attachment is received before being reject on size
This doesn't seem to have been discussed before. When sending a message via smtp with an attachment that exceeds the allowed maximum, the DATA session completes before being rejected, therefore if the attachment is 50MB and the max allowed is 20MB, you wasted an additional 30MB of bandwidth to find ...