Add New User to AD for Exchange
-
Tools > Active Directory Users and Computers
-
Create New User
exchange
-
Password never expires
- Users > exchange > Right click > Member of > Add
Domain Admins
,Schema Admins
,Enterprise Admins
> OK
On Echange 2019 Server
- Add to DNS DC to server for me its 192.168.1.220
- Dont forget disable dhcpv6 and join to domain
- Download and Install Net Framework 4.8
https://support.microsoft.com/en-us/topic/microsoft-net-framework-4-8-offline-installer-for-windows-9d23f658-3b97-68ab-d013-aa3c3e7495e0
- Download and Install Visual C++ Redistributable Package for Visual Studio 2012
https://www.microsoft.com/en-us/download/details.aspx?id=30679
- Download and Install Visual C++ Redistributable Package for Visual Studio 2013
https://support.microsoft.com/en-us/topic/update-for-visual-c-2013-redistributable-package-d8ccd6a5-4e26-c290-517b-8da6cfdf4f10
- Download and Install Microsoft Unified Communications Managed API 4.0
https://www.microsoft.com/en-us/download/details.aspx?id=34992
- Restart machine
Install components in Powershell
- Next step is to install the Remote Tools Administration Pack. Open Windows PowerShell and run below command.
- Open Powershell with Administrator
Install-WindowsFeature Server-Media-Foundation, NET-Framework-45-Core, NET-Framework-45-ASPNET, NET-WCF-HTTP-Activation45, NET-WCF-Pipe-Activation45, NET-WCF-TCP-Activation45, NET-WCF-TCP-PortSharing45, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation, RSAT-ADDS
- Download and Install IIS URL Rewrite.
https://www.iis.net/downloads/microsoft/url-rewrite
- Install from disk go to
f:\
iso file :
cd f:
.\Setup.EXE /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /PrepareSchema
DC sync
if you have many DC servers you need sync
repadmin /syncall
Back to Exchange Server
.\Setup.EXE /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /PrepareAD /OrganizationName:"dan"
its my site domain 641514.cc
for other domain add command :
.\Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /PrepareDomain:641514.cc
Back to DC
-
you can see change:
-
resync now
repadmin /syncall
Install ISO
Back to Exchange Server and Install iso
now i can run setup.exe
> Next :
Error its OK (i dont have connect to internet) Done
Now test if all ok
all ok “true”
On DC Add DNS Records
-
DNS > Server > Forward Lookup Zones > dan.local > New Hosts (A or AAAA) > Add
192.168.1.169
(IP Exchange server) > Add Host -
Add autodiscover for Outlook
-
DNS > Server > Forward Lookup Zones > dan.local > _tcp > Other New Records > SRV > Create Record
-
Service:
_autodiscover
> Protocol:_tcp
> Port443
> Hostmail.dan.local
> Done -
Done
-
Need Add MX record:
Login on Web Admin Exchange Center
- Open web browser and write
https://mail.dan.local/ecp
-
login with exchange account:
-
Set time:
-
Now Need Create address mail policies:
-
mailflow > email address policies > +
-
Click on plus
-
Select your fotmat and click on Save
-
Give to police name
local
and click Save -
Warning say i need apply police
-
Apply police
-
Done
Move the DB to another disk
-
First i need create folders
DB
after in folderLOGS
,EDB
-
First I need unmount database
-
Dismount it
-
Done
-
Open Exchange Management Shell > write
Get-MailboxDatabase
-
Move database to disk d:
Move-DatabasePath -Identity DB -EdbFilePath d:\DB\EDB\db01.edb -LogFolderPath d:\DB\LOGS
-
Watch if all OK
-
Now Mount and Done
Add User Mail to AD User
-
recipients > + > Alies:
test
> Browser > Save -
Go to Outlook and send
https://mail.dan.local/owa
Test send messege to check if all ok
Sender Agent
Mail flow > +
create for sender for my local domain
choice mx record and next
press +
and and choice smtp record
*
for all domains
Next
Add server +
choice add dan.local
and OK and Finish
Done!
External Domain
ecp my external name his 641514.cc
ews my external name his 641514.cc
mapi my external name his 641514.cc
Active Sync my external mame his 641514.cc
OAB my external mame his 641514.cc
owa my external mame his 641514.cc
-
ECP (Exchange Control Panel) — its web server for Administration Microsoft Exchange Server
-
EWS (Exchange Web Services) is a web service provided by Microsoft Exchange Server that allows applications to communicate with the Exchange server through a programmatic interface. EWS provides access to various Exchange features, including managing email, calendars, contacts, tasks, and other data.
-
MAPI (Messaging Application Programming Interface) is an application programming interface developed by Microsoft that allows client applications to exchange messages, interact with email, calendars, and other functions of servers such as Microsoft Exchange Server.
-
Exchange ActiveSync (EAS) is a synchronization protocol developed by Microsoft for accessing mail, calendars, contacts, tasks, and notes on mobile devices. It provides communication between a server (for example, Microsoft Exchange Server) and a client device (smartphone, tablet, or email client). EAS is the primary protocol for integrating Exchange with mobile devices.
-
OAB (Offline Address Book) is an offline address book used in Microsoft Exchange Server. OAB allows Microsoft Outlook users to work with their organization’s address book without connecting to a server. This is especially useful when you are not connected to the Internet or in situations where you want to minimize the load on the Exchange server.
-
OWA (Outlook Web App) is a web application developed by Microsoft for accessing mail, calendar, contacts and tasks through a browser. OWA is a component of Microsoft Exchange Server that allows users to experience business email and other Exchange features without installing a client application such as Microsoft Outlook.
DNS
Records | IP | |
---|---|---|
A | @ | 75.10.52.21 |
A | ex | 75.10.52.21 |
MX | @ | ex.641514.cc |
TXT | @ | v=spf1 a mx ~all |
TXT | _dmarc | v=DMARC1; p=none |
Spf
v=spf1 ip:my_domain_ip mx ~all
dkim txt mail: domainkey mypublickey
dmarc
txt _dmarc v=DMARC1; p=quarantine; aspf=r; sp=none
pop3 imap
services > microsoft imap4 > autorun services > microsoft imap4 backend > autorun
services > microsoft pop3 > autorun services > microsoft pop3 backend > autorun
need create certificate
ecp > servers > certificate > ssl cetificate doble click and services and v on imap pop and save
Set-PopSettings -ExternalConnectionSettings “mail.641514.cc:995:SSL”, “mail.641514.cc:110:SSL” -X509CertificateName 641514.cc
Set-ImapSetting –ExternalConnectionSettings “mail.641514.cc:993:SSL”, “mail.641514.cc:143:SSL” -X509CertificateName 641514.cc
take x509 name from ecp certificate
restart pop3 and backend restart imap and backend
router open ports
443,80,995,110,25,993,143
mail flow > client frontend expc > scooping > FQDN : my external domain
Get-Exchangecertificate
copy thumpprint
ewrewrwererwewerwer
smtp
Get-Exchangecertificate -Trumbprint #$@$#@@#$#@#$EWFEW
$TLSCertName = “$($TLSCert.Issuer)$($TLSCert.Subject)”
Get-ReceiveConnector -Identity “Client Frontend*” | Set-ReceiveConnector -TlsCertificateName $TLSCertName
look cetificate Get-ReceiveConnector -Identity “Client Frontend*” | Format-List Name,Fqdn
check enable pop and imap on outlook
ecp > recipients > user > mailbox features > pop3 enabled
test
Test-ImapConnectivity -ClientAccessServer -Lightmode -MailboxCredential (Get-Credential)
Test-PopConnectivity -ClientAccessServer -Lightmode -MailboxCredential (Get-Credential)
https://testconnectivity.microsoft.com/
outlook for anywere
servers > servers > expc > outlook anywere > mydomain
import cetificate
import-ExchangeCertificate -server expc -Filedata ([System.IO.File]::ReadAllBytes(’\expc\Certs\certificate.pfx’))
or
import-ExchangeCertificate -server expc -Filedata ([System.IO.File]::ReadAllBytes(‘c:\Certs\certificate.pfx’))
aFTER
SERVERS> cerficates > cn=r3 > services and > x all smtp, pop imap
test mail
https://www.mail-tester.com/
Key for EX2019
YCQY7-BNTF6-R337H-69FGX-P39TY