\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Jacques} \pdfinfo{ /Title (exchange-server-cheat-sheet.pdf) /Creator (Cheatography) /Author (Jacques) /Subject (Exchange Server Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Exchange Server Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Jacques} via \textcolor{DarkBackground}{\uline{cheatography.com/98825/cs/20976/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Jacques \\ \uline{cheatography.com/jacques} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 1st November, 2019.\\ Updated 1st November, 2019.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{4} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{INFO}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{Lavet af: \newline % Row Count 1 (+ 1) Anders \newline % Row Count 2 (+ 1) Jacques \newline % Row Count 3 (+ 1) Jens-Terje \newline % Row Count 4 (+ 1) Jesper \newline % Row Count 5 (+ 1) RoseMarie% Row Count 6 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{Microsoft Exchange Server H2} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{RETTIGHEDER}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{Full Access} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Giver brugere rettigheder til at kunne redigere og læse i en Mailbox, dog ikke rettighed for at kunne sende fra mailbox.} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{Send As} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Giver rettighed til at sende mails, som om de kommer direkte fra mailboxen eller gruppen. Der er ingen indikation på, hvem mailen er sendt fra.} \tn % Row Count 9 (+ 5) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{Send of Behalf} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Giver en bruger rettighed til at sende mails fra mailboxen eller mailgruppen. Der bliver tydligt vist at mails er sendt fra denne bruger, via afsenderadressen.} \tn % Row Count 14 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{CERTIFIKAT}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{OPRET ET CERTIFICATE REQUEST}} \newline % Row Count 1 (+ 1) 1. Find EAC -\textgreater{} Servers -\textgreater{} Certificates -\textgreater{} New(+) \newline % Row Count 2 (+ 1) 2. Herefter vælges "Create a request for a certifiticate from a certificate authority" \newline % Row Count 4 (+ 2) 3. Udfyld formlen så du kan få en "request file" \newline % Row Count 6 (+ 2) {\bf{LAV CERTIFIKATET PÅ ADCS SERVEREN}} \newline % Row Count 7 (+ 1) 1. For at få et certifikat, skal du submite base-64 encoded text request \newline % Row Count 9 (+ 2) 2. Herefter skal du downloade certifikatet på din Exchange Server \newline % Row Count 11 (+ 2) {\bf{IMPLEMENTÉR CERTIFIKATET PÅ SERVERN}} \newline % Row Count 12 (+ 1) 1. Gå igen ind på EAC -\textgreater{} Servers -\textgreater{} Certificates \newline % Row Count 14 (+ 2) 2. Her skal du vælge det certifikcate, som står i "pending" \newline % Row Count 16 (+ 2) 3. Vælg "complete" og vælg den stig hvor dit certifikat er blevet downloadet til% Row Count 18 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{KONFIGURERE HUB ROLLEN}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{1. I EAC vælg "mailflow" herefter vælg "accepted domains" \newline % Row Count 2 (+ 2) 2. Klik + og skriv {[}red.domainnavn.com{]} \newline % Row Count 3 (+ 1) 3. Åben Exchange Management Shell (EMS) og skriv kommando: \newline % Row Count 5 (+ 2) `Get-TransportConfig` - for at se om externalpostmasteradress er tomt% Row Count 7 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{FORBERED AD SERVER OG INTALL AF EXCHANGE-SERVER}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{1. Kør denne kommando i Power Shell: \newline % Row Count 1 (+ 1) `Install-WindowsFeature RSAT-ADDS` \newline % Row Count 2 (+ 1) 2. Kør disse kommando i CMD: \newline % Row Count 3 (+ 1) \seqsplit{`D:/Setup.exe/PrepareAD/IAcceptExchangeServerLicenseTerms`} \newline % Row Count 5 (+ 2) \seqsplit{`D:/Setup.exe/PrepareAD/OrganizationName:} "Navn til in Org. eller firma" \seqsplit{/IAcceptExchangeServerLicenseTerms`} \newline % Row Count 8 (+ 3) 3. Installering af Exchange Server ved brug af denne kommandoi CMD: \newline % Row Count 10 (+ 2) `D:/ Setup.exe`, Vælg "nej" til opdatering, vælg "mailbox" og "nej" til malware scan.% Row Count 12 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{Forkortelser}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{DNS} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Domain Name System} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{AD} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Active Directory} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{RSAT} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Remote Server Administration Tools} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{OU} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Organizational Unit} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{POP3} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Post Office Protocol version 3} \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{HTTP} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}HyperText Transfer Protocol} \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{IMAP} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Internet Message Access Protocol} \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{EAC} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Exchange Admin Center} \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{3.833cm}}{EMS} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Exchange Management Shell} \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{SMTP} \tn \mymulticolumn{1}{x{3.833cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}Simple Mail Transfer Protocol} \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{KONFIGURERE DNS MX}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{1. I AD-server, gå inden i DNS Manager, \newline % Row Count 1 (+ 1) 2. Under forward-lookup, skal du vælge "domain name" f.eks. zbcringsted5.com \newline % Row Count 3 (+ 2) 3. Højreklik på "domain name" og vælg "new mail Exchange" (MX) \newline % Row Count 5 (+ 2) 4. I FQDN felt browse "Exchange server domain", indtil du når til "Exchange server A-rekord" f.eks. EexchangeServer Host(A). Klik OK. \newline % Row Count 8 (+ 3) 5. I mail server priority feltet skal du ændre værdien til 20. \newline % Row Count 10 (+ 2) 6. I CMD-prompt, skriv NSlookup type=mx efterfulgt af domain name% Row Count 12 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{IMAP4/POP3}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{{\bf{IMAP4 SETUP}} \newline % Row Count 1 (+ 1) 1. Først start IMAP4 Services automatisk \newline % Row Count 2 (+ 1) 2. Hereafter skal du konfigurér IMAP4 til alle dine klienter, ved hjælp af følgende kommando: \newline % Row Count 4 (+ 2) `Set-ImapSettings \seqsplit{-ExternalConnectionSettings} "mail.{[}name{]}.com:993:SSL", "mail.{[}name{]},com:143:TLS" -X509CertificateName mail.{[}name{]}.com` \newline % Row Count 7 (+ 3) 3. Når dette er gjordt skal IMAP4 serveren genstartes \newline % Row Count 9 (+ 2) {\bf{POP3 SETUP}} \newline % Row Count 10 (+ 1) 1. Først starts POP3 Services automatisk \newline % Row Count 11 (+ 1) 2. Hereafter skal du konfigurér POP3 til alle dine klienter, ved hjælp af følgende kommando: \newline % Row Count 13 (+ 2) `Set-PopSettings \seqsplit{-ExternalConnectionSettings} "mail.{[}name{]}.com:995:SSL","mail.{[}name{]}.com:110:TLS" -X509CertificateName mail.{[}name{]}.com` \newline % Row Count 19 (+ 6) 3. Når dette er gjordt skal POP3 serveren genstartes \newline % Row Count 21 (+ 2) {\bf{SMTP BESKEDER TIL POP3/IMAP4 KLIENTER}} \newline % Row Count 22 (+ 1) 1. Du skal konfigurer "Recive connector" \newline % Row Count 23 (+ 1) `Get-ReceiveConnector -Identity "Client Frontend*" | Set-ReceiveConnector -Fqdn {[}name{]}-exch1.{[}name{]}.local` \newline % Row Count 26 (+ 3) 2. Certifikat eks. fra Microsoft Technet \newline % Row Count 27 (+ 1) `\$TLSCert = Get-ExchangeCertificate -Thumbprint \seqsplit{434AC224C8459924B26521298CE8834C514856AB`} \newline % Row Count 29 (+ 2) `\$TLSCertName = "\textless{}|\textgreater{}\$(\$TLSCert.Issuer)\textless{}S\textgreater{}\$(\$TLSCert.Subject)"` \newline % Row Count 31 (+ 2) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{IMAP4/POP3 (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{`Get-ReceiveConnector -Identity "Client Frontend*" | Set-ReceiveConnector -TlsCertificateName \$TLSCertName` \newline % Row Count 3 (+ 3) 3. For at få vist SMTP settings I OWA, brug følgende kommando: \newline % Row Count 5 (+ 2) `Get-ReceiveConnector -Identity "Client Frontend*" | Set-ReceiveConnector -AdvertiseClientSettings \$true`% Row Count 8 (+ 3) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{OPSÆTNING AF MAILBOX}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{1. Åben Power Shell som Administrator og opret nogle biblioteker ved at køre denne kommando: \newline % Row Count 2 (+ 2) `Invoke-Command -ComputerName {[}exchange server navn{]} \{New-Item C:\textbackslash{}MBX1, C:\textbackslash{}MBX2, C:\textbackslash{}MBX3 -ItemType directory\}` \newline % Row Count 5 (+ 3) 2. For at se mailbox-databasens information skal du køre kommandoen: \newline % Row Count 7 (+ 2) `Get-MailboxDatabase` \newline % Row Count 8 (+ 1) 3. Åben EMS og kør kommandoen: \newline % Row Count 9 (+ 1) `Move-DatabasePath -Identity "Mailbox Database {[}din database no. f.eks. 2046881750{]}" -EdbFilePath 'C:\textbackslash{}MBX1\textbackslash{}Mailbox Database 2046881750.edb' -LogFolderPath C:\textbackslash{}MBX1\textbackslash{}Logs – for at flytte database og logfiler.` \newline % Row Count 14 (+ 5) 4. Klik "ja" til udfører flytningen og dismount databasen. For at tjekke databasen og logfilerne er flyttet skal du køre denne kommando: \newline % Row Count 17 (+ 3) `Get-MailboxDatabase`% Row Count 18 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{OPRETNING AF NEY MAILBOX-DATABASER}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{1. Åben EMS og kør kommandoen: \newline % Row Count 1 (+ 1) `New-MailboxDatabase -Name 'Ringsted-DB2' -EdnFilePath 'C:\textbackslash{}MBX2\textbackslash{}Ringsted-DB2.edb' -Server {[}exchange server FQDN f. eks. exsvr.xbcringsted5.com{]}`% Row Count 5 (+ 4) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{3.833cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{3.833cm}}{\bf\textcolor{white}{MONTERING AF DATABASE}} \tn \SetRowColor{white} \mymulticolumn{1}{x{3.833cm}}{1. I EMS skal du køre kommandoen: Mount-Database -Identity Ringsted-DB2 \newline % Row Count 2 (+ 2) 2. Log ind i EAC og opret den sidste Mailbox-Database, vælg servers -\textgreater{} database og klik +. \newline % Row Count 4 (+ 2) o Giv den sidste mailbox Ringsted-PF1 navn. \newline % Row Count 6 (+ 2) o Under server felt, browse exchange server \newline % Row Count 7 (+ 1) o i database file path felt, skriv C:\textbackslash{}MBX3\textbackslash{}Ringsted-PF1.edb \newline % Row Count 9 (+ 2) o I log folder path feltet skal du skrive "C:\textbackslash{}MBX3", herefter sæt kryds i "mount the database" og gem. \newline % Row Count 12 (+ 3) 3. Åben den første MailboxDatabase og ændre begrænsninger ved hjælp af denne kommando: \newline % Row Count 14 (+ 2) `Issue warning til 10MB` (0,01 MB), `Prohibit sæt til 400 MB` (0,4 MB), `Prohibit send and receive til 500 MB` (0,5 MB). Gør dette for alle databaser der bliver oprettet.% Row Count 18 (+ 4) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}