no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| — | centos:mailserver:grundinstallation_von_postfix [16.02.2009 19:03. ] (aktuell) – angelegt django | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== sicherer Mailserver mit Postfix ====== | ||
| + | {{: | ||
| + | Die nachfolgende Beschreibung zeigt, wie man unter CentOS 5 einen Postfix-Mailserver aufsetzen und sicher betreiben kann.\\ | ||
| + | \\ | ||
| + | ===== Installation ===== | ||
| + | Von Haus aus wird bei der CentOS-Installation // | ||
| + | < | ||
| + | ===== Konfiguration ===== | ||
| + | Der Großteil der Konfiguration von Postfix erfolgt über **/ | ||
| + | < | ||
| + | insgesamt 296 | ||
| + | -rw-r--r-- 1 root root 17832 21. Jan 2007 access | ||
| + | -rw-r--r-- 1 root root 3550 21. Jan 2007 bounce.cf.default | ||
| + | -rw-r--r-- 1 root root 11175 21. Jan 2007 canonical | ||
| + | -rw-r--r-- 1 root root 9920 21. Jan 2007 generic | ||
| + | -rw-r--r-- 1 root root 16838 21. Jan 2007 header_checks | ||
| + | -rw-r--r-- 1 root root 11942 21. Jan 2007 LICENSE | ||
| + | -rw-r--r-- 1 root root 26896 9. Aug 23:01 main.cf | ||
| + | -rw-r--r-- 1 root root 17981 21. Jan 2007 main.cf.default | ||
| + | -rw-r--r-- 1 root root 958 21. Jan 2007 makedefs.out | ||
| + | -rw-r--r-- 1 root root 4138 9. Aug 23:02 master.cf | ||
| + | -rw-r--r-- 1 root root 17639 21. Jan 2007 postfix-files | ||
| + | -rwxr-xr-x 1 root root 6366 21. Jan 2007 postfix-script | ||
| + | -rwxr-xr-x 1 root root 22564 21. Jan 2007 post-install | ||
| + | -rw-r--r-- 1 root root 6805 21. Jan 2007 relocated | ||
| + | -rw-r--r-- 1 root root 1629 21. Jan 2007 TLS_LICENSE | ||
| + | -rw-r--r-- 1 root root 12081 21. Jan 2007 transport | ||
| + | -rw-r--r-- 1 root root 11984 21. Jan 2007 virtual | ||
| + | </ | ||
| + | Als erstes sehen wir uns die Hauptkonfigurationsdatei **/ | ||
| + | Die Konfigurationsdatei ist durch die vielen sehr guten Dokumentationshinweise doch sehr angewachsen, | ||
| + | < | ||
| + | queue_directory = / | ||
| + | command_directory = /usr/sbin | ||
| + | daemon_directory = / | ||
| + | mail_owner = postfix | ||
| + | myhostname = host.domain.de | ||
| + | mydomain = domain.de | ||
| + | myorigin = $mydomain | ||
| + | inet_interfaces = all | ||
| + | mydestination = $myhostname, | ||
| + | unknown_local_recipient_reject_code = 550 | ||
| + | mynetworks = 192.168.1.0/ | ||
| + | alias_maps = hash:/ | ||
| + | alias_database = hash:/ | ||
| + | |||
| + | | ||
| + | debug_peer_level = 2 | ||
| + | debugger_command = | ||
| + | | ||
| + | xxgdb $daemon_directory/ | ||
| + | sendmail_path = / | ||
| + | newaliases_path = / | ||
| + | mailq_path = / | ||
| + | setgid_group = postdrop | ||
| + | html_directory = no | ||
| + | manpage_directory = / | ||
| + | sample_directory = / | ||
| + | readme_directory = / | ||
| + | </ | ||
| + | Eine weitere Möglichkeit sich die Konfiguration unseres Mailservers, | ||
| + | < | ||
| + | alias_maps = hash:/ | ||
| + | command_directory = /usr/sbin | ||
| + | config_directory = / | ||
| + | daemon_directory = / | ||
| + | debug_peer_level = 2 | ||
| + | html_directory = no | ||
| + | inet_interfaces = all | ||
| + | mail_owner = postfix | ||
| + | mailq_path = / | ||
| + | manpage_directory = / | ||
| + | mydestination = $myhostname, | ||
| + | myhostname = host.domain.de | ||
| + | mynetworks = 192.168.1.0/ | ||
| + | mynetworks_style = subnet | ||
| + | myorigin = $mydomain | ||
| + | newaliases_path = / | ||
| + | queue_directory = / | ||
| + | readme_directory = / | ||
| + | sample_directory = / | ||
| + | sendmail_path = / | ||
| + | setgid_group = postdrop | ||
| + | smtpd_banner = $myhostname ESMTP $mail_name | ||
| + | unknown_local_recipient_reject_code = 550 | ||
| + | </ | ||
| + | ===== Test ===== | ||
| + | Die erfolgreiche erste Konfiguration testen wir am besten ganz einfach mit Hilfe von postfix selbst. | ||
| + | < | ||
| + | Der erste Start erfolgt dann ganz unspektakulär mittels: | ||
| + | < | ||
| + | Unsere erste Testmail verschicken wir dann von Hand und Verfolgen das Ergebnis im / | ||
| + | < | ||
| + | HELO localhost | ||
| + | MAIL FROM: root@localhost | ||
| + | RCPT TO: django@localhost | ||
| + | DATA | ||
| + | From: root@localhost | ||
| + | To: django@localhost | ||
| + | Subject: erste Testmail | ||
| + | |||
| + | Dies ist unsere erste Testmail | ||
| + | . | ||
| + | quit</ | ||
| + | < | ||
| + | Aug 9 12:23:39 nss postfix/ | ||
| + | Aug 9 12:23:53 nss postfix/ | ||
| + | Aug 9 12:23:53 nss postfix/ | ||
| + | Aug 9 12:23:53 nss postfix/ | ||
| + | /0.04, dsn=2.0.0, status=sent (delivered to mailbox) | ||
| + | Aug 9 12:23:53 nss postfix/ | ||
| + | Aug 9 12:23:56 nss postfix/ | ||