Search found 112 matches

by DrmCa
2021-01-15 18:26
Forum: User-submitted tutorials
Topic: Certify automatic ssl certificate and renewal
Replies: 6
Views: 4792

Re: Certify automatic ssl certificate and renewal

I am missing the part where this is better than Certbot.

certbot renew

is all one needs for an automatic renewal anyway. What's the catch with Certify?
by DrmCa
2021-01-08 04:31
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

hMailServerLogImporter1004.7z Here is an almost complete re-write. What has changed: * The bug with sharing violation reported by gotspatel is fixed. + PostgreSQL implemented + Now users can create their own reports. 3x sample JSON definitions can be found under .\Reports\ Any JSON file placed ther...
by DrmCa
2021-01-06 16:19
Forum: Development & alpha discussions
Topic: Hmailserver from github does not build from source
Replies: 7
Views: 805

Re: Hmailserver from github does not build from source

"in DKIM.cpp, std::vector is missing #include <vector>" does not look like an error message from Visual Studio 2019. This is a message from me. Vs throws unrecognized symbol or namespace, or something to that effect, from memory. I have no idea what branch I tried to build, or even that there are m...
by DrmCa
2021-01-05 16:14
Forum: Development & alpha discussions
Topic: Hmailserver from github does not build from source
Replies: 7
Views: 805

Re: Hmailserver from github does not build from source

Why there and not here? What is the difference?
by DrmCa
2021-01-04 01:19
Forum: Development & alpha discussions
Topic: Hmailserver from github does not build from source
Replies: 7
Views: 805

Hmailserver from github does not build from source

When after installing boost and openssl I realized that there are still errors, I stopped trying to build.
I will give just one example: in DKIM.cpp, std::vector is missing #include <vector>

So my question is, what sources is the binary that is available for download built from?
by DrmCa
2021-01-02 22:02
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

This is free, open-source software that I wrote on the side of my day work. If you need any more functionality, you can add it to the source.
by DrmCa
2021-01-01 22:16
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

This is by design. It tells me that the last file is being written to.
by DrmCa
2020-12-30 16:21
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

Great, thanks for testing! It was a bug in MySQL. Here is a fix.
by DrmCa
2020-12-27 15:53
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

I am not really sure what is happening here. Without seeing those errors I am blind and cannot troubleshoot. This program does not create a database. The database has to exist. It only creates 2x tables in the current version and 1x table in the old version. In MS SQL the old version used Tempdb, bu...
by DrmCa
2020-12-27 04:08
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

hMailServerLogImporter1002.7z
(1.74 MiB) Downloaded 31 times
Here is the new version that implements PostgreSQL.
It is refactored properly from the quick and dirty prototype, to allow it to be truly extendable for any DB back end.
by DrmCa
2020-12-25 20:11
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

This is strange. If you like, you can upload the failing log to somewhere and PM me the link.
by DrmCa
2020-12-25 20:10
Forum: General discussions
Topic: I am thinking that this should not be allowed
Replies: 22
Views: 1947

Re: I am thinking that this should not be allowed

I did not know that .INI file was a thing and only ever used the Amin UI.
I guess they are creating multiple simultaneous connections from the same IP then. Can this be blocked too?
by DrmCa
2020-12-24 22:25
Forum: General discussions
Topic: Could you please explain what is going on in this log?
Replies: 11
Views: 1126

Re: Could you please explain what is going on in this log?

First of all, as soon as a POP3 connection presents wrong credentials, they have to be logged.
Secondly, what is the reason there is no autobahn on POP3?
by DrmCa
2020-12-24 22:25
Forum: General discussions
Topic: I am thinking that this should not be allowed
Replies: 22
Views: 1947

Re: I am thinking that this should not be allowed

The algorithm should be very simple: if the server determines that there is a rule that bans this IP, do not return right away and wait for X number of milliseconds instead. This would slow down their hacking rate many times.
by DrmCa
2020-12-24 22:22
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

gotspatel wrote:
2020-12-24 06:26
Here is a portion if you need full i can upload and share link for you to research.
I only need to see one line that says "Client connection from X.X.X.X was not accepted. Blocked either by IP range or by connection limit."
It was not included in your portion.
by DrmCa
2020-12-23 20:00
Forum: General discussions
Topic: I am thinking that this should not be allowed
Replies: 22
Views: 1947

I am thinking that this should not be allowed

This spammer is essentially DDOSing my server. I only noticed because I tried to load this log file into a database and it failed due to the primary key violation. Good thing it did because otherwise I would not have known. "DEBUG" 7332 "2020-12-21 13:46:17.037" "Client connection from 216.118.251.2...
by DrmCa
2020-12-23 18:55
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

Since I do not use IMAP, I have no way of knowing the format of the log record that it creates. Could you post a sample of the whole record? I'll see if I can accommodate it.
I have time today and am adding PostgreSQL import, so if you post it soon, I may have a fix before the end of the day.
by DrmCa
2020-12-23 17:20
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

Where does the value "40777" come from? Somehow, the last file is different from all of the successfully loaded ones, in terms of the log entry date that contains this value. The software only looks at the lines that match this log entry: "DEBUG" 6816 "2020-12-03 00:26:50.199" "Client connection fro...
by DrmCa
2020-12-23 17:14
Forum: General discussions
Topic: Could you please explain what is going on in this log?
Replies: 11
Views: 1126

Re: Could you please explain what is going on in this log?

I thought that "The read operation failed." meant that something was wrong with TLS. Does it mean incorrect credentials instead?
by DrmCa
2020-12-23 02:39
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

getting error as attached image any help please Do you get this error with the latest update that I've posted right before your comment? It should have addressed the date format error that arises on Dec 1st which seems to be your case, judging by the log file date. Try the latest version and post b...
by DrmCa
2020-12-23 02:37
Forum: General discussions
Topic: Could you please explain what is going on in this log?
Replies: 11
Views: 1126

Re: Could you please explain what is going on in this log?

Ah, so the log entry for a bad login/password combination does not say that but ssl error?
by DrmCa
2020-12-18 18:17
Forum: General discussions
Topic: Could you please explain what is going on in this log?
Replies: 11
Views: 1126

Re: Could you please explain what is going on in this log?

Eh, where in the Administrator is the setting that does it?
by DrmCa
2020-12-18 15:51
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

hMailServerLogImporter1001.7z Fixed an embarrassing bug in MySql report query and added some optimizations. For MsSQL, I am trying to do everything in tempdb which on my system is slightly quicker. For MySql, moving away from an index that took a long time to be created, seems to speed things up too.
by DrmCa
2020-12-14 02:43
Forum: General discussions
Topic: Could you please explain what is going on in this log?
Replies: 11
Views: 1126

Could you please explain what is going on in this log?

What is the IP 193.*.*.114 doing? I see that their connection keeps being dropped, but I do not understand for what reason. What does "The read operation failed. Bytes transferred: 0" mean? "TCPIP" 6916 "2020-12-12 02:45:50.762" "TCP - 193.*.*.114 connected to 192.*.*.31:995." "DEBUG" 6916 "2020-12-...
by DrmCa
2020-12-07 00:08
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

palinka wrote:
2020-12-06 15:09

Code: Select all

19,599 212.70.149.4
This is the network I get most hits from. Needless to say, added them to DROP rule on the FW.
by DrmCa
2020-12-05 21:07
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Re: Giving back to the team and community: log file database upload

Let me guess: some of them probably belong to either of the networks 212.70.149.0 or 45.142.120.0. These are known abusers who brute-force or DDOS SMTP servers around the globe 24/7.
by DrmCa
2020-12-03 21:29
Forum: General discussions
Topic: 550 Not authorized owner (in reply to RCPT TO command)).
Replies: 9
Views: 910

Re: 550 Not authorized owner (in reply to RCPT TO command)).

Not sure I follow. Are you suggesting to add senders to the group?
by DrmCa
2020-12-03 21:23
Forum: User-submitted tutorials
Topic: Giving back to the team and community: log file database upload
Replies: 36
Views: 3188

Giving back to the team and community: log file database upload

hMailServerLogImporter.7z Hi all, I've been happily using hMailServer for more than 10 years now, and it has accumulates lots of logs. Before archiving them, I wanted to see who is abusing the server and should be added to the firewall blocking rules. The program that I wrote helped me to put all I...
by DrmCa
2020-12-03 14:44
Forum: General discussions
Topic: 550 Not authorized owner (in reply to RCPT TO command)).
Replies: 9
Views: 910

Re: 550 Not authorized owner (in reply to RCPT TO command)).

I checked the logs: They send from the address which has 1 letter different from the allowed address. I will have to change the distribution list to public. Thank you! It would be nice if Announcements allowed a list of addresses that are allowed to send to the list, not just one list. My problem is...
by DrmCa
2020-12-03 04:56
Forum: General discussions
Topic: 550 Not authorized owner (in reply to RCPT TO command)).
Replies: 9
Views: 910

Re: 550 Not authorized owner (in reply to RCPT TO command)).

hMailServer itself generates this error when a message recipient is a distribution list and the message sender is not the owner of the list. Perhaps you have a rule that forwards an incoming message to a distribution list? If, so you'll need to rewrite the sender of the forwarded message to be the ...
by DrmCa
2020-12-03 00:28
Forum: General discussions
Topic: 550 Not authorized owner (in reply to RCPT TO command)).
Replies: 9
Views: 910

550 Not authorized owner (in reply to RCPT TO command)).

My own ISP sends email notifications to my own, on-premise hMailServer.
Today, they responded to my inquiry about a missing notification with this: they sent 2. I received 1. The 2nd one was rejected by my hMailServer due to the error in subject.
What does this mean?
by DrmCa
2020-10-22 23:36
Forum: General discussions
Topic: 550 Rejected by SpamCop - when using Sendgrid
Replies: 24
Views: 7183

Re: 550 Rejected by SpamCop - when using Sendgrid

Firstly, it wasn't vicious by even the broadest standard. Being accused of spamming on the internet is about the same as being accused of a murder in real life, so yes, this was vicious. I joined this forum 10 years ago and posted only relevant content in the most friendly manner but no one cares t...
by DrmCa
2020-10-22 20:15
Forum: General discussions
Topic: 550 Rejected by SpamCop - when using Sendgrid
Replies: 24
Views: 7183

Re: 550 Rejected by SpamCop - when using Sendgrid

When SendGrid receives a protocol error from a remote relay during mail submission, the error is dispatched back to you in the evert hook. So SendGrid is telling you that the recipient's server rejected the mail for the reason stated. Some errors also result in addresses being added to the various ...
by DrmCa
2020-10-22 15:03
Forum: General discussions
Topic: 550 Rejected by SpamCop - when using Sendgrid
Replies: 24
Views: 7183

Re: 550 Rejected by SpamCop - when using Sendgrid

Very funny. Spamming is what you had just written. Do you seriously believe that you are being helpful?
by DrmCa
2020-10-22 15:01
Forum: General discussions
Topic: 550 Rejected by SpamCop - when using Sendgrid
Replies: 24
Views: 7183

550 Rejected by SpamCop - when using Sendgrid

Hi! I am developing a plugin for our software, to send via Sendgrid. My setup on Sendgrid is complete, and I am able to send and to receive "Accepted" status from their response object. The email I sent appears under blocked on Sendgrid, and the error message is in the subject. I am not sure which s...
by DrmCa
2020-10-19 21:07
Forum: General discussions
Topic: A strange issue with STARTTLS
Replies: 4
Views: 1903

Re: A strange issue with STARTTLS

I got tired of SmtpClient issues and moved on to MailKit which works fine.
This will go down as another mystery, because I used to connect to hMailServer successfully at another site, but it was over port 25 only.
by DrmCa
2020-10-19 04:14
Forum: General discussions
Topic: A strange issue with STARTTLS
Replies: 4
Views: 1903

Re: A strange issue with STARTTLS

I have to make a correction to the above: the error in the OP appeared when the port was set to STARTTLS(required).
Since I changed it to (optional) the error changed:

{"Unable to read data from the transport connection: net_io_connectionclosed."}
by DrmCa
2020-10-19 03:28
Forum: General discussions
Topic: A strange issue with STARTTLS
Replies: 4
Views: 1903

A strange issue with STARTTLS

I am writing a piece of software in c#.net that among other things has to send emails. To prototype it quickly, I used SmtpClient, which only supports STARTTLS. I added a new port to my server: Protocol SMTP, IP 0.0.0.0, Port 587, Security STARTTLS(optional), with the same cert as port 465. Restarte...
by DrmCa
2019-02-07 17:45
Forum: General discussions
Topic: A hidden or missing email address or alias
Replies: 2
Views: 1378

A hidden or missing email address or alias

There is a domain with several email addresses in my server. The addresses are for instance john@domain.com, jane@domain.com, bob@domain.com (there is about a dozen in total, but you get the idea). One of my providers sends its notifications to a service@domain.com. I am looking at the domain's addr...
by DrmCa
2019-02-02 22:30
Forum: General discussions
Topic: What is the correct way to create a spam rule to block by Reply-To?
Replies: 10
Views: 3572

Re: What is the correct way to create a spam rule to block by Reply-To?

SorenR wrote:
2019-02-02 21:54
Reply-To is not added to the headers until AFTER rules have been invoked...
Not sure I follow. This header is crafted by the spammers, so it does come in the original email.
by DrmCa
2019-02-02 19:39
Forum: General discussions
Topic: What is the correct way to create a spam rule to block by Reply-To?
Replies: 10
Views: 3572

Re: What is the correct way to create a spam rule to block by Reply-To?

palinka wrote:
2019-02-02 19:03
You can use rules. But what is it about the reply-to that is not variable? Its the same for each message?
I have tons of rules, but when adding a new one there is no field for matching on Reply-To.
How specifically should I set up a rule?
by DrmCa
2019-02-02 17:33
Forum: General discussions
Topic: What is the correct way to create a spam rule to block by Reply-To?
Replies: 10
Views: 3572

What is the correct way to create a spam rule to block by Reply-To?

Hi all,

I started getting tons of spam which is variable in every respect, but the Reply-To field.
How can I block it?

Thank you!
by DrmCa
2019-02-02 17:30
Forum: General discussions
Topic: Linux port with .NET core - a possibility?
Replies: 4
Views: 2496

Re: Linux port with .NET core - a possibility?

If you plan to go full-out Qt5, it will be multiplatform from the get-go. So no need for .NET core.
by DrmCa
2019-01-19 15:24
Forum: General discussions
Topic: Linux port with .NET core - a possibility?
Replies: 4
Views: 2496

Linux port with .NET core - a possibility?

Hi team,

The only reason I have one Windows machine on the network is hMailServer. Would it be at all possible to multiplatform your code into Linux world?
by DrmCa
2019-01-19 15:22
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Re: Persistently getting "Access denied" despite correct everything

Genius! Thanks a lot, Matt! POP3 worked right away, but then Thunderbird threw me to a loop, as when switching connection security on POP it changes 110 to 995, but when on SMTP it leaves it at 25 and for a while I was staring at the progress bar when sending. Then realized that, switched 25 to 465,...
by DrmCa
2019-01-17 04:36
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Re: Persistently getting "Access denied" despite correct everything

The problem is the SSL error from the post on 2018-12-22 09:09 "ERROR" 5836 "2018-12-21 21:34:46.157" "Severity: 2 (High), Code: HM5113, Source: SslContextInitializer::InitServer, Description: Failed to load certificate file. Path: D:\Program Files\Apache Software Foundation\Apache24\conf\ssl.crt\my...
by DrmCa
2019-01-15 02:48
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Re: Persistently getting "Access denied" despite correct everything

Right. Sounds like my admin password was left blank since I started getting the popup about it being invalid every time I opened the admin UI. I set it to some value, and here is the file.
by DrmCa
2018-12-25 03:01
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Re: Persistently getting "Access denied" despite correct everything

This is what I am getting:
Image

Am I missing any software to be installed?
by DrmCa
2018-12-22 23:48
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Re: Persistently getting "Access denied" despite correct everything

Cool! But what should I do if I have an SSL error on port 995? I had to tell all users to temporarily switch off SSL for POP and SMTP, how do I troubleshoot to allow them to turn this back on? So far, when I am trying to log in, connection is refused on 995. I only restored the DB, the certs and key...
by DrmCa
2018-12-22 18:55
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Re: Persistently getting "Access denied" despite correct everything

In hMailAdmin, you can setup a new Administrator password. I know. I did that. When I set up a new password, I get this annoying popup about the wrong password. Then I click Ok, get the regular password prompt, enter the new password, and it logs me in. What am I missing? If your Pop3 SSL certifica...
by DrmCa
2018-12-22 16:09
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Re: Persistently getting "Access denied" despite correct everything

Solved those one, thanks for the tip about the blank admin password! Once I used the combination of: 1. The "administrator" user name in the connection dialog (which I was mistaking for the DB connection and provided the DB password), and 2. The IP address in the INI file (localhost did not work) th...
by DrmCa
2018-12-22 04:32
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Re: Persistently getting "Access denied" despite correct everything

Did that.

"The specified user name or password is incorrect"

and then it prompts for the admin password.
And if I press Cancel, it takes me back to the DB connection dialog.

But strangely, the server seems to be up and running! I just got an email, but still cannot log into the admin UI.
by DrmCa
2018-12-22 04:14
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Re: Persistently getting "Access denied" despite correct everything

I guess, I am getting a bit further ahead: I edited the INI file, turned password encryption off, and changed the encrypted password to the same plain text password, which I changed the MySQL user's password to. I am no longer getting the MySQL error. Now when I am trying to run the admin UI, I am g...
by DrmCa
2018-12-22 02:55
Forum: General discussions
Topic: Persistently getting "Access denied" despite correct everything
Replies: 19
Views: 5865

Persistently getting "Access denied" despite correct everything

Hi all, I had to restore the MySQL DB from a backup and change passwords for all MySQL user accounts. Previously I already used that very same backup, and everything worked fine. Now I was able to bring up everything, which uses this MySQL instance (my web sites, jabber server, and a few other thing...
by DrmCa
2018-11-24 19:05
Forum: General discussions
Topic: Checksums for downloads
Replies: 0
Views: 12125

Checksums for downloads

Hi team,

May I suggest that you post any modern checksum for the download section next to the download link?

Thanks a lot!
by DrmCa
2016-08-06 02:39
Forum: General discussions
Topic: Connection refused on 25, 465, 995 ports
Replies: 6
Views: 3972

Re: Connection refused on 25, 465, 995 ports

You are spot on! Not the permissions changed though - the location of the certs! The server continued running fine until the reboot, but now it needs the new location.
by DrmCa
2016-08-06 02:35
Forum: General discussions
Topic: Connection refused on 25, 465, 995 ports
Replies: 6
Views: 3972

Re: Connection refused on 25, 465, 995 ports

No, it's not working. The clients still get the the same error when sending or receiving.
I upgraded to the latest version, no change.
by DrmCa
2016-08-06 02:29
Forum: General discussions
Topic: Connection refused on 25, 465, 995 ports
Replies: 6
Views: 3972

Re: Connection refused on 25, 465, 995 ports

I could not moments ago, but now it connected. Also can telnet from my Linux machine: $ telnet 10.10.10.2 25 Trying 10.10.10.2... Connected to 10.10.10.2. Escape character is '^]'. 220 ............ca HELO 501 HELO Invalid domain address. Re-ran netstat and port 25 is listening. I still cannot send o...
by DrmCa
2016-08-06 02:06
Forum: General discussions
Topic: Connection refused on 25, 465, 995 ports
Replies: 6
Views: 3972

Connection refused on 25, 465, 995 ports

Everything was fine for many years and the server worked virtually 24/7 serving a handful of domains. Today I had to add an optical drive to the box and shut it down. After starting everything up no one can get their mail anymore, including Thunderbird running in the server itself. I started investi...