Search found 472 matches

by mikedibella
2021-05-12 17:45
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

IMO, we need to select an approach. @plinka has been working on stripping the tags from the HTML body and just pass the plaintext without markup. I'm suggesting you parse the HTML body and extract relevant fields, then compose a new plaintext message using value subsitiution. Let's try to align to o...
by mikedibella
2021-05-12 05:39
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

Google says that translates to
DISTRICT
MUNICIPALITY
STREET
by mikedibella
2021-05-12 05:33
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

Here's my donation to the cause. I use this function in my HTML-scraping routines: function Between(sString, sFrom, sTo) if InStr(sString, sFrom) > 0 then sTemp = Mid(sString, InStr(sString, sFrom) + Len(sFrom)) if InStr(sTemp, sTo) > 0 then Between = Mid(sTemp, 1, InStr(sTemp, sTo) - 1) end if end ...
by mikedibella
2021-05-12 03:17
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

Well, I'm using an analogy from my youth growing up in then-rural New Jersey to speculate on the circumstances surrounding the OP's use case. The OP's example email has .cz as the TLD, which is geographically far from North America, but that doesn't necessarily invalidate the speculation.
by mikedibella
2021-05-12 00:05
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

In rural America, there are all-volunteer fire departments staffed with trained, but unpaid, responders who are on-call (at-large). There may or may not be staff at the firehouse, but when dispatch is necessary, these at-large responders many not muster at the firehouse. Sometimes only the driver wi...
by mikedibella
2021-05-11 23:00
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

IMO, he should at least explore a direct-to-SMS API instead of using a carrier SMTP-to-SMS gateway. These are rarely managed to an SLO or SLA and are generally offer "as available, when available". I would not want to be the owner of a burning house relying on mustering at-large firefighters via SMT...
by mikedibella
2021-05-11 20:45
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

OP mentions something about getting forwarded to firefighters. The message is some kind of notification about location and type of emergency. I guess firemen don't have smartphones. Well, then this is a frightening solution in it's fragility. Let me reiterate: If you need SLO/SLA based delivery, an...
by mikedibella
2021-05-11 18:21
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

Can you forward the message to a MMS gateway instead of an SMS gateway? Perhaps consider attaching the the HTML body of the message as an attachment with an HTML MIME type and .html extension, and create an alert to be delivered to the mobile device over MMS. MMS uses the control channel (SMS) to de...
by mikedibella
2021-05-10 19:08
Forum: General discussions
Topic: Rules create copy and send, sending slow
Replies: 58
Views: 1068

Re: Rules create copy and send, sending slow

You are setting the clone message's plaintext body (.Body) to the plaintext body of the source message. A better approach is to write your code to detect if there is a plaintext part, an HTML part(.HTMLBody), or both, and set one or both of the close properties with the contents of the source messag...
by mikedibella
2021-05-06 23:34
Forum: General discussions
Topic: forwarding doesn't work
Replies: 9
Views: 119

Re: forwarding doesn't work

Try adding

Code: Select all

RewriteEnvelopeFromWhenForwarding=1
to hMailServer.ini. Restart the service. Retry the operation.
by mikedibella
2021-05-06 18:29
Forum: General discussions
Topic: forwarding doesn't work
Replies: 9
Views: 119

Re: forwarding doesn't work

There is a one minute delay, by design, when forwarding using the method you describe. Check the queue (Status > Delivery queue) and you should see an item with a future Next try time. Wait a minute and the server will deliver that message.
by mikedibella
2021-05-06 02:31
Forum: General discussions
Topic: Problems with configuration
Replies: 28
Views: 362

Re: Problems with configuration

My guess is this an a use case for intranet alert messaging where the MUA (printer, router, etc) has been over-built and only a destination address can be specified and not a relay. The MAU wants to resolve the relay from the address, like an MTA would, but the authority doesn't want to have to assi...
by mikedibella
2021-05-06 01:39
Forum: General discussions
Topic: Problems with configuration
Replies: 28
Views: 362

Re: Problems with configuration

I had to remove the square braces in my hMailserver domain names tab to receive that mail. So, what would the best practice be for setting up an "address-based" domain in hMailServer? Does the domain have to be "[1.2.3.4]" with a Name alias "1.2.3.4", or should the Domain be created as "1.2.3.4" wi...
by mikedibella
2021-05-05 21:23
Forum: General discussions
Topic: MXtoolbox says 250-STARTTLS is missing
Replies: 2
Views: 64

Re: MXtoolbox says 250-STARTTLS is missing

Settings > TCP/IP Ports > Connection security

set to STARTTLS (optional).
by mikedibella
2021-05-05 17:04
Forum: General discussions
Topic: Antivirus not delete attachment for CC account
Replies: 23
Views: 230

Re: Antivirus not delete attachment for CC account

If the sending MTA splits the email into multiple deliveries for each recipient, even when they are at the same domain, then hMailServer will see multiple copies of the same dataset and run AV on each. You need to review logs to determine if that is what happened in the case you are describing.
by mikedibella
2021-05-05 00:29
Forum: General discussions
Topic: Antivirus not delete attachment for CC account
Replies: 23
Views: 230

Re: Antivirus not delete attachment for CC account

Interesting that one of the Defender HRESULT codes is: 0x80501004 ERROR_MP_NO_INTERNET_CONN Check your Internet connection, then run the scan again. (see https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/troubleshoot-microsoft-defender-antivirus?view=o365-worldwide) This lead...
by mikedibella
2021-05-04 19:48
Forum: General discussions
Topic: Antivirus not delete attachment for CC account
Replies: 23
Views: 230

Re: Antivirus not delete attachment for CC account

No. The .eml filename is a guid that is linked to a database record.
by mikedibella
2021-05-04 18:26
Forum: General discussions
Topic: Antivirus not delete attachment for CC account
Replies: 23
Views: 230

Re: Antivirus not delete attachment for CC account

IIRC %FILE% passes the filename of the .eml file, not the attachment. So your script could use the hMailServer API to save each attachment to a temporary file, delete it from the message, rename the file if a problem filename is detected, scan the file, and only re-attach the file if it is clean. Re...
by mikedibella
2021-05-04 17:55
Forum: General discussions
Topic: Antivirus not delete attachment for CC account
Replies: 23
Views: 230

Re: Antivirus not delete attachment for CC account

The only way you'll avoid the "split decision" you describe is to catch failed scans and retry them, hoping that only one retry is needed to reach a pass/fail. You can't retry infinitely without creating blocking condition in mail processing.
by mikedibella
2021-05-04 17:10
Forum: General discussions
Topic: Antivirus not delete attachment for CC account
Replies: 23
Views: 230

Re: Antivirus not delete attachment for CC account

You could wrap the execution of MpCmdRun.exe in a script and read and parse the console output, looking for output strings that differentiate between clean scan, failed scan, and infected scan results. You need to simulate each result to see what output is produced and devise the filtering criteria ...
by mikedibella
2021-05-04 05:24
Forum: General discussions
Topic: Load Balance Issue
Replies: 19
Views: 362

Re: Load Balance Issue

Finally got around to testing this in the lab. This monitor works for me...
smtp_withhost.JPG
BIG-IP Monitor for hMailServer
by mikedibella
2021-05-01 21:17
Forum: General discussions
Topic: Load Balance Issue
Replies: 19
Views: 362

Re: Load Balance Issue

https://support.f5.com/csp/article/K4314

Code: Select all

monitor SMTP_WithHost { 
	defaults from smtp
	interval 5 
	timeout 16 
	send "HELO anyhost\r\n" 
	recv "250 Hello." 
} 
by mikedibella
2021-05-01 03:55
Forum: General discussions
Topic: Load Balance Issue
Replies: 19
Views: 362

Re: Load Balance Issue

Test for yourself. Open a telnet session to your mail server:

Code: Select all

telnet mail.mydomain.com 25
Send:

Code: Select all

HELO
server will respond

Code: Select all

501 HELO Invalid domain address.
Send:

Code: Select all

HELO X
server will respond

Code: Select all

250 Hello.
by mikedibella
2021-04-30 22:07
Forum: General discussions
Topic: Load Balance Issue
Replies: 19
Views: 362

Re: Load Balance Issue

The LB is send the HELO verb without the required hostname parameter. If you can't configure the LB to send an arbitrary string, write a custom monitor if your LB supports it, or just use a TCP Open monitor.
by mikedibella
2021-04-30 21:28
Forum: General discussions
Topic: Load Balance Issue
Replies: 19
Views: 362

Re: Load Balance Issue

Enable SMTP logging on hMailServer and send a snippet of that log when the LB polls.
by mikedibella
2021-04-30 18:59
Forum: General discussions
Topic: Load Balance Issue
Replies: 19
Views: 362

Re: Load Balance Issue

Fix or disable HELO checking:

Settings > Anti-spam > Spam tests > uncheck Check host in the HELO command

https://www.hmailserver.com/documentati ... e_antispam
by mikedibella
2021-04-28 20:06
Forum: General discussions
Topic: Retries
Replies: 8
Views: 151

Re: Retries

by mikedibella
2021-04-28 20:04
Forum: General discussions
Topic: Retries
Replies: 8
Views: 151

Re: Retries

Generate a delivery delay notification to the sender using the OnDeliveryFailed event.
by mikedibella
2021-04-27 02:16
Forum: General discussions
Topic: Hmail to replace on premise Exchange server?
Replies: 3
Views: 161

Re: Hmail to replace on premise Exchange server?

Set up a SMTP relayer with Office365 credentials on port 587 to send mail received via your Office365 account Authenticating to MSOL on port 587 supports sending as that authenticated user's identity only. Instead of using 587, you'll want to create an IP address validated Connector and submit mail...
by mikedibella
2021-04-24 20:50
Forum: General discussions
Topic: getting error while sending email to office 365 users
Replies: 19
Views: 529

Re: getting error while sending email to office 365 users

Do you have to use 202.56.215.54 as your responder? There are a number of reliable global alternatives:

CloudFlare 1.1.1.1
Quad9 9.9.9.9
Google 8.8.8.8, 8.8.4.4
by mikedibella
2021-04-22 21:52
Forum: User contributed hMailServer 5 scripts
Topic: Telerivet SMS Gateway
Replies: 6
Views: 499

Re: Telerivet SMS Gateway

Hmmm...so what could be allowed by IsNumeric() that this code would catch?
by mikedibella
2021-04-22 21:46
Forum: User contributed hMailServer 5 scripts
Topic: Telerivet SMS Gateway
Replies: 6
Views: 499

Re: Telerivet SMS Gateway

I thought about that but SMS short codes means that the destination number can really be any length.
by mikedibella
2021-04-22 19:58
Forum: User contributed hMailServer 5 scripts
Topic: Telerivet SMS Gateway
Replies: 6
Views: 499

Telerivet SMS Gateway

Here's the completed scripting for the generic Telerivet SMS Gateway that has been evolving on a few other threads on the forums. This version of the script is designed to be used with a gateway mailbox on a domain enabled for Plus addressing using the "+" character as the delimiter. Other delimiter...
by mikedibella
2021-04-22 01:20
Forum: Scripting
Topic: Plus Addressing in Scripts
Replies: 9
Views: 469

Re: Plus Addressing in Scripts

As I have already explained elsewhere ( https://www.hmailserver.com/forum/viewtopic.php?p=228548#p228548 ) there is NO way around this if you have to use aliases or a catch-all address. The best you can do is read recipients from the MIME "To" header. In rare cases you will send the same message mu...
by mikedibella
2021-04-20 00:30
Forum: Scripting
Topic: Plus Addressing in Scripts
Replies: 9
Views: 469

Re: Plus Addressing in Scripts

I did read that post when you submitted it but it didn't click because the use case was virtual mailbox with static SMS recipient. Now I see that it directly applies to this evolved use case. So my current implementation will only work for single-address messages. That's an acceptable limitation for...
by mikedibella
2021-04-19 23:29
Forum: Scripting
Topic: Plus Addressing in Scripts
Replies: 9
Views: 469

Re: Plus Addressing in Scripts

OriginalAddress does preserve the Plus portion of the address, but @SorenR fears proved true: multiple addressing to the same Userid portion, but with unique Plus portion are consolidated. Perhaps a solution would be to use a unique subdomain for the gateway, i.e. sms.domain.com, and a catch-all, wi...
by mikedibella
2021-04-19 20:12
Forum: Scripting
Topic: Plus Addressing in Scripts
Replies: 9
Views: 469

Plus Addressing in Scripts

See code below. I'm coming back to have another look at a script the community was helping with to forward emails to an SMS gateway. The original solution created a "virtual mailbox" that forwarded all email for a particular user to a specific designated SMS address. I was playing with that code to ...
by mikedibella
2021-04-17 06:13
Forum: General discussions
Topic: Relay all outbound email at domain level
Replies: 40
Views: 1645

Re: Relay all outbound email at domain level

You can use a Route to deliver outbound mail, but, by default, a Route is selected when: 1. A local Domain matching the recipient does not exist, or the Domain does exist but there is no Account for the recipient AND 2. the recipient domain matches the Route name . If you want to direct mail to a Ro...
by mikedibella
2021-04-16 01:23
Forum: General discussions
Topic: How to configure hMailServer to delete a message after it is retrived?
Replies: 8
Views: 524

Re: How to configure hMailServer to delete a message after it is retrived?

I'd suggest you need to enforce Quotas. IMO, your customers will expect to be able to use all the storage they are entitled to. You, as the authority, are within your right police them if they exceed that. That might be to enforce deletion of older messages or some other consequence.
by mikedibella
2021-04-15 03:21
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

Someone keep me honest...are those constants (vbCR, vbLf, VBCrLf) supported in HMS script? Otherwise: sub SendAsSMS(oMessage) ' set URL to match your PROJECT const HTTP_HANDLER = "https://api.telerivet.com/v1/projects/PROJECT_CODE/messages/send" ' set api-key to your developer account const API_KEY ...
by mikedibella
2021-04-15 03:16
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

sMessage = oMessage.Body ' encode line breaks sMessage = Replace(sMessage, vbCR, "") sMessage = Replace(sMessage, vbLf, "\n") sub SendAsSMS(oMessage) ' set URL to match your PROJECT const HTTP_HANDLER = "https://api.telerivet.com/v1/projects/PROJECT_CODE/messages/send" ' set api-key to your develop...
by mikedibella
2021-04-14 06:55
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

Longshot:

Under project's settings (https://telerivet.com/p/PROJECT/messaging_settings), do you have Automatically create contact for each message checked?
by mikedibella
2021-04-14 04:24
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

+1 for North American Dialing Plan.

{"to_number": "+1614xxxxxxxx"

or are you in AU, CX or CC?
by mikedibella
2021-04-14 03:54
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

Try putting a plus "+" in front of the number. I was able to get a successful simulated message to submit using this north american dial plan format: +12223334444
by mikedibella
2021-04-14 03:38
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

Code: Select all

EventLog.Write sPostData
might help too.
by mikedibella
2021-04-14 03:34
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

Sure that you are adding the recipient number to the message as the X-SMS-Recipient header if you want to use the code as I have crafted. You can do it with the Rule Set header Action.
by mikedibella
2021-04-14 03:24
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

Add:

Code: Select all

EventLog.Write oHTTP.ResponseText
Between:

Code: Select all

oHttp.send sPostData
set oHttp = nothing
Then test and send the logging in the eventlog file.
by mikedibella
2021-04-14 02:56
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

Make sure you update the api url to include your project id.

The code you are using also expect the to address in the X-SMS-Recipient header.
by mikedibella
2021-04-14 01:47
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

In an original post I had left a debugging statement in place. It would have started with "wscript.echo". Remove that entire line.
by mikedibella
2021-04-14 01:26
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

In this particular use case I'm thinking the OP wants to create a "virtual mailbox" that receives mail via SMTP and dispatches via SMS. So, I'm not sure all this header-parsing complexity matters. I'm thinking the best way to handle this is with a mailbox rule that fires a script Sub that sends the ...
by mikedibella
2021-04-13 21:14
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

I setup a developer account on Telerivet to test the code. Here are my observations: 1. The sample code only generates "simulated"messages. To deliver messages to mobile endpoints, you need a from_address in the JSON and a defined Route in Telerivet. Routes monetize message transfer, so I stopped te...
by mikedibella
2021-04-13 03:16
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

Using this example (https://telerivet.com/api/rest): curl -s -u YOUR_API_KEY: \ "https://api.telerivet.com/v1/projects/PROJECT_ID/messages/send" \ -H "Content-Type: application/json" \ -d '{ "content": "hello world", "to_number": "+16505550123" }' Forwarding a message to a STATIC destination would l...
by mikedibella
2021-04-13 02:24
Forum: Scripting
Topic: Email to HTTP
Replies: 98
Views: 3035

Re: Email to HTTP

hMailServer doesn't support the SMS API interface natively, but you can create a simple interface using VBScript and hMailServer's rules engine will fire it for you. This might help you get started, but you'll need to read and understand the API documentation to correctly format the API method invoc...
by mikedibella
2021-04-09 22:51
Forum: General discussions
Topic: Message Encryption
Replies: 3
Views: 336

Re: Message Encryption

1) Are the messages stored in SQL Server or in files on the server? Stored in files under the Data directory. The Queue is in the root, inboxes are store in subfolders by domain, then username. 2) if they are stored in files, can the files be encrypted so they content cannot be viewed with e text e...
by mikedibella
2021-04-08 18:21
Forum: General discussions
Topic: ERROR: unable to bind to address using cloudflare
Replies: 30
Views: 1159

Re: ERROR: unable to bind to address using cloudflare

Is the A record for your mail host (the record for the hostname the MX record returns) set to DNS Only? If it set to Proxied, it needs to be changed.
by mikedibella
2021-04-08 02:30
Forum: General discussions
Topic: How to configure hMailServer to delete a message after it is retrived?
Replies: 8
Views: 524

Re: How to configure hMailServer to delete a message after it is retrived?

I don't think the event handlers give you visibility into that level of detail. OnClientConnect will tell you that a client connected on a particular port; you don't get any detail into what the client is doing beyond that. Why don't you have the mail client handle mailbox cleanup? Most clients have...
by mikedibella
2021-04-07 01:25
Forum: General discussions
Topic: Rule Action to trigger an URL
Replies: 3
Views: 340

Re: Rule Action to trigger an URL

Code: Select all

Sub TriggerFetch(oMessage)
	const HTTP_HANDLER = "http://mywebsite.com:8080/scripts/rcron.php"
	Set oHttp = CreateObject("Msxml2.ServerXMLHTTP.6.0")
	oHttp.open "GET", HTTP_HANDLER, false
	oHttp.send 
	set oHttp = nothing
End Sub
by mikedibella
2021-04-01 22:39
Forum: General discussions
Topic: Installation error: "The set-up failed to set the service dependency"
Replies: 8
Views: 531

Re: Installation error: "The set-up failed to set the service dependency"

Make sure you are installing from a user in the local Administrators group, running the installer from an elevated (run as administrator) cmd.exe window.
by mikedibella
2021-03-29 23:46
Forum: General discussions
Topic: Cannot resolve MX
Replies: 83
Views: 3809

Re: Cannot resolve MX

I queried the wrong record. Your MX record looks good: > server 1.1.1.1 Default Server: one.one.one.one Address: 1.1.1.1 > set type=mx > pentaservis.cz Server: one.one.one.one Address: 1.1.1.1 Non-authoritative answer: pentaservis.cz MX preference = 10, mail exchanger = mail.pentaservis.cz > Your A ...
by mikedibella
2021-03-29 23:01
Forum: General discussions
Topic: Cannot resolve MX
Replies: 83
Views: 3809

Re: Cannot resolve MX

From what I see you do not have your MX record configured correctly. This is the query result: > server 1.1.1.1 Default Server: one.one.one.one Address: 1.1.1.1 > set type=mx > mail.pentaservis.cz Server: one.one.one.one Address: 1.1.1.1 Non-authoritative answer: mail.pentaservis.cz canonical name =...