Mail protocols diagnostics (in Russian)
Found a good article about mail protocols diagnostic: http://habrahabr.ru/company/truevds/blog/262819/ Copy-pasted. 1. Введение В сети достаточно материалов по отдельным пунктам, но все разбросано по разным местам и, когда возникает необходимость выполнить ту или иную операцию, приходится по разным ресурсам вспоминать нюансы авторизации, способы быстрой кодировки в base64, ключи к openssl и tshark. Здесь все собрано вместе, […]
Several Tomcat instances on the same server
I needed in several instances of Tomcat(6,8, x86,x64) on the same server. I’ve done it. I installed JDK x86 and x64. I installed the first instance (Tomcat 6×86) and downloaded zip-archive for Tomcat8x64, extracted it into the folder. I added initial strings in files …/Tomcat8x64/bin/catalina.bat, …/Tomcat8x64/bin/service.bat: set CATALINA_HOME=c:\Apache\Tomcat8x64 set CATALINA_BASE=c:\Apache\Tomcat8x64 set JAVA_HOME=C:\Progra~1\Java\jdk1.8.0_25 Ran service.bat: service.bat […]
Exchange + SPF + DKIM + DMARC
If you want your mail wouldn’t mark as SPAM you should configure: 1. DNS PTR records for your mail servers (usually by request to your provider (hoster)) 2. SPF (TXT record in your DNS) By online wizard from MS: https://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/ Check it: http://mxtoolbox.com/spf.aspx 3. DKIM (TXT record in your DNS) Download free DKIM-configurator: https://github.com/Pro/dkim-exchange/releases/tag/v2.1.4 Enter […]
Veeam + Adding Hyper-V host = Access denied
Solution: Click Start, click Run, type regedit, and then press ENTER. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System If the LocalAccountTokenFilterPolicy registry entry does not exist, follow these steps: On the Edit menu, point to New, and then click DWORD Value. Type LocalAccountTokenFilterPolicy, and then press ENTER. Right-click LocalAccountTokenFilterPolicy, and then click Modify. […]
Exchange 2010 + SMTP + TELNET + AUTH + TLS
There are some interesting tricks: The commands to use in telnet with the “AUTH LOGIN” command: perl -MMIME::Base64 -e ‘print encode_base64(“username”);’ perl -MMIME::Base64 -e ‘print encode_base64(“password”);’ EHLO mailserver.com 250-server1.mailserver.com Hello [1.1.1.2] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP AUTH LOGIN 334 VXNlcm5hbWU6 dXNlcm5hbWUuY29t 334 UGFzc3dvcmQ6 bXlwYXNzd29yZA== BUT, Exchange has NTLM auth only: 250-AUTH […]
EventViewer + Powershell + Event 4740
I attached this script to the event 4740 to notify users about issues with their acounts Script: ############################################ # Alert script for the security event 4740 # # Just attach it to the event # # 2015 # ############################################ # Get the […]
Exchange 2010 + Modifying a banner for a receive connector
Get-ReceiveConnector Set-ReceiveConnector –identity “Your Connector Name” –Banner “220 mail.company.com” Get-ReceiveConnector “Your Connector Name” | fl
Lync 2013 + Front-End service stucks with “Starting”
I met a strange issue with Lync 2013: FE-service won’t start. Just hangs with Starting in the status. Solution: 1. Try to reset a pool and then reboot a server: Reset-CsPoolRegistrarState -PoolFqdn “server.local.com” -ResetType FullReset 2. Check for the invalid certificates in TrustedRoot: Get-Childitem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject} | Format-List * If […]
Exchange 2010 + Work with queues
1. Get the queue list C:\>get-queue -server your-server Identity DeliveryType Status MessageCount NextHopDomain ——– ———— —— ———— ————- yourserver\183671 DnsConnec… Ready 0 gmail.com yourserver\Submission Undefined Ready 0 Submission yourserver\Shadow\151617 ShadowRed… Ready 1 yourserver 2. Export all the messages from a queue, e.g.: $exp = get-queue -queue “yourserver\183671″ $exp | ForEach-Object { $Temp=”C:\Export\”+$_.InternetMessageID+”.eml”; $Temp=$Temp.Replace(“<“,”_”); $Temp=$Temp.Replace(“>”,”_”); Export-Message […]