Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste ÜberarbeitungBeide Seiten der Revision |
centos:mail_c7:postfix3_1 [26.01.2019 20:33. ] – [Lockup-Tables] django | centos:mail_c7:postfix3_1 [26.01.2019 21:12. ] – [Systemtest] django |
---|
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 ctstate NEW | 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 ctstate NEW |
</code> | </code> |
| |
| |
| |
===== Systemstart ===== | ===== Systemstart ===== |
==== erster manueller Start ==== | ==== erster manueller Start ==== |
| |
# systemctl start postfix.service | # systemctl start postfix.service |
| |
| |
# systemctl status postfix.service | # systemctl status postfix.service |
<code>postfix.service - Postfix Mail Transport Agent | |
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled) | <html><pre class="code"> |
Active: active (running) since Fri 2014-10-10 22:41:26 CEST; 1min 11s ago | <font style="color: rgb(0, 255, 0)"><b>● </b></font>postfix.service - Postfix Mail Transport Agent |
Process: 30501 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS) | Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled) |
Process: 30517 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS) | Active: <font style="color: rgb(0, 255, 0)"><b>active (running)</b></font> since Sat 2019-01-26 21:41:21 CET; 12s ago |
Process: 30515 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) | Process: 14349 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS) |
Process: 30513 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) | Process: 14346 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) |
Main PID: 30590 (master) | Process: 14341 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) |
| Main PID: 14423 (master) |
CGroup: /system.slice/postfix.service | CGroup: /system.slice/postfix.service |
├─30590 /usr/libexec/postfix/master -w | ├─14423 /usr/libexec/postfix/master -w |
├─30591 pickup -l -t unix -u | ├─14424 pickup -l -t unix -u |
└─30592 qmgr -l -t unix -u | └─14425 qmgr -l -t unix -u |
| |
| Jan 26 21:41:20 vml000080.dmz.nausch.org systemd[1]: Starting Postfix Mail Transport Agent... |
| Jan 26 21:41:21 vml000080.dmz.nausch.org postfix/postfix-script[14421]: starting the Postfix mail system |
| Jan 26 21:41:21 vml000080.dmz.nausch.org postfix/master[14423]: daemon started -- version 3.3.2, configuration /etc/postfix |
| Jan 26 21:41:21 vml000080.dmz.nausch.org systemd[1]: Started Postfix Mail Transport Agent.</font> |
| </pre> |
| </html> |
| |
| Fragen wir nun mit Hilfe des Befehls ''**netstat -tulpen**'' die offenen Ports ab, sehen wir, dass der Port **25** auf beiden zur Verfügung stehenden Netzwerkinterfaces geöffnet wurden. |
| # netstat -tulpen |
| |
| <code>Active Internet connections (only servers) |
| Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name |
| tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 48472 14423/master |
| tcp6 0 0 ::1:25 :::* LISTEN 0 48473 14423/master</code> |
| |
| Alternativ dazu können wr auch den Befehl ''**lsof**'' verwenden. |
| # lsof -i :25 |
| |
| COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME |
| master 14423 root 13u IPv4 48472 0t0 TCP localhost:smtp (LISTEN) |
| master 14423 root 14u IPv6 48473 0t0 TCP localhost:smtp (LISTEN) |
| |
Oct 10 22:41:25 vml000087.dmz.nausch.org systemd[1]: Starting Postfix Mail Transport Agent... | |
Oct 10 22:41:26 vml000087.dmz.nausch.org postfix/master[30590]: daemon started -- version 2.11.1, configuration /etc/postfix | |
Oct 10 22:41:26 vml000087.dmz.nausch.org systemd[1]: Started Postfix Mail Transport Agent. | |
</code> | |
| |
==== automatischer Start beim Systemstart ==== | ==== automatischer Start beim Systemstart ==== |
| |
===== Systemtest ===== | ===== Systemtest ===== |
Mit der minimalen Konfiguration unseres Postfix haben wir bereits einen lauffähigen **MTA**. Zum Testen verwenden wir das programm **telnet**. | |
| \\ \\ \\ |
| <WRAP center round todo 30%> |
| FIXME FIXME FIXME |
| * //**do geds weida!**// |
| FIXME FIXME FIXME |
| </WRAP> |
| \\ \\ \\ |
| |
| |
| |
| |
| Mit der minimalen Konfiguration unseres Postfix haben wir bereits einen lauffähigen **MTA**. Zum Testen verwenden wir das Programm **telnet**. |
Die Eingaben am testenden Client sind in der Farbe <html><font style="color: rgb(0, 0, 255)"><b>blau</b></font></html> und die Rückmeldungen unseres Dovecot-Servers in der Farbe <html><font style="color: rgb(66, 66, 66)"><b>hellgrau</b></font></html> gekennzeichnet. Die Ausgaben des Befehls **telnet** sind in der Farbe <html><font style="color: rgb(0, 0, 0)"><b>schwarz</b></font></html> eingefärbt. | Die Eingaben am testenden Client sind in der Farbe <html><font style="color: rgb(0, 0, 255)"><b>blau</b></font></html> und die Rückmeldungen unseres Dovecot-Servers in der Farbe <html><font style="color: rgb(66, 66, 66)"><b>hellgrau</b></font></html> gekennzeichnet. Die Ausgaben des Befehls **telnet** sind in der Farbe <html><font style="color: rgb(0, 0, 0)"><b>schwarz</b></font></html> eingefärbt. |
| |
<font style="color: rgb(0, 0, 255)">mail from:<></font> | <font style="color: rgb(0, 0, 255)">mail from:<></font> |
<font style="color: rgb(66, 66, 66)">250 2.1.0 OK</font> | <font style="color: rgb(66, 66, 66)">250 2.1.0 OK</font> |
<font style="color: rgb(0, 0, 255)">rcpt to:<django@vml000087.dmz.nausch.org>></font> | <font style="color: rgb(0, 0, 255)">rcpt to:<django@vml000080.dmz.nausch.org>></font> |
<font style="color: rgb(66, 66, 66)">250 2.1.0 OK</font> | <font style="color: rgb(66, 66, 66)">250 2.1.0 OK</font> |
<font style="color: rgb(0, 0, 255)">DATA</font> | <font style="color: rgb(0, 0, 255)">DATA</font> |
test | test |
.</font> | .</font> |
<font style="color: rgb(66, 66, 66)">250 2.0.0 Ok: queued as 5F251C00088</font> | <font style="color: rgb(66, 66, 66)">250 2.0.0 Ok: queued as 5FFA5600088</font> |
<font style="color: rgb(0, 0, 255)">quit</font> | <font style="color: rgb(0, 0, 255)">quit</font> |
<font style="color: rgb(66, 66, 66)">221 2.0.0 Bye</font> | <font style="color: rgb(66, 66, 66)">221 2.0.0 Bye</font> |
</pre></html> | </pre></html> |
| |
Die Message-ID **5F251C00088** finden wir dann auch im Maillog wieder. | Die Message-ID **5FFA5600088** finden wir dann auch im Maillog wieder. |
| |
# tail -n7 /var/log/maillog | # tail -n7 /var/log/maillog |
| |
Oct 13 22:15:55 vml000087 postfix/smtpd[4304]: connect from localhost[::1] | <code>Jan 26 22:03:03 vml000080.dmz.nausch.org postfix/smtpd[14470]: connect from localhost[::1] |
Oct 13 22:16:34 vml000087 postfix/smtpd[4304]: 5F251C00088: client=localhost[::1] | Jan 26 22:03:46 vml000080.dmz.nausch.org postfix/smtpd[14470]: 5FFA5600088: client=localhost[::1] |
Oct 13 22:17:13 vml000087 postfix/cleanup[4308]: 5F251C00088: message-id=<20141013201634.5F251C00088@vml000087.dmz.nausch.org> | Jan 26 22:04:20 vml000080.dmz.nausch.org postfix/cleanup[14474]: 5FFA5600088: message-id=<20190126210346.5FFA5600088@vml000080.dmz.nausch.org> |
Oct 13 22:17:13 vml000087 postfix/qmgr[2202]: 5F251C00088: from=<>, size=364, nrcpt=1 (queue active) | Jan 26 22:04:20 vml000080.dmz.nausch.org postfix/qmgr[14425]: 5FFA5600088: from=<>, size=363, nrcpt=1 (queue active) |
Oct 13 22:17:13 vml000087 postfix/local[4309]: 5F251C00088: to=<django@vml000087.dmz.nausch.org>, relay=local, delay=63, delays=63/0.02/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox) | Jan 26 22:04:20 vml000080.dmz.nausch.org postfix/local[14475]: 5FFA5600088: to=<django@vml000080.dmz.nausch.org>, relay=local, delay=61, delays=60/0.02/0/0, dsn=2.0.0, status=sent (delivered to mailbox) |
Oct 13 22:17:13 vml000087 postfix/qmgr[2202]: 5F251C00088: removed | Jan 26 22:04:20 vml000080.dmz.nausch.org postfix/qmgr[14425]: 5FFA5600088: removed |
Oct 13 22:17:16 vml000087 postfix/smtpd[4304]: disconnect from localhost[::1] | Jan 26 22:04:23 vml000080.dmz.nausch.org postfix/smtpd[14470]: disconnect from localhost[::1] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5</code> |
| |
Auf unserem Festplatten wurde die eMail auch entsprechend abgespeichert. | Auf unserem Festplatten wurde die eMail auch entsprechend abgespeichert. |
# cat /var/spool/mail/django | # cat /var/spool/mail/django |
| |
<code>From MAILER-DAEMON Mon Oct 13 22:17:13 2014 | <code>From MAILER-DAEMON Sat Jan 26 22:04:20 2019 |
Return-Path: <> | Return-Path: <> |
X-Original-To: django@vml000087.dmz.nausch.org | X-Original-To: django@vml000080.dmz.nausch.org |
Delivered-To: django@vml000087.dmz.nausch.org | Delivered-To: django@vml000080.dmz.nausch.org |
Received: from foo (localhost [IPv6:::1]) | Received: from foo (localhost [IPv6:::1]) |
by vml000087.dmz.nausch.org (Postfix) with SMTP id 5F251C00088 | by vml000080.dmz.nausch.org (Postfix) with SMTP id 5FFA5600088 |
for <django@vml000087.dmz.nausch.org>; Mon, 13 Oct 2014 22:16:10 +0200 (CEST) | for <django@vml000080.dmz.nausch.org>; Sat, 26 Jan 2019 22:03:19 +0100 (CET) |
From: michael@nausch.org | From: michael@nausch.org |
To: django@vml000087.dmz.nausch.org | To: django@vml000087.dmz.nausch.org |
Subject: erste testmail | Subject: erste testmail |
Date: heute | Date: heute |
Message-Id: <20141013201634.5F251C00088@vml000087.dmz.nausch.org> | Message-Id: <20190126210346.5FFA5600088@vml000080.dmz.nausch.org> |
| |
test | test |