Search found 185 matches

by cblaze22
2019-05-07 23:37
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 10529

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

Well that is neat, but where do you think the best place to call this?
by cblaze22
2019-05-07 18:10
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 2147

Re: OnDeliverMessage placement of call

Can you set the deliverytime of a message in the OnDeliverMessage method?
by cblaze22
2019-05-07 18:08
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 10529

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

Ok so I have no idea what the point was of stating its C# code. VBScript can also use the COM API, so the statement was irrelevant. So again, can that code be used in the OnDeliverMessage method. I dont see why not?
by cblaze22
2019-05-07 17:07
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 10529

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

Im a programmer, already programmed a VBScript to remove bounced messages within HMailServer so I know what I am doing. I however dont know the logistics of how HMailServer flows. You just said its written in c++ but the admin panel IS NOT written in just c++, https://github.com/nberardi/hMailServer...
by cblaze22
2019-05-07 16:15
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 10529

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

Ok I feel like I am getting contradictory responeses with these methods. So OnDeliverMessage is when it goes INTO the queue. Meaning it has a Message ID, meaning I can run the code below to put it at the top of the queue. Please confirm. WaitCursor waitCursor = new WaitCursor(); hMailServer.Delivery...
by cblaze22
2019-05-07 16:13
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 2147

Re: OnDeliverMessage placement of call

What do you mean by "And yes, if you want this to happen you need to create a stand-alone script to monitor the queue and act accordingly."? Also there has to be a method hook for this. I cant believe we cant do anything to a message before it goes into the queue or right after. Should be an easy th...
by cblaze22
2019-05-07 16:11
Forum: General discussions
Topic: Firing Order
Replies: 5
Views: 1618

Re: Firing Order

What kind of answer is that?
by cblaze22
2019-05-07 14:07
Forum: General discussions
Topic: Firing Order
Replies: 5
Views: 1618

Re: Firing Order

Does Global Rules after Accept Message get executed before going in Queue? Also does it have a Message ID at that point?
by cblaze22
2019-05-07 13:36
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 2147

Re: OnDeliverMessage placement of call

You say that but you were incorrect about the OnDeliveryFailed method. The code below sends an email right away. So you are telling me there is no place in the HMailServer scripting this can happen? private void menuItemSendNow_Click(object sender, EventArgs e) { WaitCursor waitCursor = new WaitCurs...
by cblaze22
2019-05-07 13:33
Forum: Scripting
Topic: Saving oMessage in OnAcceptMessage to Get MessageID
Replies: 10
Views: 2926

Re: Saving oMessage in OnAcceptMessage to Get MessageID

Is there a method that is available, that has the ID, but is called before it goes into the queue or right after it goes in the queue.

My goal is to send the email immediately based on a header instead of say waiting in the queue for a hour to be processed because an important email is backed up.
by cblaze22
2019-05-07 13:31
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 10529

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

Ok work with me here. I have posted that exact code you did multiple times without much luck on a good response. If I wanted to use that code to send something right away, based on say a header, where would I put it? The OnAcceptMessage doesnt have a ID and that is when its placed in the queue right...
by cblaze22
2019-05-07 13:28
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

If I send an email to say info@test.com from noreply@test.com, it forwards to my gmail account. We do this so we can test with our own domain otherwise it stays in a loop in HMailServer and never makes it through.

Plus dont we need domains so we can use the DKIM?
by cblaze22
2019-05-07 07:18
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 2147

Re: OnDeliverMessage placement of call

When an email is added to the end of the queue, say index 40,000, so at the end. Does OnDeliverMessage get called then WITH AN ID, or does OnDeliverMessage get called after all 39,000 get processed on that one email? I am trying to find a location to immediately deliever an email based on a header a...
by cblaze22
2019-05-07 07:08
Forum: Scripting
Topic: Saving oMessage in OnAcceptMessage to Get MessageID
Replies: 10
Views: 2926

Saving oMessage in OnAcceptMessage to Get MessageID

I found this in the code base below. The Message ID is not available in the OnAcceptMessage, however if you hit .Save like it shows below, will that assign an ID to the message so we can send it out for delivery right away. PLEASE SOMEONE CONFIRM! [Test] public void TestAddTextDuringSending() { hMai...
by cblaze22
2019-05-07 07:02
Forum: Scripting
Topic: Reading oMessage-ID in OnAcceptMessage-Event
Replies: 3
Views: 2250

Re: Reading oMessage-ID in OnAcceptMessage-Event

Can you call .Save in the OnAcceptMessage to get the ID?
by cblaze22
2019-05-07 05:55
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

I control the servers that have permission to send to this server. It only sends out email via SMTP.

I use the domains for any loop issues, so emails will go to an external email by taking advantage of the forwarding.
by cblaze22
2019-05-07 05:14
Forum: Scripting
Topic: VBScript Regex to Grab Status Code and Test If 500 or higher.
Replies: 9
Views: 2598

Re: VBScript Regex to Grab Status Code and Test If 500 or higher.

Not working 3544 "2019-05-06 23:09:51.609" "Running" 3544 "2019-05-06 23:09:51.609" "Error Type: SMTP[nl] Remote server (166.216.149.129) issued an error.[nl] hMailServer sent: RCPT TO:<8583390609@txt.att.net>[nl] Remote server replied: 550 5.1.1 <8583390609@txt.att.net> recipient does not exist h...
by cblaze22
2019-05-06 15:37
Forum: Scripting
Topic: VBScript Regex to Grab Status Code and Test If 500 or higher.
Replies: 9
Views: 2598

Re: VBScript Regex to Grab Status Code and Test If 500 or higher.

I assume this will work Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) Dim regex, matches, match, strResult, valInt Set regex = New RegExp regex.IgnoreCase = True regex.Pattern = "^(?:.*Remote server replied:\s)([0-9]{3})(?:\s.*)$" Set matches = regex.Execute(sErrorMessage) If matches.Cou...
by cblaze22
2019-05-06 14:41
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 2147

Re: OnDeliverMessage placement of call

Can you execute .Save on the message to get the ID?
by cblaze22
2019-05-06 14:40
Forum: Scripting
Topic: VBScript Regex to Grab Status Code and Test If 500 or higher.
Replies: 9
Views: 2598

Re: VBScript Regex to Grab Status Code and Test If 500 or higher.

Thanks but is the strResult an integer where I can do

Code: Select all

IF strResult  >= 500

' run code

END IF
by cblaze22
2019-05-06 14:33
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

Below are my results. I also donated to HMailServer a few days ago so we do appreciate you. 2019-05-06 Hmailserver: 5.6.4-B2283 DOMAINS "Domain1.com" - emxxx.exxxxxxxxxxxxx.com Enabled: True SIGNATURE LIMITS DKIM ADVANCED Enabled: False Max size: 0 Enabled: True Max message size: 0 Header: Relaxed P...
by cblaze22
2019-05-06 14:21
Forum: General discussions
Topic: Send now, doesnt send now
Replies: 8
Views: 948

Re: Send now, doesnt send now

Well I would first need to check for headers for the important flag and go from there but shouldnt someone know how this method works or if .Save will save the message getting us an ID?
by cblaze22
2019-05-06 06:40
Forum: General discussions
Topic: Send now, doesnt send now
Replies: 8
Views: 948

Re: Send now, doesnt send now

In your opinion then is it possible to run the method below, which is the "send now" logic within that method? I assume no because we dont have a MessageId? Is there no way to call .SAve on the message so we can get the messageId? I assume the code below does send the email right away, bypassing the...
by cblaze22
2019-05-06 06:34
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 2147

Re: OnDeliverMessage placement of call

So where in that chain of commands does the message get put in the queue?
by cblaze22
2019-05-06 06:29
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

I bumped it up to 100

7GB, currently only 3.5GB is being used.

I can get more cores and will probably do that before next weekend.

Probably over 100,000 per weekend day.

No need to test for Spam since we are sending the emails. Is there a way to turn that off so things go faster?
by cblaze22
2019-05-06 04:51
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

0 retry. I mean I am on Azure with 2 cores and nothing else is used on this server except HMailServer. We just get so many notificadtions that come in I guess HMailServer cant keep up.

My Threading is

5
25
50
Highest
by cblaze22
2019-05-06 04:48
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 2147

OnDeliverMessage placement of call

When does OnDeliverMessage get called? Before a message goes into the queue, when its the one being processed in the queue, after its been delivered?
by cblaze22
2019-05-06 03:09
Forum: Scripting
Topic: VBScript Regex to Grab Status Code and Test If 500 or higher.
Replies: 9
Views: 2598

VBScript Regex to Grab Status Code and Test If 500 or higher.

I need a VBScript to Grab Status Code and Test If 500 or higher. I can do this in .NET no problem but VBScript syntax is a little harder for me. The pattern is below but how would i test the string below to grab the 421, then do an IF statement on it (statusCode >= 500)? ^.*Remote server replied: (?...
by cblaze22
2019-05-06 02:56
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

Yep....I run a tournament management service that sends game notifications so we have thousands going out a day
by cblaze22
2019-05-06 02:55
Forum: Scripting
Topic: Get status code of error message
Replies: 7
Views: 1619

Re: Get status code of error message

Cause I wrote it?????????

Code: Select all

   Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage)
EventLog.Write(sErrorMessage)
   End Sub
by cblaze22
2019-05-05 15:35
Forum: Scripting
Topic: Get status code of error message
Replies: 7
Views: 1619

Re: Get status code of error message

Are you sure about this? We received this message below in our logs from that method. That seems like a message from a delivery fail? "Error Type: SMTP[nl] Remote server (35.173.65.153) issued an error.[nl] hMailServer sent: [nl] Remote server replied: 421 spr-ibgw-5001a.stratus.cloudmark.com cmsmtp...
by cblaze22
2019-05-05 14:11
Forum: General discussions
Topic: Send now, doesnt send now
Replies: 8
Views: 948

Re: Send now, doesnt send now

Ok work with me here. The below message is called before it goes in the queue correct?

Code: Select all

OnAcceptMessage(oClient as hMailServer.Client, oMessage as hMailServer.Message)
If so can I check a header in this method and call the send now method you said I could. What would the correct syntax be ?
by cblaze22
2019-05-05 14:09
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

That will clear all legit emails, like 39,000 of them.
by cblaze22
2019-05-05 14:06
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 10529

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

Work with me here. The message below, is it executed before it gets into the queue?

Code: Select all

OnAcceptMessage(oClient as hMailServer.Client, oMessage as hMailServer.Message)
If so how is the queue sorted and how does the "send now" button work in the queue to make emails go right away?
by cblaze22
2019-05-05 06:49
Forum: General discussions
Topic: Send now, doesnt send now
Replies: 8
Views: 948

Re: Send now, doesnt send now

Ill take your word for it.

Is there anyway to use that function "send not" through scripting?
by cblaze22
2019-05-05 05:15
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

Well that sucks big time. I have like 1000 no reply messages just sitting in my queue because I cant delete them.
by cblaze22
2019-05-05 05:03
Forum: Scripting
Topic: Get status code of error message
Replies: 7
Views: 1619

Re: Get status code of error message

Sorry I am not following these comments
OnDeliveryFailed is only for incoming messages that accepted by hMailserver

It fires for me ONLY when a global rule deletes a message
by cblaze22
2019-05-05 04:01
Forum: Scripting
Topic: Get status code of error message
Replies: 7
Views: 1619

Get status code of error message

Is there a strongly typed way to get the status code of a bounced email from? Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) I know I can parse the message below but thought there was an easier way. Also if I had to parse the string what is [nl]? "Error Type: SMTP[nl] Remote server (35.17...
by cblaze22
2019-05-05 02:59
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 10529

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

Where can we move emails that come in to the top of the queue to be processed first based on a priority flag found in the header of the email?

Where is the best place to do this with scripting and is there anyone we can hire to do this for us?
by cblaze22
2019-05-05 02:47
Forum: General discussions
Topic: Send now, doesnt send now
Replies: 8
Views: 948

Send now, doesnt send now

Shouldnt the "send now" selection on something in the queue move it up the list and send it. I did this and the messages stay in the system for quite a while.
by cblaze22
2019-05-05 02:45
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

Its still in my queue for processing. Does the rule not process until after it runs in the queue? Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Return-Path: <> Message-ID: <9CFA04F2-937F-4DD2-8D7C-979B88E01B0F@test.com> Date: Sat, 4 May 2019 18:43:00 -0400 From: mailer-daemon@test.com ...
by cblaze22
2019-04-29 04:31
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

If I put the rule to drop messages to noreply@test.com on the global level, will it then drop it?

Keep in mind the message says To: noreply@test.com, which is an account within HMailServer, so it wont go anywhere anyway.
by cblaze22
2019-04-28 15:07
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Re: Delete noreply still showing in queue

It is on the account level otherwise it would delete all emails.

General
Name: Delete
Enabled

Criteria
Use And
Message Size Greater than 0

Actions
Delete e-mail
by cblaze22
2019-04-28 05:25
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 3270

Delete noreply still showing in queue

I setup a rule to delete anything going to noreply email address by testing if the message size > 0 and doing an action of delete on a rule on the account. However, the queue still shows new items in it going to noreply? I would think they wouldnt hold up the queue in processing. We do about 1 milli...
by cblaze22
2019-04-02 20:55
Forum: General discussions
Topic: Priority on certain mail messages
Replies: 8
Views: 1682

Re: Priority on certain mail messages

Well my question was on tagging emails with a header, but I didnt know if there was an alternative or loophole on how to do this from hmailserver itself, like targeting the FROM email or something. From your answer I believe this isnt anything like that nor will there be.
by cblaze22
2019-04-02 00:06
Forum: General discussions
Topic: Priority on certain mail messages
Replies: 8
Views: 1682

Re: Priority on certain mail messages

There is no way to create something that will send certain messages from an email address or set something so it gets sent before other emails?
by cblaze22
2019-04-01 23:55
Forum: General discussions
Topic: Priority on certain mail messages
Replies: 8
Views: 1682

Priority on certain mail messages

Is there a way to set the priority on certain emails that would be sent first before say a backlog of normal items in a queue? I know you can set headers like the one below but does HMailServer take into account anything like this when sending email so it wouldnt have to wait in a long queue. $heade...
by cblaze22
2019-02-25 05:53
Forum: Feature requests
Topic: HTTP trigger or callback
Replies: 6
Views: 3041

Re: HTTP trigger or callback

I really don’t know what would go in a Poll? This is a common feature in SMTP services where you can send a HTTP request to an endpoint for a certain status code with email address. That way the client calling HMailServer can remove that email. The logic would be simple like a selection of status co...
by cblaze22
2018-07-25 07:49
Forum: General discussions
Topic: Could not retrieve PTR record for IP (false)
Replies: 19
Views: 3034

Re: Could not retrieve PTR record for IP (false)

Well I restarted the server to bring it back down to 2 CPUs and it started chucking out 1000 emails every 10 minutes. For some reason the processing of the emails was just so slow or something was failing that they couldnt get processed and things kept getting backed up.
by cblaze22
2018-07-25 07:45
Forum: General discussions
Topic: Could not retrieve PTR record for IP (false)
Replies: 19
Views: 3034

Re: Could not retrieve PTR record for IP (false)

I meant alerts like the queue exeeds a limit, and yes you can send an email just use a different SMTP server like gmail as backup or a HTTP endpoint call. There should already be something for callbacks for certain status codes so we can remove emails off mailing lists that cause bad reputation.
by cblaze22
2018-07-25 06:08
Forum: General discussions
Topic: Could not retrieve PTR record for IP (false)
Replies: 19
Views: 3034

Re: Could not retrieve PTR record for IP (false)

13K emails down to 9K since the posting of this. I have it set to number of retries to 0. I am wondering if some sort of networking issue occurred where so many failed that the queue got backed up. HMailserver should really have some alerts and callbacks built in by now. That would be such a benefit...
by cblaze22
2018-07-25 05:04
Forum: General discussions
Topic: Send now button and queue mechanics
Replies: 2
Views: 600

Re: Send now button and queue mechanics

I have had it set to 100/50/50 under threading. 16 CPU machine here.
by cblaze22
2018-07-25 04:28
Forum: General discussions
Topic: Could not retrieve PTR record for IP (false)
Replies: 19
Views: 3034

Re: Could not retrieve PTR record for IP (false)

Appreciate the help. I am using 5.6.4-B2283

What do you think about this session? Is it normal? I attached a screenshot.
by cblaze22
2018-07-25 04:08
Forum: General discussions
Topic: Send now button and queue mechanics
Replies: 2
Views: 600

Send now button and queue mechanics

I have a huge queue with items I am trying to get down. The Send now button on an item doesnt seem to work very well. I figured it would send it right away but it stays stuck in the queue. Is it waiting for something to finish up or something?
by cblaze22
2018-07-25 03:59
Forum: General discussions
Topic: Could not retrieve PTR record for IP (false)
Replies: 19
Views: 3034

Re: Could not retrieve PTR record for IP (false)

No we have a notification system. Stuff is getting backed up and failing. I see no spam warnings in my logs. I have been doing this for 8+ years now.
by cblaze22
2018-07-25 03:02
Forum: General discussions
Topic: Could not retrieve PTR record for IP (false)
Replies: 19
Views: 3034

The client has timed out. Session:

Just a heads up on a totally different server I am getting the same client timeouts.
by cblaze22
2018-07-25 02:57
Forum: General discussions
Topic: Could not retrieve PTR record for IP (false)
Replies: 19
Views: 3034

Re: Could not retrieve PTR record for IP (false)

I boosted the server from 2CPU to 16CPU with a ton more ram. I am manually sending them in large batches and seems to be clearing it up. After I do this I am going to see if the queue gets backed up again. Still not sure why the client timeout stuff is happening.
by cblaze22
2018-07-25 01:17
Forum: General discussions
Topic: Could not retrieve PTR record for IP (false)
Replies: 19
Views: 3034

Re: Could not retrieve PTR record for IP (false)

I hope this works. I made the email test@. "DEBUG" 3752 "2018-07-24 18:59:42.622" "External delivery process completed" "DEBUG" 3752 "2018-07-24 18:59:42.622" "Summarizing delivery result" "DEBUG" 3752 "2018-07-24 18:59:42.622" "Summarized delivery results" "DEBUG" 3752 "2018-07-24 18:59:42.622" "De...