Search found 2189 matches

by palinka
2020-10-20 16:30
Forum: General discussions
Topic: hMailServer and Sendgrid
Replies: 15
Views: 2937

Re: hMailServer and Sendgrid

have you read this ? https://sendgrid.com/docs/for-developers/sending-email/getting-started-smtp/ roughly: "Create a SendGrid API key on the API Keys page." "Convert your API key to Base64" "when authenticating use the API username encoded in Base64. Everyone's username is apikey, which is YXBpa2V5...
by palinka
2020-10-20 16:28
Forum: General discussions
Topic: hMailServer and Sendgrid
Replies: 15
Views: 2937

Re: hMailServer and Sendgrid

Ahhh... Sorry, I thought the api key was only for the control panel stuff. They're requiring everyone script an email client. That's probably not a big deal for marketers. hMailServer is not a solution for this API. It looks like they're phasing out smtp relaying altogether. https://sendgrid.com/blo...
by palinka
2020-10-20 15:56
Forum: Scripting
Topic: Free Unlimited Offsite Backup
Replies: 5
Views: 1426

Re: Free Unlimited Offsite Backup

Fixed up a bit. This version creates the archive as well as upload. <# .SYNOPSIS LetsUpload Backup Utility .DESCRIPTION Compresses and uploads folder contents to LetsUpload.io .FUNCTIONALITY Compresses and uploads folder contents to LetsUpload.io .PARAMETER UploadFolder Specifies the folder on local...
by palinka
2020-10-20 15:37
Forum: General discussions
Topic: hMailServer and Sendgrid
Replies: 15
Views: 2937

Re: hMailServer and Sendgrid

SMS should do the trick. Get a code, type it in... Easy peasy. I'm sorry but I don't follow you If sendgrid offers SMS as a 2FA method, you make your request for new keys, they send you a text with a one time code, you use the code to validate the 2FA form. Then you get your new keys. Just like whe...
by palinka
2020-10-20 13:15
Forum: General discussions
Topic: hMailServer and Sendgrid
Replies: 15
Views: 2937

Re: hMailServer and Sendgrid

SMS should do the trick. Get a code, type it in... Easy peasy.
by palinka
2020-10-20 03:06
Forum: General discussions
Topic: Where to place created MX record in hMail
Replies: 27
Views: 5789

Re: Where to place created MX record in hMail

mattg wrote:
2020-10-19 23:39
I thought that the war had already began...
That's just the pretend one. Fills the TV screens but doesn't amount to much. Its more or less reality TV.
by palinka
2020-10-19 18:46
Forum: General discussions
Topic: Where to place created MX record in hMail
Replies: 27
Views: 5789

Re: Where to place created MX record in hMail

SorenR wrote:
2020-10-19 15:56
If Trump refuses to accept he lost and starts WW3 ... Yes!
I wouldn't worry about that. Trump is the peace president, disengaging from eternal war. Plus, he has the election in the bag. A landslide cometh. I predict much wailing and gnashing of teeth.
by palinka
2020-10-19 15:50
Forum: General discussions
Topic: Where to place created MX record in hMail
Replies: 27
Views: 5789

Re: Where to place created MX record in hMail

SorenR wrote:
2020-10-19 15:19
It can also come in handy if the global DNS network is damaged.
Is that something you're expecting? :D
by palinka
2020-10-19 11:50
Forum: Scripting
Topic: Free Unlimited Offsite Backup
Replies: 5
Views: 1426

Re: Free Unlimited Offsite Backup

I will. Thanks for the tip!
by palinka
2020-10-19 03:44
Forum: General discussions
Topic: A strange issue with STARTTLS
Replies: 4
Views: 1513

Re: A strange issue with STARTTLS

Sorry, I don't have a solution for you, but this happens when TLS is required from the beginning by the client. StartTLS on 587 first connects unencrypted and then upgrades the connection to TLS. 465 starts the connection with TLS (no unencrypted connection/upgrade). Your client is going in hot (enc...
by palinka
2020-10-19 03:31
Forum: Scripting
Topic: Free Unlimited Offsite Backup
Replies: 5
Views: 1426

Free Unlimited Offsite Backup

No, this is not spam. :lol: I had an idea to backup my work files so I started looking around for a dropbox/onedrive/googledrive type of solution. None of them had a free account with enough storage. Then I found letsupload.org with FREE UNLIMITED storage. Who knows how long this will last but may a...
by palinka
2020-10-18 18:39
Forum: General discussions
Topic: Where to place created MX record in hMail
Replies: 27
Views: 5789

Re: Where to place created MX record in hMail

johang wrote:
2020-10-18 17:50
since you are stating you dont want your hmailserver to be internet connected, there is no need to worry for the diagnostics program reporting that the mx record cant be resolved
I agree. Just ignore it.
by palinka
2020-10-18 16:59
Forum: User-submitted tutorials
Topic: HOW TO: Ready-To-Go Backup and Cleardown script
Replies: 165
Views: 105160

Re: HOW TO: Ready-To-Go Backup and Cleardown script

What if there were a way to backup your server into an AES-256 encrypted archive, then upload it to a free file storage site that allows unlimited storage space and will hold your backups for 60 days, no matter how large the files are? Would you say I was completely crazy for suggesting such a thing...
by palinka
2020-10-18 16:53
Forum: General discussions
Topic: Where to place created MX record in hMail
Replies: 27
Views: 5789

Re: Where to place created MX record in hMail

No MX required if you're NEVER going to attempt to contact outside servers, or have mail delivered from the internet. All you need is a local domain: mydomain.local Of course, you're limited to sending messages to your local domain only, but that appears to be your intent. Out of curiosity, what is ...
by palinka
2020-10-13 12:49
Forum: General discussions
Topic: Windows defender firewall IP blocking is not working in version 5.7
Replies: 21
Views: 2773

Re: Windows defender firewall IP blocking is not working in version 5.7

Maybe the OP should simply delete the block rule, then recreate it. I just had a look at my rules list. My firewall ban project adds rules many times a day, then consolidates the previous day's rules, then at the bribing of the month consolidates the previous month's rules. So they're constantly bei...
by palinka
2020-10-12 17:19
Forum: General discussions
Topic: Windows defender firewall IP blocking is not working in version 5.7
Replies: 21
Views: 2773

Re: Windows defender firewall IP blocking is not working in version 5.7

See 'rules store' here >> https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc755604(v=ws.10)?redirectedfrom=MSDN Rules are run from the top down the Hmailserver rule take precedence to the block single IP rule (In saying that, when I create a test block IP rule,...
by palinka
2020-10-12 00:57
Forum: General discussions
Topic: Securing SMTP Sending
Replies: 20
Views: 2560

Re: Securing SMTP Sending

Now that that's sorted out, does your client work?
by palinka
2020-10-11 13:45
Forum: General discussions
Topic: Securing SMTP Sending
Replies: 20
Views: 2560

Re: Securing SMTP Sending

Is there an error log?
by palinka
2020-10-10 16:06
Forum: General discussions
Topic: Windows defender firewall IP blocking is not working in version 5.7
Replies: 21
Views: 2773

Re: Windows defender firewall IP blocking is not working in version 5.7

Hmailserver does not do firewall blocking. What do you think was happening with 5.6?
by palinka
2020-10-10 04:21
Forum: General discussions
Topic: Securing SMTP Sending
Replies: 20
Views: 2560

Re: Securing SMTP Sending

Thanks. I can't create an IP range for my client because the client is remote. That's not true. Just set the IP of the IP range to the IP of the client. Just like external MTA's it comes in through the one public IP address of the server. Yes. But it comes in to port 587 using authentication. Mail ...
by palinka
2020-10-09 23:19
Forum: General discussions
Topic: Securing SMTP Sending
Replies: 20
Views: 2560

Re: Securing SMTP Sending

I want to use hmailserver to send emails to other MTA's from a software client I have created. I assume this is what people call SMTP relay. My question is, how do I restrict the mail server to sending to other MTA's only from my client while allowing other MTA's to still send mail to my mail serve...
by palinka
2020-10-09 23:02
Forum: General discussions
Topic: 5.6.8-B2431 SPF Check Failures
Replies: 75
Views: 9553

Re: 5.6.8-B2431 SPF Check Failures

Yes, I’m absolute sure it is no spam :-) DKIM, IP-address and content are all correct. Only SPF not according to hmail. out of curiosity what does the spf check at mxtoolboox say ? ( i have actually never come across anyone using macros like that yet, so i am curious ) Same here. Not sure how that ...
by palinka
2020-10-09 16:05
Forum: User contributed hMailServer 5 scripts
Topic: Dynamic Black/Whitelists in your script.
Replies: 110
Views: 44929

Re: Dynamic Black/Whitelists in your script.

FYI - bitcoin address regex here: ^[13][a-km-zA-HJ-NP-Z0-9]{26,33}$ Update. \b((bc|tb)(0([ac-hj-np-z02-9]{39}|[ac-hj-np-z02-9]{59})|1[ac-hj-np-z02-9]{8,87})|([13]|[mn2])[a-km-zA-HJ-NP-Z1-9]{25,39})\b\s From: https://stackoverflow.com/questions/21683680/regex-to-match-bitcoin-addresses To test: http...
by palinka
2020-10-09 14:11
Forum: General discussions
Topic: 5.6.8-B2431 SPF Check Failures
Replies: 75
Views: 9553

Re: 5.6.8-B2431 SPF Check Failures

If you're sure it's not spam, you could whitelist the addresses.
by palinka
2020-10-09 00:03
Forum: General discussions
Topic: Using hMail as SMTP Relay for Scanners
Replies: 13
Views: 2519

Re: Using hMail as SMTP Relay for Scanners

"DEBUG" 2788 "2020-10-08 13:52:34.570" "Performing SSL/TLS handshake for session 30. Verify certificate: True , Expected remote host name: smtp-relay.gmail.com" "TCPIP" 5748 "2020-10-08 13:52:34.633" "TCPConnection - TLS/SSL handshake failed. Session Id: 30, Remote IP: 74.125.202.28, Error code: 33...
by palinka
2020-10-08 19:17
Forum: General discussions
Topic: Using hMail as SMTP Relay for Scanners
Replies: 13
Views: 2519

Re: Using hMail as SMTP Relay for Scanners

Uncheck "external to external email addresses" under "require smtp authentication".
by palinka
2020-10-08 16:31
Forum: User contributed hMailServer 5 scripts
Topic: Check Service Status, Take Action, Notify
Replies: 6
Views: 5018

Re: Check Service Status, Take Action, Notify

Refreshed for 2020... :D <# .SYNOPSIS Test telnet on hMailServer .DESCRIPTION Uses telnet to ensure hMailServer properly functioning .FUNCTIONALITY 1) Telnets in to hMailServer and checks for 220 Banner 2) If banner found, exit 3) If banner not found then wait, check again, if still not found then r...
by palinka
2020-10-08 03:25
Forum: Scripting
Topic: MaxMinds GeoIP for local MySQL
Replies: 31
Views: 11808

Re: MaxMinds GeoIP for local MySQL

palinka wrote:
2020-10-07 16:02
I'm going to experiment with just deleting all the data and starting from scratch. That would remove several steps involving manipulating the CSVs and could further speed things up.
Well that was a bust. Good news is the most recent one works better than ever.
by palinka
2020-10-08 01:05
Forum: General discussions
Topic: Why I always got "Verify certificate : False" ?
Replies: 5
Views: 987

Re: Why I always got "Verify certificate : False" ?

Certificates are verified through certificate authorities. Many servers still use self signed certificates in order to establish a SSL connection. If you attempt verify a self signed certificate, it will fail and hmailserver will drop the connection. There's no need to verify a sending server. All y...
by palinka
2020-10-07 16:02
Forum: Scripting
Topic: MaxMinds GeoIP for local MySQL
Replies: 31
Views: 11808

Re: MaxMinds GeoIP for local MySQL

I optimized a query and finally got a chance to test it last night (with the new weekly release of MaxMind data). 10 times faster now. YUUUUGE improvement. I'm going to experiment with just deleting all the data and starting from scratch. That would remove several steps involving manipulating the CS...
by palinka
2020-10-07 15:27
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

SELECT hm_accounts.accountaddress,COUNT(*) FROM hm_messages INNER JOIN hm_accounts ON hm_messages.messageaccountid = hm_accounts.accountid WHERE RIGHT(BIN(hm_messages.messageflags),1) = '0' GROUP BY hm_accounts.accountaddress ORDER BY SUBSTRING_INDEX(hm_accounts.accountaddress, "@", -1) I made one ...
by palinka
2020-10-07 13:46
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

SELECT hm_accounts.accountaddress,COUNT(*) FROM hm_messages INNER JOIN hm_accounts ON hm_messages.messageaccountid = hm_accounts.accountid WHERE RIGHT(BIN(hm_messages.messageflags),1) = '0' GROUP BY hm_accounts.accountaddress ORDER BY SUBSTRING_INDEX(hm_accounts.accountaddress, "@", -1) Haha! That'...
by palinka
2020-10-06 23:32
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

Found one minor flaw. Your all in one query outputs in alphabetical order by address, instead of by domain, then by address. Its not really a flaw, just a nitpick. Using the COM with your first query, and then using if unread > 0, puts them back into orderly fashion, without the no-unread accounts. ...
by palinka
2020-10-06 23:22
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

SELECT hm_accounts.accountaddress, COUNT(*) FROM hm_messages INNER JOIN hm_accounts ON hm_messages.messageaccountid = hm_accounts.accountid WHERE RIGHT(BIN(hm_messages.messageflags),1) = '0' GROUP BY hm_accounts.accountaddress; OK, it will ONLY list accounts with unread messages... :roll: BUT ! You...
by palinka
2020-10-06 22:46
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

SELECT COUNT(hm_messages.messageid) FROM hm_messages INNER JOIN hm_accounts ON hm_messages.messageaccountid = hm_accounts.accountid WHERE hm_accounts.accountaddress = 'wile.e.coyote@acme.inc' AND RIGHT(BIN(hm_messages.messageflags),1) = '0'; You are welccome... :mrgreen: Beeyooteefool! I'll push ou...
by palinka
2020-10-06 21:58
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

SELECT COUNT(hm_messages.messageid) FROM hm_messages INNER JOIN hm_accounts ON hm_messages.messageaccountid = hm_accounts.accountid WHERE hm_accounts.accountaddress = 'wile.e.coyote@acme.inc' AND RIGHT(BIN(hm_messages.messageflags),1) = '0'; You are welccome... :mrgreen: Beeyooteefool! I'll push ou...
by palinka
2020-10-06 16:20
Forum: General discussions
Topic: How to monitor delivery queue?
Replies: 5
Views: 774

Re: How to monitor delivery queue?

The only time i found hmailserver unresponsive was trying to shut it down for backup during a syn flood attack. I don't remember any other circumstance it was unresponsive.

However, better safe than sorry. :D
by palinka
2020-10-06 16:16
Forum: User contributed hMailServer 5 scripts
Topic: Problem with OnSMTPData filter script
Replies: 5
Views: 730

Re: Problem with OnSMTPData filter script

I would use regex. That may only be because i know i could make it work.

Also, are you sure that declaring result value = 0 at the top is not what's tripping you up?
by palinka
2020-10-06 15:33
Forum: User contributed hMailServer 5 scripts
Topic: Problem with OnSMTPData filter script
Replies: 5
Views: 730

Re: Problem with OnSMTPData filter script

' Sub OnSMTPData(oClient, oMessage) Sub OnSMTPData(oClient, oMessage) Result.Value = 0 blockedVarLenEnd = Array(".bid", ".best", ".casa", ".club", ".com.au", ".cn", ".cyou", ".date", ".loan", ".md", ".ml", ".science", ".site", ".stream", ".top", ".trade", ".ua", ".br", ".review", ".website", ".win"...
by palinka
2020-10-06 15:07
Forum: General discussions
Topic: How to monitor delivery queue?
Replies: 5
Views: 774

Re: How to monitor delivery queue?

I use powershell for that. I'd be interested in how you monitor things because I've found that simply checking the service state isn't enough to determine if hmailserver and other processes are not functioning properly. For example, for hmailserver i check service state, and if running, then telnet ...
by palinka
2020-10-06 13:03
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

Just toying around now. Here's one to display message count for every folder. I assume this would work for POP just as easily, although IMAP must be enabled (I think) in order to get the counts. I don't see POP anywhere in the COM documentation. This counts the messages in each folder for each accou...
by palinka
2020-10-06 12:04
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

johang wrote:
2020-10-06 07:53
.
i think the cmailserver interface spoken of is this ( i might be wrong )
c < h

:mrgreen:

What is the flag for unread? 0 or null?
by palinka
2020-10-06 03:54
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

This works. It takes a long time to loop through every message. I think on any but the smallest servers, it will run into execution timeouts. But it does work Is there a way to count unread messages instead of looping through them? Counts unread messages for every active user. PHP: <?php $hMSAdminPa...
by palinka
2020-10-06 03:29
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

mattg wrote:
2020-10-06 00:28
I think perhaps the OP is talking about POP3 accounts, not IMAP
I guess IMAP Inbox unread is more or less equivilant to POP not-downloaded messages, correct?
by palinka
2020-10-05 20:53
Forum: General discussions
Topic: Display number of emails pending in each account?
Replies: 19
Views: 2167

Re: Display number of emails pending in each account?

BenevolentDeity wrote:
2020-10-05 14:18
Is there any way to display the number of emails available for reading in each account?
Do you mean unread mail?
by palinka
2020-10-05 02:41
Forum: General discussions
Topic: strip off first senders IP and PC-Name?
Replies: 24
Views: 2527

Re: strip off first senders IP and PC-Name?

Thinking obtusely... I'm wondering if i should spam score a mail message without a chain of received from, with a suitably named originator... (That would indicate to me that they are hiding something, and therefore may by dodgy) Judging by this thread and several others, there are non-spam users t...
by palinka
2020-10-04 04:29
Forum: Scripting
Topic: MaxMinds GeoIP for local MySQL
Replies: 31
Views: 11808

Re: MaxMinds GeoIP for local MySQL

Updated tonight.

* fixed a divide by 0 bug that only presented if option console verbose was enabled
* updated email function to attach debug log
* housekeeping

https://github.com/palinkas-jo-reggelt/GeoLite2SQL
by palinka
2020-10-03 15:21
Forum: Scripting
Topic: Powershell Email Function with SSL, HTML and Attachments
Replies: 0
Views: 1248

Powershell Email Function with SSL, HTML and Attachments

Powershell email function that includes everything you need in an email sending client: SSL, HTML and attachments. ### EMAIL VARIABLES ### $FromAddress = 'sender@mydomain.tld' $Recipient = 'recipient@otherdomain.tld' $Subject = 'Powershell Email Function With SSL, HTML and Attachment Handling' $Emai...
by palinka
2020-10-02 20:47
Forum: Off-topic discussions
Topic: Random password generator
Replies: 1
Views: 1383

Re: Random password generator

I had a little fun with this. I installed two dictionaries into mysql. One is a 300k+ English word dictionary. I use it to create random passphrases. Input the length of the word and the number of words and a random passphrase based on those criteria is created. https://github.com/dwyl/english-words...
by palinka
2020-10-02 15:59
Forum: General discussions
Topic: HELP! MY MAIL SERVER IS HACKED!
Replies: 21
Views: 2647

Re: HELP! MY MAIL SERVER IS HACKED!

Thank you very much! That code is work for me, also i was denied attackers ip range on my firewall . Sub OnAcceptMessage(oClient, oMessage) If oClient.Username <> "" Then dim authemail, authemail_value, fromemail, fromemail_value authemail = Split ( (oClient.Username) , "@" ) authemail_value = auth...
by palinka
2020-10-02 15:46
Forum: General discussions
Topic: Change Thunderbird to Outlook 2016
Replies: 2
Views: 434

Re: Change Thunderbird to Outlook 2016

Code: HM5042, Source: File::ReadTextFile, Description: An unknown error occurred while reading a text file from disk." Code: HM5062, Source: IMAPFetch::ReportCriticalError_, Description: ERROR HM10001 - IMAP FETCH: Error when loading MIME message. -> Path to Mail Code: HM4208, Source: File::ReadFil...
by palinka
2020-10-02 15:42
Forum: General discussions
Topic: Distributions Lists in the webadmin
Replies: 2
Views: 540

Re: Distributions Lists in the webadmin

Hello, Configuration: hMail + Webadmin EMail-User with Grant: Domain or Server (both dont work) The EMail-User can login in the Webadmin and he can see the distribution lists. The Problem: If he want Add a email-Adress with the local Domain (The same Domain like the Distirbuton lists) , he get an e...
by palinka
2020-09-29 14:49
Forum: General discussions
Topic: Relay Isn't Allowed to Send "From"
Replies: 5
Views: 691

Re: Relay Isn't Allowed to Send "From"

Post logs around the time the message was sent. I bet they're rejecting for SPF.
by palinka
2020-09-28 14:19
Forum: General discussions
Topic: POP3 Relaying
Replies: 6
Views: 562

Re: POP3 Relaying

It's the flipside of that, the telephony system Mail Client initiates a POP3 Request to the GMail Mailbox and retrieves new email and holds it in the telephone system mail store. It worked with the on-prem Exchange implementation as they were on the same network, the client has migrated to Google f...
by palinka
2020-09-27 15:05
Forum: Off-topic discussions
Topic: i just love
Replies: 8
Views: 1878

Re: i just love

I modified the OnClientLogon(oClient) trigger to include password; Sub OnClientLogon(oClient, sPassword) This would be interesting to have in our main builds, just so that we can see the password being used in failed attempts. I wouldn't like to record passwords used in successful connections Yes, ...
by palinka
2020-09-25 15:23
Forum: General discussions
Topic: Max recipients in Batch in combination with SES from AWS
Replies: 32
Views: 2470

Re: Max recipients in Batch in combination with SES from AWS

Is the from address always the same? Or at least is there s way to determine from the from address if it's coming from your app? Perhaps you can script something that, when called by a rule, takes all the TO addresses, copies the body into a new message and sends the message individually to each rec...
by palinka
2020-09-25 14:04
Forum: General discussions
Topic: Max recipients in Batch in combination with SES from AWS
Replies: 32
Views: 2470

Re: Max recipients in Batch in combination with SES from AWS

StevenSpierenburg wrote:
2020-09-22 17:32
Hi All,

I try to have hMailServer in between our application and Amazon SES to achieve the following goal:
to have no more than 50 addresses per email sent.
Is it possible to set your application to send individual messages instead of batch messages?
by palinka
2020-09-24 14:17
Forum: General discussions
Topic: Hmail Primary handing off to secondary cloud servers
Replies: 5
Views: 681

Re: Hmail Primary handing off to secondary cloud servers

I think the easiest way to deal with this is simply to put your list on a separate domain, such as @list.example.com. then you point all mail to your previously secondary server, which becomes the main one. And you point the list mail to the previously main server, which becomes a dedicated list ser...