Search found 19810 matches

by mattg
2019-05-19 02:52
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 1242

Re: Programmatically set retry count/delay amount

Or can you delete the message altogether in Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) so it doesnt retry? Can Result.Value = 2 work in this method? No, that won't work have failed emails, which call a http request to remove it. That's the point where I would remove the email from th...
by mattg
2019-05-18 03:10
Forum: Development & alpha discussions
Topic: hMailServer 5.7.0 64-Bit (LTS) - April Release with OpenSSL 1.0.2r update
Replies: 38
Views: 2371

Re: hMailServer 5.7.0 64-Bit (LTS) - April Release with OpenSSL 1.0.2r update

This is where I originally got the code https://www.hmailserver.com/forum/viewtopic.php?f=21&t=29238#p183209 PLEASE update the code to what is in your builds, or post your own pull request to GitHub I use this feature a lot. Actually just checking, no I don't. I use it only to AutoBan some specific ...
by mattg
2019-05-18 02:54
Forum: General discussions
Topic: Time to say good bye ...
Replies: 24
Views: 1578

Re: Time to say good bye ...

I agree, hMailserver still serves my needs brilliantly, people demanding instant TLS 1.3 support....wow!!! Half the internet doesn't support TLS 1.3 at this stage...even Windows 10 to my knowledge still has no build-in support for it (yet), and TLS 1.2 and lower are still suitable for most user cas...
by mattg
2019-05-16 16:37
Forum: General discussions
Topic: Paid hMail support
Replies: 2
Views: 239

Re: Paid hMail support

If you are only relaying from in house applications to Office365, you won't need certs, MX records or really DKIM Just a vanilla hMailserver with a SMTP relayer set up No domains needed, default settings should work, although you may need an IP range for your LAN created Run this and post the result...
by mattg
2019-05-16 02:34
Forum: General discussions
Topic: Email not send after atak
Replies: 3
Views: 211

Re: Email not send after atak

Test: Test outbound port SMTP relayer not in use. Attempting mail.hmailserver.com:25... Trying to connect to host mail.hmailserver.com... Trying to connect to TCP/IP address 5.189.183.138 on port 25. ERROR: It was not possible to connect. This means that something is blocking outgoing port 25 acces...
by mattg
2019-05-15 07:40
Forum: General discussions
Topic: Email not send after atak
Replies: 3
Views: 211

Re: Email not send after atak

How many messages are currently in your queue
by mattg
2019-05-14 01:48
Forum: General discussions
Topic: Log documentation for 5.5.2
Replies: 3
Views: 209

Re: Log documentation for 5.5.2

This will do it for you

https://log.damnation.org.uk/

There isn't much documentation detailing what is in the logs. Most of us have just worked it out over the years.

If you write some documentation, I'll consider adding it to the official documentation list
by mattg
2019-05-13 01:22
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 1242

Re: Programmatically set retry count/delay amount

Looking at the diagnostics that you provided earlier SMTP GENERAL DELIVERY RFC COMPLIANCE ADVANCED No. Connections: 0 No Retries: 0 Mins: 0 Plain Text: False Bind: Host: Domain1.com Empty sender: True Batch recipients: 25 Max Msg Size:200480 Relay:- Incorrect endings: True Use STARTTLS: True (none e...
by mattg
2019-05-13 01:11
Forum: General discussions
Topic: hMailServer Logs
Replies: 1
Views: 189

Re: hMailServer Logs

IMAP is a protocol for READING messages Clearly the IMAP user has logged in (you have redacted the user name) That IP may be the mobile phone network if the user has their smart phone set to read mail, or it could be any other mail client. IMAP access doesn't mean that you are an open relay - just t...
by mattg
2019-05-12 23:48
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 1242

Re: Programmatically set retry count/delay amount

5XX codes from another server are rejected, and hMailserver replies to the author with a daemon message 4XX codes from another server are asking for try again (ie greylisting), these are retried as per the settings in hMailserver in SMTP delivery Can you set custom retries per message? Sure but you ...
by mattg
2019-05-12 15:59
Forum: General discussions
Topic: Blocking hackers gaining user names via "550 Unknown user"
Replies: 4
Views: 325

Re: Blocking hackers gaining user names via "550 Unknown user"

In SMTP >> RFC Compliance

What do you have for Maximum number of invalid commands?
I have mine set to 5
by mattg
2019-05-12 04:29
Forum: General discussions
Topic: hMailserver: Secure with letsencrypt SMTP SetUP - Trusted Cert Issue
Replies: 7
Views: 963

Re: hMailserver: Secure with letsencrypt SMTP SetUP - Trusted Cert Issue

Letsencrypt typically send back two certs, one is the just the named cert, the other includes the trust

I think the OP just used the wrong one
by mattg
2019-05-12 04:27
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

I reject messages in OnAcceptMessage but I don't delete them
Result.Value = 2


Unsure if delete will work or not
by mattg
2019-05-12 00:34
Forum: Scripting
Topic: how to know the mail type SENT vs REPLY vs FORWARD
Replies: 2
Views: 208

Re: how to know the mail type SENT vs REPLY vs FORWARD

An email is an email SOME mail clients track email threads, but mail servers rarely do (if at all) Mail clients tend to prepend 'FWD:' to the subject of forwards, and 'RE:' to the subject of Replies, but there is no guarantee that this means that a message has been forwarded or replied, and in fact ...
by mattg
2019-05-12 00:29
Forum: General discussions
Topic: hMailserver: Secure with letsencrypt SMTP SetUP - Trusted Cert Issue
Replies: 7
Views: 963

Re: hMailserver: Secure with letsencrypt SMTP SetUP - Trusted Cert Issue

abdrahim999 wrote:
2019-05-11 13:57
let's encrypt
mattg wrote:
2019-03-12 01:31
Use the chained cert instead of the cert that you have used
by mattg
2019-05-10 15:05
Forum: General discussions
Topic: Attack by SYN_RCVD
Replies: 19
Views: 911

Re: Attack by SYN_RCVD

jimimaseye wrote:
2019-05-09 23:15
Bugger.

Had to add more ip's to the firewall to protect from SYN_RCVD attack.

additional IPs:

128.199.36.85 and
174.138.106.64
I've got those two too
by mattg
2019-05-10 06:56
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 1662

Re: Move emails to top of the queue based on certain priority header flags

cblaze22 wrote:
2019-05-10 03:34
My code seems to work. Would the code below be something to do with any type of error?

Code: Select all

On Error Resume Next
That is VB for

If there is an error, then ignore it and just keep going
by mattg
2019-05-10 06:55
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 1662

Re: Move emails to top of the queue based on certain priority header flags

doesn't the FSO.copyfile copy the file contents a couple of lines down
by mattg
2019-05-10 05:24
Forum: General discussions
Topic: Having issues receiving email
Replies: 7
Views: 289

Re: Having issues receiving email

Here is a list of the hMailserver SMTP error responses https://www.hmailserver.com/documentation/latest/?page=reference_error_messages_smtp <<<< 550 No Such User Here 550 5.1.1 <e@coffeetest.com> User unknown Neither of these terms are on the inked list This is CLEARLY not hMailserver responding to ...
by mattg
2019-05-10 00:26
Forum: General discussions
Topic: Error 7760 / HM4406 - Could not read the message header, since the file was not available
Replies: 22
Views: 984

Re: Error 7760 / HM4406 - Could not read the message header, since the file was not available

Can you create an empty file named exactly that at each specific location, and the restart the machine, to see if that makes a difference
by mattg
2019-05-09 03:32
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

Only that I'd turn SSLv3.0 (at least) off - It is known to be broken
by mattg
2019-05-09 01:35
Forum: General discussions
Topic: How to re-install Microsoft SQL Compact system
Replies: 15
Views: 618

Re: How to re-install Microsoft SQL Compact system

Also include the hmailserver.ini contents (with the passwords removed /masked)

Which version and edition of SQL Server were you using?
by mattg
2019-05-09 01:33
Forum: General discussions
Topic: Masquerade
Replies: 14
Views: 634

Re: Masquerade

I've added that to the docs too
by mattg
2019-05-09 00:15
Forum: General discussions
Topic: Error 7760 / HM4406 - Could not read the message header, since the file was not available
Replies: 22
Views: 984

Re: Error 7760 / HM4406 - Could not read the message header, since the file was not available

Actually no, a different thing would occur if the message didn't exist - A new dummy message would be created

This error specifically say that the message exists, just that it is not available (presumably because it is quarantined by the AV)
by mattg
2019-05-08 14:08
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

Settings >> Advanced

having a default domain MAY create some bad DKIM signing, because hMailserver assumes that a FROM of 'coyote' is in fact FROM 'coyote@example.com' if example.com is the default domain.
by mattg
2019-05-08 14:04
Forum: Scripting
Topic: Read headers from .eml on disk
Replies: 5
Views: 287

Re: Read headers from .eml on disk

Try this

Code: Select all

	For i = 1 To oMessage.Headers.Count 
		txt = "Message Subject is: " & oMessage.Subject & "   Header #" & i & " name is: " & oMessage.Headers.Item(i-1).Name
		txt = txt & " value is: " & oMessage.Headers.Item(i-1).Value
		EventLog.write txt
	Next 'i
by mattg
2019-05-08 14:00
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 1662

Re: Move emails to top of the queue based on certain priority header flags

cblaze22 wrote:
2019-05-08 13:39
But that doesnt mean just failed, but anything in the queue correct?
correct
cblaze22 wrote:
2019-05-08 13:39
Is oApp.status.UndeliveredMessages items in the queue or failed items in the queue?
Both

It is ALL items in the queue
But if you want a way to remove specific dud messages from the queue, this is the way to find them
by mattg
2019-05-08 13:12
Forum: Scripting
Topic: Change from address not working as expected
Replies: 4
Views: 287

Re: Change from address not working as expected

Try changing this line oMessage.From = "<s.relay@mhs.net>" to something like oMessage.From = "Real Account <s.relay@mhs.net>" This below code CREATES and sends an email when the backup is completed Sub OnBackupCompleted() dim oApp, sBackupLog, oMessage Set oApp = CreateObject("hMailServer.Applicatio...
by mattg
2019-05-08 12:59
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

Yes you do need a domain to use DKIM By forwarding you are creating an extra message, effectively doubling the load. hMailserver has a loop count, so that messages aren't looped forever. This is a safety feature to stop the queue filling with dead messages Why do you have a default domain set? Is th...
by mattg
2019-05-08 12:56
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 1662

Re: Move emails to top of the queue based on certain priority header flags

building on What SorenR started I may have something This extracts the messageID from the Match, and then resets the deliverytime for that message, and then starts delivery PLEASE TEST TEST TEST FIRST Dim Match, Matches, Done, ID Dim oApp : Set oApp = CreateObject("hMailServer.Application") Call oAp...
by mattg
2019-05-07 12:58
Forum: Scripting
Topic: Change from address not working as expected
Replies: 4
Views: 287

Re: Change from address not working as expected

please show your eventhandlers.vbs

Mostly the from address will be changed by a script
by mattg
2019-05-07 10:57
Forum: Off-topic discussions
Topic: Mozilla has trashed firefox again
Replies: 11
Views: 717

Re: Mozilla has trashed firefox again

Interestingly it seems to have affected my waterfox too, it wants to do a manual update... I had some 170+ tabs open in my old firefox (using TabMixPlus) that all appeared on one line once I upgraded to quantum. I've done done .css hacks, but it is still very ugly So arse arse and double arse! Not h...
by mattg
2019-05-07 10:53
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 504

Re: OnDeliverMessage placement of call

I am trying to find a location to immediately deliever an email based on a header and cant find a good location to do this to bypass the queue. We understand what you want, and the short answer is that you can't Either use two hmailservers (same database and file store if you like - although not su...
by mattg
2019-05-07 10:48
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

cblaze22 wrote:
2019-05-07 05:55
I use the domains for any loop issues, so emails will go to an external email by taking advantage of the forwarding.
Please give more detail about this concept...what are you hoping to achieve...and how
by mattg
2019-05-07 10:47
Forum: General discussions
Topic: Masquerade
Replies: 14
Views: 634

Re: Masquerade

MCFH wrote:
2019-05-07 08:10
It looks like they are being truncated
Not by hMailserver unless you do it with a script
by mattg
2019-05-07 02:18
Forum: General discussions
Topic: Masquerade
Replies: 14
Views: 634

Re: Masquerade

A lot of IP ranges there This one needs to be removed or modified, as you have no domains entered, there can NEVER be 'local' mail, all mail is considered 'external'. This will also impact on the IPv6 ranges that you have entered. Also, your default domain should be removed (as there are no domains)...
by mattg
2019-05-07 02:07
Forum: Scripting
Topic: Local Send Only
Replies: 39
Views: 18684

Re: Local Send Only

Hi all Thanks for the script. It was quite useful for me. But, there is another thing. When restricted user send an e-mail, all 'CC/BCC' will changed to 'To' Is there anyway to change the script? Thanks i have same problem pls help When restricted user send an e-mail, all 'CC/BCC' will changed to '...
by mattg
2019-05-07 02:05
Forum: General discussions
Topic: hMailServer and Roundcube change password problem
Replies: 6
Views: 1302

Re: hMailServer and Roundcube change password problem

What OS do you run roundcube on?
by mattg
2019-05-07 02:04
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

So this machine doesn't accept any incoming mail, it only handles mail submitted via port 587. Correct?

what IP address(es) does the incoming mail get submitted from? I'm guessing this is from servers that you control.

Why do you have a default domain set?
Why do you have domains at all?
by mattg
2019-05-06 10:27
Forum: General discussions
Topic: Masquerade
Replies: 14
Views: 634

Re: Masquerade

run this and paste the results
viewtopic.php?f=20&t=30914

You have misconfigured your server, probably in the IP ranges I'd guess
by mattg
2019-05-06 10:22
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 504

Re: OnDeliverMessage placement of call

I thought I answered in another thread.

OnAcceptMessage is when the message is added to the queue, but MessageID is not populated then
by mattg
2019-05-06 10:19
Forum: General discussions
Topic: Send now, doesnt send now
Replies: 8
Views: 417

Re: Send now, doesnt send now

cblaze22 wrote:
2019-05-06 06:40
I assume the code below does send the email right away, bypassing the queue.
Did you test it..?
by mattg
2019-05-06 05:12
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

I'd set delivery threads to at least 100, possibly higher on that system How much RAM is accessible on that system? Can you get more cores? Two isn't very many for a machine that is that busy How many messages per day?, I'm guessing many hundreds of thousands if you have 39K banked up Asynchronous t...
by mattg
2019-05-06 03:33
Forum: Scripting
Topic: Get status code of error message
Replies: 7
Views: 396

Re: Get status code of error message

You are correct I just forced the same message to fail, and it did log for me too. I obviously don't have many failures, I couldn't find one so far this month when I looked earlier. Mine logged 2019-05-06 11:28:47.371 OnDeliveryFailed:- test matt@example.com sdsfjkld@jhfjksfyjdsyjhg.com Error Type: ...
by mattg
2019-05-06 03:25
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

What are your delivery re-try settings?

Do you have the internet bandwidth to deliver tens of thousand of messages? Why are they building up in your queue?
by mattg
2019-05-06 03:23
Forum: General discussions
Topic: Send now, doesnt send now
Replies: 8
Views: 417

Re: Send now, doesnt send now

Just done a quick test

Sent a mail to a non-existent address
OnAcceptMessage was fired when the message joined the queue

OnDeliveryStart is called for each delivery attempt
by mattg
2019-05-06 02:05
Forum: Scripting
Topic: Get status code of error message
Replies: 7
Views: 396

Re: Get status code of error message

How do you know that it came from that method?
by mattg
2019-05-06 02:01
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

You have 39 000 legitimate emails??
by mattg
2019-05-05 09:11
Forum: User-submitted tutorials
Topic: Step by step LetsEncrypt WinSimple
Replies: 42
Views: 16914

Re: Step by step LetsEncrypt WinSimple

Did you restart the hMailserver service?

I get the pem files with my apache server running on Ubuntu, and access these from hMailserver directly via network shares using UNC paths in the ADMIN GUI and it works fine
by mattg
2019-05-05 09:08
Forum: Scripting
Topic: Get status code of error message
Replies: 7
Views: 396

Re: Get status code of error message

OnDeliveryFailed (the sub you referenced) is only for mail being sent to your hmailserver, it is not for messages that get bounced by other servers.

I suspect that you are wanting to track messages that are bounced by other servers.
The ONLY way that you can do is by parsing the log files
by mattg
2019-05-05 09:06
Forum: General discussions
Topic: Send now, doesnt send now
Replies: 8
Views: 417

Re: Send now, doesnt send now

yes, and I say that because the entire admin gui is written using the COM API

Anything that you can do in the admin gui, you can script
https://www.hmailserver.com/documentati ... iveryqueue
by mattg
2019-05-05 09:04
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1192

Re: Delete noreply still showing in queue

In the admin GUI you can 'clear queue' from the button at the top of the delivery queue page
by mattg
2019-05-05 09:02
Forum: General discussions
Topic: Masquerade
Replies: 14
Views: 634

Re: Masquerade

Did you enable scripts?

If so, enable all logging, send a message again where you'd expect that script to fire, wait at least 30 seconds and post all logs creatred
by mattg
2019-05-05 04:13
Forum: Scripting
Topic: Get status code of error message
Replies: 7
Views: 396

Re: Get status code of error message

nl = New Line


OnDeliveryFailed is only for incoming messages that accepted by hMailserver

It fires for me ONLY when a global rule deletes a message