Search found 2078 matches

by palinka
2020-10-26 00:29
Forum: General discussions
Topic: Cannot send mail via client
Replies: 9
Views: 91

Re: Cannot send mail via client

I want to make sure it works perfectly There is SO MUCH more to running a mailserver than simply installing the software and opening ports on your router (with instruction). You need a valid SSL certificate, and not a self signed one You need SPF, DKIM and DMARC records You need RDNS to match your ...
by palinka
2020-10-25 20:14
Forum: General discussions
Topic: 550 Rejected by SpamCop - when using Sendgrid
Replies: 24
Views: 205

Re: 550 Rejected by SpamCop - when using Sendgrid

SendGrid suffered an incursion in August and a large number of customer accounts were compromised. https://krebsonsecurity.com/2020/08/sendgrid-under-siege-from-hacked-accounts/ Spammer quickly hoovered up the account and the resulting spam assault BL many SendGrid IPs. They are still recovering. I...
by palinka
2020-10-23 20:03
Forum: Scripting
Topic: Free Unlimited Offsite Backup
Replies: 5
Views: 198

Re: Free Unlimited Offsite Backup

Fixed a bug that caused file encoding to corrupt the archive to be uploaded. Took a while to figure that one out. Clue was here: https://stackoverflow.com/questions/25469118/trouble-with-powershell-script-to-call-http-post-with-multipart-form-data #ISO-8859-1 is only encoding where byte value == cod...
by palinka
2020-10-23 15:09
Forum: General discussions
Topic: 550 Rejected by SpamCop - when using Sendgrid
Replies: 24
Views: 205

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. Hmmmm....... That's interesting. Let's review: A) Someone hurt your feelings vs B) Arrest, prosecution, $$$ to d...
by palinka
2020-10-22 21:24
Forum: General discussions
Topic: 550 Rejected by SpamCop - when using Sendgrid
Replies: 24
Views: 205

Re: 550 Rejected by SpamCop - when using Sendgrid

PS: I do not understand why you are viciously attacking an innocent victim. Sendgrid is for spamming like HTTP is for child porn. I cannot help it: I have to develop a wrapper for Sendgrid API for an infrastructure monitoring application, but you keep attacking me personally. Give your head a shake...
by palinka
2020-10-21 14:19
Forum: Off-topic discussions
Topic: Why using "master" in Github is bad ...
Replies: 22
Views: 1931

Re: Why using "master" in Github is bad ...

I came across a thing called 'USER_IN_WELCOMELIST', previously know as 'USER_IN_WHITELIST' in spamassassin....we are kind of going crazy with blm, aren't we? Allthough, blacklist_from seems unchanged (yet) From recent back and forth in the SA user list, there is only one set of rules for all versio...
by palinka
2020-10-21 14:06
Forum: General discussions
Topic: Where to place created MX record in hMail
Replies: 27
Views: 400

Re: Where to place created MX record in hMail

Meh... All signs point to landslide victory. Yard signs, merchandise, donations, every conceivable metric. Except fake news polls. They're the only holdout and just as fake as they were in 2016. There is simply zero enthusiasm for the corrupt, senile kiddie diddler candidate that hides in his basem...
by palinka
2020-10-21 00:38
Forum: General discussions
Topic: Where to place created MX record in hMail
Replies: 27
Views: 400

Re: Where to place created MX record in hMail

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. This is brave. Can you imagine the "told you so" and opportunity for ridicule this is opening up. I presume the "eternal war" should have been "external...
by palinka
2020-10-20 16:30
Forum: General discussions
Topic: hMailServer and Sendgrid
Replies: 15
Views: 223

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: 223

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: 198

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: 223

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: 223

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: 400

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: 400

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: 400

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: 198

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: 131

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: 198

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: 400

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: 95449

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: 400

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: 408

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: 408

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: 357

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: 357

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: 408

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: 357

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: 357

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: 29
Views: 663

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: 38921

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: 29
Views: 663

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: 227

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: 227

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: 4403

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: 9873

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: 152

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: 9873

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: 277

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: 277

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: 277

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: 277

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: 277

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: 277

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: 153

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: 102

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: 102

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: 153

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: 277

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: 277

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: 277

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: 277

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: 277

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: 355

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: 9873

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: 124

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: 377

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: 661

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...