frames/testing.tex
changeset 16 a5163d6645bf
child 21 e5d2bd8b5c6f
equal deleted inserted replaced
15:94cf6ae85bc3 16:a5163d6645bf
       
     1 \section{Test und Betrieb}
       
     2 \subsection{Konfiguration}
       
     3 
       
     4 \begin{frame}[fragile]{Test und Betrieb}{Konfiguration}
       
     5 Viele Möglichkeiten, die bestehende Konfiguration zu überprüfen:
       
     6 \begin{alltt}
       
     7 	$ exim -bV -C test.conf
       
     8 	Configuration file is test.conf
       
     9 	$ exim -bP primary\_hostname
       
    10 	mail.example.com
       
    11 	$ exim -bP routers
       
    12 	… (ca 200 Zeilen)
       
    13 \end{alltt}
       
    14 \end{frame}
       
    15 
       
    16 \begin{frame}[fragile]{Test und Betrieb}{Routing, Expansion}
       
    17 \begin{verbatim}
       
    18 	$ exim -d-all+route -bt hans@example.com
       
    19
       
    20 	$ exim -d-all+expand -be '$lookup{root}lsearch{/etc/aliases}}'
       
    21 	search_open: lsearch "/etc/aliases"
       
    22 	search_find: file="/etc/aliases"
       
    23 		key="root" partial=-1 affix=NULL starflags=0
       
    24 	LRU list:
       
    25 		:/etc/aliases
       
    26 		End
       
    27 	internal_search_find: file="/etc/aliases"
       
    28 		type=lsearch key="root"
       
    29 	file lookup required for root
       
    30 		in /etc/aliases
       
    31 	lookup yielded: heiko
       
    32 	heiko
       
    33 \end{verbatim}
       
    34 \end{frame}
       
    35 
       
    36 \begin{frame}[fragile]{Test und Betrieb}{ACL}
       
    37 Fake-SMTP-Session mit \verb=exim -bh 1.1.1.1=, aber einfacher noch mit swaks.
       
    38 \scriptsize
       
    39 \begin{verbatim}
       
    40 	$ swaks --pipe 'exim -bh 1.1.1.1' --from … --to …
       
    41 	=== Trying pipe to exim -bh 1.1.1.1…
       
    42 	=== Connected to exim -bh 1.1.1.1.
       
    43 	>>> looking up host name for 1.1.1.1
       
    44
       
    45 	<-  **** SMTP testing session as if from host 1.1.1.1
       
    46 	<-  **** This is not for real!
       
    47
       
    48 	>>> processing "deny"
       
    49 	>>> deny: condition test succeeded in ACL "acl_check_rcpt"
       
    50 	LOG: [1967] H=(jumper.schlittermann.de) [1.1.1.1]
       
    51 	F=<hs@schlittermann.de> rejected RCPT <hans@example.com>: relay not
       
    52 	permitted
       
    53 	<** 550 relay not permitted
       
    54 	 -> QUIT
       
    55 	 <-  221 jumper.schlittermann.de closing connection
       
    56 \end{verbatim}
       
    57 \end{frame}