Search found 20024 matches

by mattg
2019-06-03 14:57
Forum: General discussions
Topic: net_io_connectionclosed!
Replies: 2
Views: 293

Re: net_io_connectionclosed!

Please enable all logging, try to send again and post all of the logs created

ALSO run this and post the results run this and post the results: https://www.hmailserver.com/forum/viewt ... 20&t=30914

(You normally shouldn't need to edit the hosts files except in a VERY specific circumstance)
by mattg
2019-05-29 17:51
Forum: General discussions
Topic: Problem, different from address when forwarding using account forwarding tab and account rule
Replies: 12
Views: 979

Re: Problem, different from address when forwarding using account forwarding tab and account rule

In your hmailserver.ini file add this to the bottom [settings] RewriteEnvelopeFromWhenForwarding=0 ; When performing forwarding, hMailServer now keeps the original From address rather than changing to that of the forwarding account. ; This change was made to reduce risk of message delivery failures....
by mattg
2019-05-28 16:34
Forum: General discussions
Topic: Duplicate emails being created
Replies: 6
Views: 529

Re: Duplicate emails being created

THis is an outlook IMAP thing.
Outlook is really terrible at IMAP, and seems to get worse with each iteration

TRy another mail client, or a webmail and see if the problem persists.
by mattg
2019-05-28 16:33
Forum: General discussions
Topic: mails getting lost
Replies: 5
Views: 566

Re: mails getting lost

This is a POP3 session that asked for the messages to be deleted after they were downloaded (This is the 2 'deleting messages' in the centre of your list). Session: 72577121 "POP3D" 3872 72577121 "2019-05-16 06:00:26.843" "10.110.2.101" "SENT: +OK POP3" "POP3D" 1856 72577121 "2019-05-16 06:00:26.874...
by mattg
2019-05-28 06:22
Forum: General discussions
Topic: No results in Outlook 2019
Replies: 3
Views: 343

Re: No results in Outlook 2019

Sure you can merge sent folders, or just move all of the contents of one into the the other, then delete the empty one

You should change the settings in each mail client so that this doesn't happen again though.
by mattg
2019-05-28 00:58
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2135

Re: Programmatically set retry count/delay amount

The only time it hits the OnDeliveryFailed is when it has no more retries. That's logically correct (and also why I didn't know that OnDeliveryFailed triggered for outgoing messages. I normally don't let messages get that far. I send delayed one hour, delayed 1 day, delayed 2 days messages first, a...
by mattg
2019-05-28 00:51
Forum: General discussions
Topic: No results in Outlook 2019
Replies: 3
Views: 343

Re: No results in Outlook 2019

Outlook uses windows search to create indexes, leave it running a while (at least overnight) and try again
by mattg
2019-05-28 00:31
Forum: General discussions
Topic: mails getting lost
Replies: 5
Views: 566

Re: mails getting lost

'Deleting message' indicates a rule action

Would need to see much more of the logs to be certain, and to detail which rule triggered
by mattg
2019-05-27 14:04
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 1895

Re: Code: HM4403

@tunis What do you use to run the VMs? Is this bare metal? Which Hypervisor? This is a server with Hyper-V server 2019 That may well be your problem with taking too long HyperV doesn't pass time very well to the hosted machines. (I've had an error with some older linux drivers for my firewall, and ...
by mattg
2019-05-27 07:05
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2135

Re: Programmatically set retry count/delay amount

sure, and that will also work
by mattg
2019-05-27 07:05
Forum: General discussions
Topic: External Virus Scanner with Symantec Endpoint Protection
Replies: 1
Views: 218

Re: External Virus Scanner with Symantec Endpoint Protection

Perhaps ask Symantec how their product works

(You can just use the 'test button' in hMailsevrer to test - it uses the EICAR as well)
by mattg
2019-05-27 07:03
Forum: General discussions
Topic: hmailserver & Cloudflare
Replies: 13
Views: 990

Re: hmailserver & Cloudflare

Name is the same as you made for the MAIL A record

(hopefully like mail.example.com as opposed to example.com as you have written)

The bit that says 'click to configure' is where I'm guessing you will be asked for a priority, here put 10
by mattg
2019-05-26 23:51
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2135

Re: Programmatically set retry count/delay amount

You can also catch messages with a global rule that looks for 'delivery attempts' and can delete messages with that.

I use that to trigger 'been trying an hour and not delivered yet' type emails to the sender of the message
by mattg
2019-05-26 23:45
Forum: General discussions
Topic: hmailserver & Cloudflare
Replies: 13
Views: 990

Re: hmailserver & Cloudflare

A record like 'mail.example.com' IPv4 Address = 123.123.123.xxx (static IP address goes here) Leaving TTL to automatic is probably safe MX Priority = 10 In HMailserver Protocol >> SMTP >> Delivery of email >>Local host name Also use 'mail.example.com' as above If you can set an RDNS through your ISP...
by mattg
2019-05-26 06:54
Forum: General discussions
Topic: hmailserver stops Executing task DeliveryTask in work queue SMTP delivery queue
Replies: 23
Views: 1596

Re: hmailserver stops Executing task DeliveryTask in work queue SMTP delivery queue

Are you using the ClamWin or ClamAV connector in hMailserver? Note that the external virus scan is different again. They behave differently, and you should never use the ClamWin Adapter on a busy server I have previously used the ClamAV adapter, but currently don't connect Clam to hMailserver at all...
by mattg
2019-05-26 02:21
Forum: General discussions
Topic: hmailserver stops Executing task DeliveryTask in work queue SMTP delivery queue
Replies: 23
Views: 1596

Re: hmailserver stops Executing task DeliveryTask in work queue SMTP delivery queue

I'll also add that my ClamAV is NOT on the same machine that runs hMailserver
I have a Linux box that runs SpamAssassin and ClamAV (and a few other bits)
by mattg
2019-05-26 02:15
Forum: General discussions
Topic: hmailserver stops Executing task DeliveryTask in work queue SMTP delivery queue
Replies: 23
Views: 1596

Re: hmailserver stops Executing task DeliveryTask in work queue SMTP delivery queue

I find ClamAV next to useless without the SaneSecurity updates. The SaneSecurity Updates are more about malware and trojan detection than virus detection I get my SpamAssassin to check CLamAV as well and use the results as part of SpamScore. If a SpamAssassin connection doesn't get picked up and ans...
by mattg
2019-05-25 08:02
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2135

Re: Programmatically set retry count/delay amount

SMTP 5XX codes should trigger a bounce back to the sender, not a retry

Retries should only happen after 4XX codes
by mattg
2019-05-25 02:34
Forum: General discussions
Topic: IMAP as external account
Replies: 2
Views: 315

Re: IMAP as external account

not possible in hMailserver

(and it is tricky because of all of the folders involved)
by mattg
2019-05-24 16:59
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 1895

Re: Code: HM4403

@tunis What do you use to run the VMs? Is this bare metal? Which Hypervisor?
by mattg
2019-05-24 09:45
Forum: SpamAssassin implementation discussions
Topic: Forward SPAM mails from spam assassin to another account with SAPM HEADER
Replies: 2
Views: 301

Re: Forward SPAM mails from spam assassin to another account with SAPM HEADER

catch with a global rule and forward to a new recipient, then delete the original

If subject contains 'Spam header'
AND
Recipient list not contain 'spam@example.com'

THEN
Forward to spam@example.com
Delete Message
by mattg
2019-05-24 01:07
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2135

Re: Programmatically set retry count/delay amount

cblaze22 wrote:
2019-05-23 13:45
Will that syntax work within the normal script methods. I know I had to initialize the DeliveryQueue with the COM API outside of it.
Had to, or choose to?

As long as you can get the MessageID it should work. Getting the messageID may be a problem.
When do you check the response code?
by mattg
2019-05-24 01:03
Forum: General discussions
Topic: RDNS probllem.
Replies: 1
Views: 248

Re: RDNS probllem.

rjung wrote:
2019-05-23 10:13
(most of the mail servers mark mail as spam because rdns doesnt work
How do you know this??

ALSO, how exactly do you figure that hMailserver impacts on what your RDNS is?
by mattg
2019-05-24 01:01
Forum: General discussions
Topic: Code: HM4403
Replies: 31
Views: 1895

Re: Code: HM4403

Don't know if it is relevant but I have this in my INI DNSBLChecksAfterMailFrom=0 ; DNSBLChecksAfterMailFrom now works. It was removed during the re-design of the spam protection but have been added again. ; By default, hMailServer runs DNS blacklists checks after SMTP/MAIL FROM. ; Some users prefer...
by mattg
2019-05-23 09:56
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2135

Re: Programmatically set retry count/delay amount

yes, I think that should work
by mattg
2019-05-23 09:54
Forum: General discussions
Topic: Run Apache2 as user mailservice
Replies: 1
Views: 254

Re: Run Apache2 as user mailservice

Have you restarted the server since doing these things

IIS always behaved better with new permissions etc after a reboot, I'd guess apache on windows to be the same
by mattg
2019-05-22 03:38
Forum: Scripting
Topic: Mail Header Received from Unknown via GMAIL
Replies: 9
Views: 788

Re: Mail Header Received from Unknown via GMAIL

I still don't believe that that is the ONLY difference between the two messages, what about the message content, or who the sender is, or how many recipients were listed or BCCd. We all do spam assessment on the run, gmail is no different. Many of my client's emails are sent with a mail client on a ...
by mattg
2019-05-21 05:02
Forum: Scripting
Topic: Mail Header Received from Unknown via GMAIL
Replies: 9
Views: 788

Re: Mail Header Received from Unknown via GMAIL

Another point they are raising is that when their users travel to another place and uses a Public IP that has no PTR Record. They will never know if the emails they sent went to Gmail Junk Box. But the mail server serving the mail surely doesn't change IP address, only the IP address of their mail ...
by mattg
2019-05-21 04:56
Forum: General discussions
Topic: Reply to forwarded mail.
Replies: 2
Views: 260

Re: Reply to forwarded mail.

What version of hMailserver?
Can you please show your hMailserver.ini (with passwords removed)
by mattg
2019-05-20 13:14
Forum: General discussions
Topic: Bonus Message Loop if user has invalid email in forward setting
Replies: 2
Views: 305

Re: Bonus Message Loop if user has invalid email in forward setting

mk2005 wrote:
2019-05-20 12:57
is there are any Global Rule on Hmailserver to stop Forwarding Bonus Email
You can catch all messages from a daemon with a global rule
I normally do just so that I get a copy of it, not to delete them

If FROM contains 'mailer-daemon' THEN...
by mattg
2019-05-20 13:10
Forum: General discussions
Topic: Error 7760 / HM4406 - Could not read the message header, since the file was not available
Replies: 22
Views: 1568

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

Good thought...but OP has tried that without success
Gordonh1970 wrote:
2019-05-08 13:12
I have tried the DataDirectorySynchronizer (I was pretty sure that was only desaigned to add files to the database but thought it worth a shot anyway) but I am getting this error message for the same 7 files repeatedly, filling up an error log
by mattg
2019-05-19 02:52
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2135

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: 3761

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: 2603

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: 377

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: 336

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: 336

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: 323

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: 2135

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: 273

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: 2135

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: 452

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: 1224

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: 1746

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: 437

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: 1224

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: 1411

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: 2869

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: 2869

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: 477

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: 1568

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: 1746

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: 1006

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: 924

Re: Masquerade

I've added that to the docs too