Search found 19646 matches

by mattg
2019-05-06 10:22
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 167

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

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

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

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

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

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

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

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: 40
Views: 13916

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

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

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

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

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

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
by mattg
2019-05-05 03:42
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 543

Re: Delete noreply still showing in queue

Correct, for a rule to run on a message, hmailserver needs to process that message (by running it in the queue)
by mattg
2019-05-05 03:40
Forum: General discussions
Topic: Send now, doesnt send now
Replies: 8
Views: 189

Re: Send now, doesnt send now

They are actually sent straight away (or send next in the queue anyway) just that GUI doesn't update automatically
by mattg
2019-05-05 03:39
Forum: Off-topic discussions
Topic: Mozilla has trashed firefox again
Replies: 6
Views: 281

Mozilla has trashed firefox again

FFS

Mozilla has trashed firefox again

I hadn't updated my firefox since v56, and even it got broken by whatever they did.
I guess that my firefox was 'calling home' despite my best efforts to stop that...


ARGHHHH
by mattg
2019-05-05 01:59
Forum: Scripting
Topic: Imap vs pop and folders...
Replies: 5
Views: 1455

Re: Imap vs pop and folders...

13 year old thread, not even a record - but close, I'll give you that
by mattg
2019-05-05 01:58
Forum: General discussions
Topic: Masquerade
Replies: 14
Views: 305

Re: Masquerade

Glad you are sorted... ... and DNS will bias the AAAA record over the A. unless you have IPv6 on your WAN, all IPv6 will be converted to IPv4 for WAN access, and you can always just turn IPv4 off on all machines. The fact that windows DNS priorities IPv6 doesn't mean that all DNS does. Most Linux DN...
by mattg
2019-05-04 10:15
Forum: Feature requests
Topic: Installer and SQL Server Integrated Security
Replies: 2
Views: 157

Re: Installer and SQL Server Integrated Security

Database user name and credentials are stored in the hMailserver.ini Which database type did you try to use? What Operating system are you running hMailserver on? Is the database on the same machine? Are you installing hMailserver as an administrator? What you describe doesn't fit MySQL, Maria DB, P...
by mattg
2019-05-04 10:11
Forum: General discussions
Topic: Masquerade
Replies: 14
Views: 305

Re: Masquerade

how can I change this? You can't If the account exists locally (on hmailserver), mail will ALWAYS be delivered to the local account. This can't be changed. If the account deosn't exist on hMailserver but the domain does, you can use a SMTP route to deliver to other addresses at the same domain... D...
by mattg
2019-05-04 01:45
Forum: General discussions
Topic: Error 121
Replies: 7
Views: 193

Re: Error 121

What I still don't understand after 35 years of IT why programmers show error codes that nobody seems to know what they mean?????? What good are they to have them if they are useless. Error code 121 is useless. Please don't be rude, or you'll be shown the door Many errors in hmailserver are actuall...
by mattg
2019-05-04 01:37
Forum: General discussions
Topic: one IP, one domain problem
Replies: 6
Views: 163

Re: one IP, one domain problem

If you have all logging enabled and there is no logs then something else is blocking the connection

Either hardware 'inspecting' mail, or antivirus
by mattg
2019-05-03 11:22
Forum: General discussions
Topic: new hmail only with settings and accounts
Replies: 4
Views: 123

Re: new hmail only with settings and accounts

I'd backup all (select all options including compression)
restore to the new server, then clear all messages from each account on the new one

seems a weird request to be honest...
by mattg
2019-05-03 11:21
Forum: General discussions
Topic: one IP, one domain problem
Replies: 6
Views: 163

Re: one IP, one domain problem

Please run this and post the results >> viewtopic.php?f=20&t=30914

Also please include a few minutes of your logs (ensure that all logging is enabled and that there are some messages being rejected in the logs)
by mattg
2019-05-03 08:47
Forum: Scripting
Topic: trigger an event when an email is SENT
Replies: 21
Views: 307

Re: trigger an event when an email is SENT

The thing is that I can copy mail to a sent folder without actually sending the mail, I can also turn off adding to a a sent folder in my mail client, or changing the folder. My various mail clients all use a different 'sent' folder each by default, so I have a sent from my iphone, sent form desktop...
by mattg
2019-05-03 07:27
Forum: Scripting
Topic: trigger an event when an email is SENT
Replies: 21
Views: 307

Re: trigger an event when an email is SENT

Yes you keep saying that, but why?
What is the use case?
by mattg
2019-05-03 05:05
Forum: Scripting
Topic: trigger an event when an email is SENT
Replies: 21
Views: 307

Re: trigger an event when an email is SENT

Then why can't you do that from the SMTP message that is passing through?
Why do you need the copy placed in the SENT folder?
by mattg
2019-05-02 23:38
Forum: General discussions
Topic: one IP, one domain problem
Replies: 6
Views: 163

Re: one IP, one domain problem

Check your autoban entries...

Also we would need more of the log please, but it is possible that new infrastructure at the other end s causing this, a new router or modem or even antivirus at the client end of that connection
by mattg
2019-05-02 09:15
Forum: Feature requests
Topic: User mailbox editing
Replies: 41
Views: 26537

Re: User mailbox editing

I think for a company that is using it, the server is there property as are the emails sent through it... That really depends on where you are. In Australia you could notify staff of that prior to employment that this is the case, but you wouldn't be able to delete any emails. In Europe, I doubt th...
by mattg
2019-05-02 09:10
Forum: Scripting
Topic: exclude original email body in reply email
Replies: 5
Views: 136

Re: exclude original email body in reply email

In thunderbird if you select a blank line and reply the reply won't include the original text
Likewise if you select some text, that is all that is shown in the reply

I think you can configure Thunderbird to ignore the original completely in the reply, Thunderbird has lots of options
by mattg
2019-05-02 02:54
Forum: Feature requests
Topic: User mailbox editing
Replies: 41
Views: 26537

Re: User mailbox editing

On what basis would you delete without viewing?

Also
mattg wrote:
2017-08-05 00:57
this is clearly illegal in some jurisdictions.
by mattg
2019-05-02 01:13
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 180
Views: 32889

Re: Sub OnHELO(oClient) progress?

I get lots of them

I think they are just the bot stopping mid connection ungracefully. I think that sometimes the connections are still there waiting to be closed.
by mattg
2019-05-01 22:45
Forum: General discussions
Topic: adding virus scan signature
Replies: 8
Views: 204

Re: adding virus scan signature

Also, make sure you read the incompatible software here >> https://www.hmailserver.com/documentation/latest/?page=system_requirements This hasn't come up in many years, and suspect that IMON is no longer a part of ESET. And after looking at this >> https://support.eset.com/kb3417/?locale=en_US&viewl...
by mattg
2019-05-01 15:06
Forum: General discussions
Topic: hMailServer for productive use / which Database?
Replies: 3
Views: 214

Re: hMailServer for productive use / which Database?

Personally I use an older version of MySQL or MariaDB, but PostgreSQL is great.

You can also use a better version of SQL Server than the CE that is included.
MS SQL Server has great tools, and scales well.

How large is your large IMAP account?
Is there only the one 'large' account?
by mattg
2019-05-01 11:20
Forum: Feature requests
Topic: HCD: VBScript Support for hMailServer Crossplatform
Replies: 4
Views: 164

Re: HCD: VBScript Support for hMailServer Crossplatform

I've heard you talk about LUA before

Can you please link to some examples and web pages about LUA - I know nothing about it

Perhaps Perl or Python, something cross platform will be better. AwStats is in Perl I think
by mattg
2019-05-01 11:15
Forum: General discussions
Topic: adding virus scan signature
Replies: 8
Views: 204

Re: adding virus scan signature

Perhaps you should check with ESET on how their product works if you are unsure
by mattg
2019-05-01 10:56
Forum: General discussions
Topic: adding virus scan signature
Replies: 8
Views: 204

Re: adding virus scan signature

And how does ESET set message headers, or modify messages to say that mail is successfully scanned?
by mattg
2019-05-01 10:55
Forum: Scripting
Topic: exclude original email body in reply email
Replies: 5
Views: 136

Re: exclude original email body in reply email

The contents of a replied message are dictated by the mail client

Which mail client do you use
by mattg
2019-05-01 10:54
Forum: Scripting
Topic: trigger an event when an email is SENT
Replies: 21
Views: 307

Re: trigger an event when an email is SENT

Messages are added to SENT by an IMAP client, the actual messages are sent via SMTP

Catching when an IMAP client logs in is much trickier
by mattg
2019-05-01 10:52
Forum: General discussions
Topic: adding virus scan signature
Replies: 8
Views: 204

Re: adding virus scan signature

Which Anti virus scanning software are you using?
by mattg
2019-05-01 08:16
Forum: Scripting
Topic: trigger an event when an email is SENT
Replies: 21
Views: 307

Re: trigger an event when an email is SENT

from contains '@example.com'

if multiple domains use OR with multiple criteria
by mattg
2019-05-01 05:32
Forum: Scripting
Topic: trigger an event when an email is SENT
Replies: 21
Views: 307

Re: trigger an event when an email is SENT

In the admin GUI
Rules >> Add

criteria
from contains 'me@example.com'

action
Run Function 'MyFunction'



In your eventhandlers add

Sub MyFunction(oMessage)
'do stuff here
end sub

In admin GUI enable scripts
by mattg
2019-05-01 04:12
Forum: General discussions
Topic: Attachments buildup in root directory
Replies: 3
Views: 344

Re: Attachments buildup in root directory

Please run this and include rules
viewtopic.php?f=20&t=30914

please also show the contents of your /hmailserver/events/eventhandlers.vbs
by mattg
2019-04-30 09:31
Forum: Scripting
Topic: trigger an event when an email is SENT
Replies: 21
Views: 307

Re: trigger an event when an email is SENT

Use a global rule to catch the message then call a function as one of the actions
by mattg
2019-04-29 09:43
Forum: General discussions
Topic: fake "mail from"
Replies: 27
Views: 3764

Re: fake "mail from"

couldn't you just Internet IP range - allow only from external to local without AUTH 127.0.0.1 to 127.0.0.1 - allow with AUTH (local to local, local to external, and external to local) 10.4.1.0 to 10.4.1.255 - allow with AUTH (local to local, local to external, and external to local) 70.205.7.178 to...
by mattg
2019-04-29 09:38
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 543

Re: Delete noreply still showing in queue

cblaze22 wrote:
2019-04-29 04:31
If I put the rule to drop messages to noreply@test.com on the global level, will it then drop it?
If you have delete message as an action of a global rule will that action happen? the answer is yes
by mattg
2019-04-29 01:18
Forum: General discussions
Topic: fake "mail from"
Replies: 27
Views: 3764

Re: fake "mail from"

insomniac2k2 wrote:
2019-04-28 06:29
I needed to devise a way to treat internal domains as Local when coming from an approved IP, and reject domain impersonators from non-approved IP's.
Couldn't you just do this with IP ranges
by mattg
2019-04-29 01:16
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 543

Re: Delete noreply still showing in queue

It is on the account level... However, the queue still shows new items in it going to noreply? SO the message must be delivered to the account, before the account rule can delete it...that seems correct to me. The email error that you show has the recipient as unknown. In that instance the message ...
by mattg
2019-04-28 06:19
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 543

Re: Delete noreply still showing in queue

Can you show your rule please
Is it an account level or global level rule?
by mattg
2019-04-28 03:27
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 180
Views: 32889

Re: Sub OnHELO(oClient) progress?

Soinds good! The HCD Project on Github is splitted ofi in 4 Teams. Core, Client, Testers and Documrntation so you can choose where you wanna participate. To join the Github HCD Organization you need to 1} Create an Gizhub Account 2) Let one of the HCD Admins know you want to join You mean create a ...
by mattg
2019-04-28 03:20
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 180
Views: 32889

Re: Sub OnHELO(oClient) progress?

You've got to do a 'Pull request' I've had to play a bit to get the start end end point where I want them, but essentially you tell the 'upstream' or source repository that you'd like to integrate your changes, and then there is discussion and hopefully acceptance by the owner. You could in theory d...
by mattg
2019-04-28 03:11
Forum: General discussions
Topic: All ports blocked, is it possible?
Replies: 1
Views: 116

Re: All ports blocked, is it possible?

It's more likely that your modem / router has blocked these ports for you automatically

Check that the necessary ports are forwarded through your modem / router
by mattg
2019-04-28 03:10
Forum: General discussions
Topic: fake "mail from"
Replies: 27
Views: 3764

Re: fake "mail from"

These are the scripts that I use http://www.hmailserver.com/forum/viewtopic.php?p=68117#p68117 You also need to understand how local and external addresses work in IP ranges. The default IP ranges does stop most of this fake 'mail from', and hmailserver is deliberately designed to allow a user to AU...
by mattg
2019-04-26 14:40
Forum: General discussions
Topic: Different routes for same domain according to email address?
Replies: 3
Views: 233

Re: Different routes for same domain according to email address?

you could also use a rule to catch mail, and then use route as an action

Rules + routes
by mattg
2019-04-26 10:55
Forum: General discussions
Topic: Different routes for same domain according to email address?
Replies: 3
Views: 233

Re: Different routes for same domain according to email address?

Set up a SMTP relayer for all

Set up a SMTP route for some known addresses and add them as route addresses
by mattg
2019-04-26 01:19
Forum: Development & alpha discussions
Topic: Sub OnHELO(oClient) progress?
Replies: 180
Views: 32889

Re: Sub OnHELO(oClient) progress?

@mattg, just curious, what server you are looking into? You believe hmailserver is abandonware? Anyone heard from martin? Probably postfix & courier, but also possibly a standalone 'cipher mail' VM I have some linux boxes for web sites, and I do SPamAssassin checks on another one. I have a Windows ...