Search found 180 matches

by mikedibella
2019-11-15 06:03
Forum: General discussions
Topic: Providing a client certification to a remote server when acting as a relay
Replies: 1
Views: 62

Re: Providing a client certification to a remote server when acting as a relay

You can do that with stunnel . The config would look something like this: [SMTPwithClientAuth] client = yes accept = 127.0.0.1:2525 connect = smtp.remote-server.com:465 delay = yes CAFile = remote-server-root-certificate.pem Cert = my-client-certificate.pem key = my-client-certificate.key verify = 2...
by mikedibella
2019-11-01 04:11
Forum: Scripting
Topic: oApplication.Stop hanging
Replies: 27
Views: 886

Re: oApplication.Stop hanging

I'm going to hypothesize that the .Stop method attempts to free all of the worker threads handing comms. This would include graceful closing of open TCP connections. Since the standard way to close a TCP connection is to send a FIN to the remote and wait for the the remote to reply with the FIN, if ...
by mikedibella
2019-10-28 21:52
Forum: Scripting
Topic: oApplication.Stop hanging
Replies: 27
Views: 886

Re: oApplication.Stop hanging

Download Process Monitor (https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) and set it up to capture, filtering events to those where Process contains the name of the hMailServer service process (hMailServer.exe). Reproduce the anomaly, stop the capture, and review the events leading ...
by mikedibella
2019-10-04 23:23
Forum: User contributed hMailServer 5 scripts
Topic: Utility to set route to domain MX
Replies: 2
Views: 354

Re: Utility to set route to domain MX

For example, an old MTA, which was the lowest Preference host, is retired, and the old backup MX gets promoted by having the new lowest Preference in DNS. Eventually, another MX is introduced, which might have a different hostname, or a higher Preference. Or, multiple MX share the same Preference an...
by mikedibella
2019-10-04 00:48
Forum: User contributed hMailServer 5 scripts
Topic: Utility to set route to domain MX
Replies: 2
Views: 354

Utility to set route to domain MX

I needed a way to bypass the smart relay for some domains and send mail for these domains directly to the mail exchanger in DNS. A route in HMS will do this, but the Target SMTP Host must be statically defined. These hostnames change from time-to-time, and I wanted a way to keep the route up-to-date...
by mikedibella
2019-10-01 17:48
Forum: Scripting
Topic: Convert message with text attachment
Replies: 5
Views: 515

Re: Convert message with text attachment

Well, your request prompted me to dig deeper. It looks like the content received by hMailServer is actually MIME encoded. Received: from stcceg-mtmta04.wnsnet.attws.com (stcotaapp-apps-ts2a.mobile.att.net [166.216.152.40]) by mail.*.com with ESMTPS (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128...
by mikedibella
2019-10-01 04:45
Forum: Scripting
Topic: Convert message with text attachment
Replies: 5
Views: 515

Re: Convert message with text attachment

This is what I came up with. Sub AppendAttachment(oMessage) ' save attachment to temporary file set oFileSys = CreateObject("Scripting.FileSystemObject") sTempFile = oFileSys.GetSpecialFolder(2) & oFileSys.GetTempName oMessage.Attachments.Item(0).SaveAs sTempFile ' read attachment to string set fAtt...
by mikedibella
2019-10-01 02:14
Forum: Scripting
Topic: Convert message with text attachment
Replies: 5
Views: 515

Convert message with text attachment

I need to convert email received from several SMS gateways into more convenient format. I know I can select these messages for processing using a rule, and handle the processing using a script, but I am soliciting advice for the most efficient way to process the conversion. Reviewing the headers of ...
by mikedibella
2019-09-18 03:27
Forum: Off-topic discussions
Topic: Logins To hMailServer Form Not Secure
Replies: 5
Views: 507

Re: Logins To hMailServer Form Not Secure

If you are using Chrome you can force the site to use HTTPS by adding hmailserver.com to Chome's HSTS set at this URL: chrome://net-internals/#hsts

Be sure to tick the box for subdomains.
by mikedibella
2019-09-14 01:05
Forum: General discussions
Topic: Send mail port 587
Replies: 13
Views: 836

Re: Send mail port 587

Additionally, many servers have restrictions on the mail submission port (i.e. port 587). For instance, it is common that mail is only accepted via the submission port FROM the email address(es) associated with the account that authenticated, which precludes the submission port from being used as a ...
by mikedibella
2019-09-06 18:19
Forum: General discussions
Topic: Sending mail doesn't work
Replies: 20
Views: 778

Re: Sending mail doesn't work

You have the SPF record associated with the right DNS domain now (almight.se), but the record has errors:

https://www.dmarcanalyzer.com/spf/check ... lmighty.se
by mikedibella
2019-09-06 16:37
Forum: General discussions
Topic: Sending mail doesn't work
Replies: 20
Views: 778

Re: Sending mail doesn't work

The SPF record is for the mail domain (almighty.se), not the mail exchanger (mail.almighty.se).
by mikedibella
2019-08-31 17:25
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

Wile.E.Coyote@10.10.10.10 is a perfectly acceptable mail address. Maybe strictly speaking, but the RFC says the IP address has to be enclosed in braces:https://tools.ietf.org/html/rfc5322#section-3.4.1 Wile.E.Coyote@[10.10.10.10] And: It is therefore incumbent upon implementations to conform to the...
by mikedibella
2019-08-29 05:10
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

It appears you have an inbound block on port 25. You may also have an outbound block on port 25. You won't know until you try to send mail. If you have an outbound block you will also need an outbound smart relay (google "outbound email relay service providers") so to can submit outgoing mail on a p...
by mikedibella
2019-08-29 01:04
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

That's where is gets tricky. You can configure hMailServer to receive mail on another port, but you cannot control what port remote servers send mail to you on. By standard, remote servers will send to you on port 25. So even if you change the port you receive on to a different port, you will still ...
by mikedibella
2019-08-29 00:19
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

Your DNS records are correct now:

Code: Select all

Non-authoritative answer:
almighty.se     MX preference = 10, mail exchanger = mail.almighty.se

mail.almighty.se        internet address = 81.225.141.114
So consider port 25 might be blocked.
by mikedibella
2019-08-28 23:54
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

it may be blocked due to ISP
Possibly. Your IP addresses, 81.225.141.114, is listed in the block list dul.dnsbl.sorbs.net as a known dynamic IP address. This type of address often has port restrictions imposed by the ISP.
by mikedibella
2019-08-28 23:18
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

You are missing

Code: Select all

Name: mail.almighty.se, type: A, Data: "mypublicip", Prio: 0, TTL 3600
by mikedibella
2019-08-28 22:46
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

The data for the A record is you dotted IP address: 81.225.141.114
by mikedibella
2019-08-28 18:47
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

Using the DNS management tools for your domain, create an MX record for lollipop.se making mail.lollipop.se your mail exchanger with priority 10. Then create an A record for mail.lollipop.se that points to your public IP address. Use mail.lollipop.se as your hMailServer hostname.
by mikedibella
2019-08-28 01:58
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

That just the way email routing works. The right-hand side of an email address is not the address of the server that handle mail for that user, so you can't just place an ip address there and expect mail to be directed to a server at that address. Instead, the mail transfer agent (MTA) will use the ...
by mikedibella
2019-08-28 01:29
Forum: General discussions
Topic: User unknown error from external to internal
Replies: 3
Views: 295

Re: User unknown error from external to internal

DNS for corruptedkingdom.pw reports and MX record, but the glue A record is missing: corruptedkingdom.pw MX preference = 1, mail exchanger = corruptedkingdom.pw Change your mail exchanger to mail.corruptedkingdom.pw, set the priority to 10, and add an A record for mail.corruptedkingdom.pw pointing t...
by mikedibella
2019-08-27 19:02
Forum: General discussions
Topic: Send mail to local server from hotmail, gmail, etc.
Replies: 32
Views: 1393

Re: Send mail to local server from hotmail, gmail, etc.

Start by reviewing documentation on MX records to understand that you cannot address an email to @mypublicipaddress.

This is a decent explaination: https://practical365.com/exchange-server/mx-record/
by mikedibella
2019-08-22 22:32
Forum: General discussions
Topic: Help, Sending Mail
Replies: 25
Views: 1279

Re: Help, Sending Mail

I think your DNS is misconfigured but I'm not sure where. Here a couple of things to check: 1. If you are using multiple DNS servers in the local TCP/IP stack configuration, they all have to be replicas of the same set of zones. You can't use your local server as the first DNS entry and your ISP as ...
by mikedibella
2019-08-22 22:22
Forum: General discussions
Topic: Help, Sending Mail
Replies: 25
Views: 1279

Re: Help, Sending Mail

now run

Code: Select all

nslookup -debug -type=mx hotmail.com.
and compare the result
by mikedibella
2019-08-22 20:49
Forum: General discussions
Topic: Help, Sending Mail
Replies: 25
Views: 1279

Re: Help, Sending Mail

You are executing

Code: Select all

nslookup -norecurse -debug -type=mx hotmail.com
the correct command is

Code: Select all

nslookup -norecurse -debug -type=mx hotmail.com.
Note the period "." at the end.
by mikedibella
2019-08-22 20:18
Forum: General discussions
Topic: Help, Sending Mail
Replies: 25
Views: 1279

Re: Help, Sending Mail

Start over. The period at the end of the command is significant.
by mikedibella
2019-08-22 18:51
Forum: General discussions
Topic: Help, Sending Mail
Replies: 25
Views: 1279

Re: Help, Sending Mail

run this command: nslookup -norecurse -debug -type=mx hotmail.com. If you see Non-authoritative answer: in the response, look for the last line starting with ttl = and wait at least that amount of time , then run the command again. When you don't see Non-authoritative answer: in the response, post t...
by mikedibella
2019-08-18 19:21
Forum: Off-topic discussions
Topic: My Hmailserver professional usage....
Replies: 10
Views: 1013

Re: My Hmailserver professional usage....

Take a look at Google Cloud Platform's free tier. It will allow you to run a very small Linux VM indefinitely. With a little ingenuity you can use it as a bridgehead for incoming mail. Then check out SendGrid's free tier as your outgoing smart relay.
by mikedibella
2019-08-17 01:27
Forum: General discussions
Topic: can send, cannot receive email
Replies: 17
Views: 1155

Re: can send, cannot receive email

No. The name should be just mail.

A mail 34.214.94.163
by mikedibella
2019-08-15 17:17
Forum: General discussions
Topic: can send, cannot receive email
Replies: 17
Views: 1155

Re: can send, cannot receive email

You have an MX record for 931mev.com that resolves to mail.931mev.com, but you do not have an A record for mail.931mev.com that resolves to an IP address.
by mikedibella
2019-08-14 20:34
Forum: General discussions
Topic: Help, Sending Mail
Replies: 25
Views: 1279

Re: Help, Sending Mail

Breakdown of the response: Server: localhost Address: ::1 This machine is hosting a DNS server, and it's DNS client is configured to use the local DNS server to resolve queries. Non-authoritative answer: A remote DNS server other than the server that is the authority for the zone queried (hotmail.co...
by mikedibella
2019-08-14 16:55
Forum: General discussions
Topic: Help, Sending Mail
Replies: 25
Views: 1279

Re: Help, Sending Mail

Your nslookup command syntax is wrong.

At the command prompt, type:

Code: Select all

nslookup -type=mx hotmail.com
Post the result.
by mikedibella
2019-08-14 01:43
Forum: Off-topic discussions
Topic: Forum subscription emails
Replies: 28
Views: 2623

Re: Forum subscription emails

What was your new empty user account - mdibella? I guess I can just delete that one, and then you can change account name and email address in your settings?
@martin: you can delete the mdibella account now. The email address is now changed on my working account.
by mikedibella
2019-08-11 21:10
Forum: Off-topic discussions
Topic: Forum subscription emails
Replies: 28
Views: 2623

Re: Forum subscription emails

Great. I was able to finally activate the original forum account I created with my vanity email. But I'd like to keep the rank and post counts associated with this account. When I try to change the email address for this account to my vanity email the forum complains "The entered email address is al...
by mikedibella
2019-08-11 03:53
Forum: Off-topic discussions
Topic: Forum subscription emails
Replies: 28
Views: 2623

Re: Forum subscription emails

Well we could start by looking at a successfully received activation email to see where bounces would likely go. From there maybe martin could chime in on whether there is a mailbox to receive them.
by mikedibella
2019-08-10 17:50
Forum: Off-topic discussions
Topic: Forum subscription emails
Replies: 28
Views: 2623

Re: Forum subscription emails

I was never able to register with my vanity domain dibella(dot)net and had to use a webmail provider for the forum reg...maybe the issues are related.
by mikedibella
2019-08-07 23:06
Forum: General discussions
Topic: Using STARTTLS for message delivery
Replies: 23
Views: 1292

Re: Using STARTTLS for message delivery

Some anti-virus software may block email over secure connections becuase these emails are harder to scan. So it is conceivable that such an implementation might replace the STARTTLS keywork in the ELHO with something else, like the XXXXXXXA you are seeing. Also could be this bug: https://www.cisco.c...
by mikedibella
2019-08-07 22:47
Forum: General discussions
Topic: Using STARTTLS for message delivery
Replies: 23
Views: 1292

Re: Using STARTTLS for message delivery

I think you really need to focus on the discrepancy between what hMailServer is seeing as the EHLO response verses what mxtoolbox.com is reporting. If you issue a telnet command from the hMailServer host to the remote host esa-omf-101.exeloncorp.com on port 25, and issue the EHLO verb, do you see ST...
by mikedibella
2019-08-06 04:24
Forum: General discussions
Topic: Using STARTTLS for message delivery
Replies: 23
Views: 1292

Re: Using STARTTLS for message delivery

I wonder if the remote server has been configured to require secure connections, but a certificate has not been properly configured or has expired and the server was restarted, resulting in a mismatch between the ELHO verb response and the MAIL verb response.
by mikedibella
2019-08-03 00:41
Forum: General discussions
Topic: Using STARTTLS for message delivery
Replies: 23
Views: 1292

Re: Using STARTTLS for message delivery

220 esa-omf-101.exeloncorp.com ESMTP EHLO xxx 250-esa-omf-101.exeloncorp.com 250-8BITMIME 250-SIZE 20971520 250 STARTTLS This is what I get when I query that SMTP host. I'm not sure why STARTTLS isn't showing in the logging you provided. Unless hMailServer sees STARTTLS in the EHLO response, it won...
by mikedibella
2019-08-03 00:08
Forum: General discussions
Topic: Using STARTTLS for message delivery
Replies: 23
Views: 1292

Re: Using STARTTLS for message delivery

"SMTPC" 22332 10 "2019-08-02 15:28:33.862" "216.99.189.20" "RECEIVED: 250-esa-omf-101.exeloncorp.com[nl]250-8BITMIME[nl]250-SIZE 41943040[nl]250 XXXXXXXA" The remote server is not RFC compliant. This is not advertising that it supports STARTTLS in response to the EHLO verb, so hMailServer thinks it...
by mikedibella
2019-08-02 20:56
Forum: General discussions
Topic: Using STARTTLS for message delivery
Replies: 23
Views: 1292

Re: Using STARTTLS for message delivery

Send a larger portion of the log. It seems like the remote server is expending authentication.
by mikedibella
2019-08-02 20:03
Forum: General discussions
Topic: Using STARTTLS for message delivery
Replies: 23
Views: 1292

Re: Using STARTTLS for message delivery

Hypothesis: STARTTLS is failing the certification validation.

Try disabling Settings > Advanced > SSL/TLS > Verify remote server SSL/TLS certificate.
by mikedibella
2019-08-02 18:18
Forum: General discussions
Topic: Using STARTTLS for message delivery
Replies: 23
Views: 1292

Re: Using STARTTLS for message delivery

You don't need a certificate for outbound TLS. Under Settings > Protocols > SMTP > Advanced , check Use STARTTLS if Available. Under Settings > Protocols > SMTP > Delivery of email , if you are using a Relayer, set Connection security to STARTTLS (Optional) if the port is not encrypted (25 or 587). ...
by mikedibella
2019-06-05 19:58
Forum: General discussions
Topic: HMAIL to Office365 without IMAP/POP
Replies: 25
Views: 2098

Re: HMAIL to Office365 without IMAP/POP

If you don't have administrative access to the Office 365 tenant, but you do have the ability to login to Outlook Web Access, you can create a server-side rule for the mailbox to redirect mail to another mailbox. https://support.office.com/en-ie/article/forward-email-from-office-365-to-another-email...
by mikedibella
2019-06-05 05:37
Forum: General discussions
Topic: HMAIL to Office365 without IMAP/POP
Replies: 25
Views: 2098

Re: HMAIL to Office365 without IMAP/POP

I'll try to lay out my recommendation to you more clearly. You have a mailbox on your Office 365 domain, let's call it mailbox@public-domain.com. You used to be able to download mail from that remote mailbox into a local mailbox hosted on hMailServer using the POP3 protocol. Now POP3 protocol access...
by mikedibella
2019-06-04 19:16
Forum: General discussions
Topic: HMAIL to Office365 without IMAP/POP
Replies: 25
Views: 2098

Re: HMAIL to Office365 without IMAP/POP

Both Mail Users and Mail Contacts are created from ECP on the Recipients > Contacts tab.
by mikedibella
2019-06-04 16:52
Forum: General discussions
Topic: HMAIL to Office365 without IMAP/POP
Replies: 25
Views: 2098

Re: HMAIL to Office365 without IMAP/POP

What I do with a couple of email addresses on my Office 365 tenant is to create them as distribution lists and set delivery management to allow sender inside and outside the organization to submit emails the the group. Next I setup a single contact with the external address I want to forward to. Add...
by mikedibella
2019-06-03 21:10
Forum: General discussions
Topic: HMAIL to Office365 without IMAP/POP
Replies: 25
Views: 2098

Re: HMAIL to Office365 without IMAP/POP

Put another way, you should press client on why TLS encapsulation of HTTP is secure enough but TLS encapsulation of SMTP and IMAP is not. hMailServer can support either TLS encapsulation either of the whole connection sequence or via STARTTLS for SMTP, POP3, and IMAP, but cannot support using Active...
by mikedibella
2019-05-31 20:56
Forum: General discussions
Topic: Error Type SMTP 550-verification failed
Replies: 5
Views: 475

Re: Error Type SMTP 550-verification failed

Couple of issues I see. Your MX record is pointing to insyscr.com, I recommend changing it to point to mail.insyscr.com instead and use mail.insyscr.com as your hMailserver hostname. Create an A record in DNS for mail.insyscr.com to point to the public IP address for hMailserver. DNS does record an ...
by mikedibella
2019-05-31 18:30
Forum: General discussions
Topic: hmailserver & Cloudflare
Replies: 13
Views: 1357

Re: hmailserver & Cloudflare

Login into the Cloudflare portal and select the domain corresponding to the right-hand side of your email address (i.e. email = my-name@my-domain, then select my-domain). Choose the DNS tile from the top. Using the Add Record button, add the following records: Type, Name, Value, TTL A, mail, public ...
by mikedibella
2019-05-31 17:34
Forum: General discussions
Topic: Error Type SMTP 550-verification failed
Replies: 5
Views: 475

Re: Error Type SMTP 550-verification failed

You cannot send mail to domains that use sender verification using a sender address (From: address) that does not exist at the sending domain. If you send a message From: from-name@from-domain, then a mailbox must exist in the from-domain mail servers for from-name.
by mikedibella
2019-05-31 05:55
Forum: General discussions
Topic: Error Type SMTP 550-verification failed
Replies: 5
Views: 475

Re: Error Type SMTP 550-verification failed

The remote server you are trying to send mail to implements sender verification (https://en.wikipedia.org/wiki/Callback_verification) and the sending address MX does not host that user. To fix, only send using senders from domains that you control, and make sure that you host a mailbox for those use...
by mikedibella
2019-05-10 15:53
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 4231

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

I missed the FileCopy and RefreshContent methods being used as a work-around for the missing load-from-file method on the Message object. I'd also suggest you run the code using the cscript.exe interpreter and not the default wscript.exe interpreter. As you've seen, wscript will throw a modal dialog...
by mikedibella
2019-05-10 03:38
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 4231

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

I don't think this code will work. I see the code is getting the stored message filename by parsing the UndeliveredMessages property, and that a Message object is created to parse the message. This line: Set oMail = CreateObject("hMailServer.Message") Creates a new message object instance. But this ...
by mikedibella
2019-04-22 19:27
Forum: General discussions
Topic: Exchange Online - Unrecognized authentication type
Replies: 15
Views: 1797

Re: Exchange Online - Unrecognized authentication type

My understanding of your situation is that your legacy architecture included an on-premise Exchange server hosting mailboxes for your internal users, and additional mail-enabled endpoints that used the Exchange infrastructure as an SMTP relay to deliver messages to internal and external addresses. Y...
by mikedibella
2019-04-19 01:02
Forum: General discussions
Topic: Exchange Online - Unrecognized authentication type
Replies: 15
Views: 1797

Re: Exchange Online - Unrecognized authentication type

This has been covered in previous posts. Office 365 does not support external-to-external SMTP relay. This is by design. It is not a product to use for that type of mailings. If you want to route mail though Office 365 SMTP servers, either the sender or the recipient must be a local user.