Note to Self - Mail Sender Authentication Protocols, and an Overview of SPF, DKIM, DMARC and others

Building a modern mail server on the internet typically involves, beside other activity on exposed server, tweaking DNS entries. Hyper-scalers often provide step-by-step instructions on how to handle your domain, often coupled with screenshots from popular control panels. For self-hosted solutions, you might come across acronyms such as SPF, Sender ID, DKIM, DMARC, and DANE. These technologies form the basis of mail sender authentication.

Read More

SMTP server in node.js?

https://github.com/haraka/Haraka

Haraka is a highly scalable node.js email server with a modular plugin architecture. Haraka can serve thousands of concurrent connections and deliver thousands of messages per second. Haraka and plugins are written in asynchronous JS and are very fast.

Read More

PowerShell script templates

ii Not yet done. :|

  • PowerShell Script Template v2 Posted on September 6, 2015 by Luca Sturlese + https://gist.github.com/9to5IT/9620683
  • Rambling Cookie Monster: http://ramblingcookiemonster.github.io/Building-A-PowerShell-Module/
  • https://github.com/mczerniawski/ArcAdminTools/blob/master/ArcAdminTools/Public/Get-FunctionTemplate.ps1
Read More

Microsoft Message Analyze, netsh trace

Not yet done. :|

  • https://isc.sans.edu/forums/diary/No+Wireshark+No+TCPDump+No+Problem/19409/
  • https://4sysops.com/archives/capture-network-traces-with-the-powershell-module-neteventpacketcapture/
  • https://docs.microsoft.com/en-us/message-analyzer/microsoft-message-analyzer-operating-guide
  • https://blogs.technet.microsoft.com/messageanalyzer/ (so MMA is that if no blog entries in blog :))
  • https://www.pluralsight.com/blog/it-ops/microsoft-message-analyzer
  • https://www.youtube.com/watch?v=8cxB1_A4cfo
Read More

Curl is the best

Curl is also on Windows… Both as vendor provided and … by Microsoft using MS Schannel library.

Read More

Test-GMERemoteX509Cert

I need quick method to verify which of our services expose expiring certificates (and verify to control process of changing done by Network security team).

Read More

PSCustomObject vs Select-Object with calculated properties

there are many of method to collect data in foreach (or other) loops in PowerShell. One of them are calculated properties (useful when we are sure on we have such data, and we agreed to not display it). Calculated properties generate some mess in code. That why personally, for long term managed scripts I prefer PSCustom object. But there are cases (especially in oneliners) where CP are just faster. Recently I read done on Kiran’s WeBlog on move hash from CP to variable. Instead:
```powershell PS C:\h\z\s> dir -file | select Fullname,@{n=’SizeKB’;e={$_.Length/1KB -as [int]}},LastWriteTimeUTC

Read More

Free online courses for Microsoft 365 and Azure / openedx.microsoft.com

Look at list https://www.inthecloud247.com/free-online-courses-for-microsoft-365-and-azure/ or https://www.microsoft.com/en-us/learning/mct-readiness.aspx It contains free available MOOC course for modern Microsoft technologies like Azure, widely understood Workplace services (including current Exchange 2019 exam MS-200 an MS-201). All of those courses are hosted on https://openedx.microsoft.com/courses/ - and require to login using Microsoft Account (Office 365 credentials doen’t work).

Read More

PowerShell resolveHostByName

PowerShell’s Resolve-DnsName generate awful results. So old method for get IP address of machine for which we know only name is useful (BTW it’s strange how many support teams require provide only IP / port, not understanding application which are under, and even not able to resolve name using any kind of looking glass).

Read More

PowerShell and list of all DC in forrest

Sometime, when I tried solve problems with Exchange Server on-permises I need i.e. investigate traffic for Active Directory. Or when I need set up new site. And for many other cases. For mall environments it’s simple: open dsa.msc also known for ADUC and look. For bigger, it’s quite complicated :).

Read More

some usefull Azure Shell 2.0 commands

I’m used to write scripts, and manage environment with PowerShell. But… for longer time new function in Azure RM Portal was unavailable for powershell, only Azure Shell. https://shell.azure.com/. Beside others: I want to try some other aproach.

Read More

You're up and running!

Ok, it’s mine 4th or 5th approach to blogging. Before blogging I was author of pl.comp.www (written first using linuxdoc, later in DocBook). In meantime I use nibylog, other bash solution, Umbraco, any other on ASP.NET, wordpress. Time back to root, and just generate files in any kind simple text generator. This time with local editor but also with web interface like github. :)

Read More