Postfix: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 48: Zeile 48:
 
Dec 11 13:20:55 maria postfix/local[7519]: 3B56724046: to=<mario@maria.xinux.org>, relay=local, delay=0.14, delays=0.13/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
 
Dec 11 13:20:55 maria postfix/local[7519]: 3B56724046: to=<mario@maria.xinux.org>, relay=local, delay=0.14, delays=0.13/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
 
Dec 11 13:20:55 maria postfix/qmgr[7280]: 3B56724046: removed
 
Dec 11 13:20:55 maria postfix/qmgr[7280]: 3B56724046: removed
 +
</pre>
 +
=installieren von mailutis=
 +
*apt-get install mailutils
 +
=lokales lesen der mails=
 +
mario@maria:~$ mail
 +
<pre>
 +
"/var/mail/mario": 5 messages 5 unread
 +
>U  1 technik@xinux.de  Do Dez 11 11:48  14/433  test1
 +
U  2 technik@xinux.de  Do Dez 11 11:49  13/408  test1
 +
U  3 technik@xinux.de  Do Dez 11 13:19  13/431  Do 11. Dez 13:19:42 CET 2
 +
U  4 technik@xinux.de  Do Dez 11 13:20  13/431  Do 11. Dez 13:20:00 CET 2
 +
U  5 technik@xinux.de  Do Dez 11 13:20  13/431  Do 11. Dez 13:20:55 CET 2
 +
? 5Return-Path: <technik@xinux.de>
 +
X-Original-To: mario@maria.xinux.org
 +
Delivered-To: mario@maria.xinux.org
 +
Received: from cardassia (cardassia.xinux.org [192.168.244.1])
 +
by maria.xinux.org (Postfix) with ESMTP id 3B56724046
 +
for <mario@maria.xinux.org>; Thu, 11 Dec 2014 13:20:55 +0100 (CET)
 +
From: <technik@xinux.de>
 +
To: <mario@maria.xinux.org>
 +
Subject: Do 11. Dez 13:20:55 CET 2014
 +
Status: O
 +
X-UID: 5
 +
 +
Do 11. Dez 13:20:55 CET 2014
 +
? q
 
</pre>
 
</pre>

Version vom 11. Dezember 2014, 12:24 Uhr

vorarbeiten

  • mkdir -p /etc/skel/Maildir/{cur,new,tmp}

installation

  • apt-get install postfix

spätere grundkonfiguration

  • dpkg-reconfigure -p low postfix

wir wählen Internet-Site

/etc/postfix/main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = maria.xinux.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = maria.xinux.org, localhost.xinux.org, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4

auswahl der postfix kommandos

  • postfix status
  • postfix start
  • postfix stop
  • postfix reload
  • postfix check

logging

  • tail -f /var/log/mail.log
Dec 11 13:20:55 maria postfix/smtpd[7513]: connect from cardassia.xinux.org[192.168.244.1]
Dec 11 13:20:55 maria postfix/smtpd[7513]: improper command pipelining after EHLO from cardassia.xinux.org[192.168.244.1]: MAIL FROM: <technik@xinux.de>\nRCPT TO: <mario@maria.xinux.org>\nDATA\nFrom: <technik@xinux.de>\nTo: <ma
Dec 11 13:20:55 maria postfix/smtpd[7513]: 3B56724046: client=cardassia.xinux.org[192.168.244.1]
Dec 11 13:20:55 maria postfix/cleanup[7518]: 3B56724046: message-id=<>
Dec 11 13:20:55 maria postfix/qmgr[7280]: 3B56724046: from=<technik@xinux.de>, size=315, nrcpt=1 (queue active)
Dec 11 13:20:55 maria postfix/smtpd[7513]: disconnect from cardassia.xinux.org[192.168.244.1]
Dec 11 13:20:55 maria postfix/local[7519]: 3B56724046: to=<mario@maria.xinux.org>, relay=local, delay=0.14, delays=0.13/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 11 13:20:55 maria postfix/qmgr[7280]: 3B56724046: removed

installieren von mailutis

  • apt-get install mailutils

lokales lesen der mails

mario@maria:~$ mail

"/var/mail/mario": 5 messages 5 unread
>U   1 technik@xinux.de   Do Dez 11 11:48   14/433   test1
 U   2 technik@xinux.de   Do Dez 11 11:49   13/408   test1
 U   3 technik@xinux.de   Do Dez 11 13:19   13/431   Do 11. Dez 13:19:42 CET 2
 U   4 technik@xinux.de   Do Dez 11 13:20   13/431   Do 11. Dez 13:20:00 CET 2
 U   5 technik@xinux.de   Do Dez 11 13:20   13/431   Do 11. Dez 13:20:55 CET 2
? 5Return-Path: <technik@xinux.de>
X-Original-To: mario@maria.xinux.org
Delivered-To: mario@maria.xinux.org
Received: from cardassia (cardassia.xinux.org [192.168.244.1])
	by maria.xinux.org (Postfix) with ESMTP id 3B56724046
	for <mario@maria.xinux.org>; Thu, 11 Dec 2014 13:20:55 +0100 (CET)
From: <technik@xinux.de>
To: <mario@maria.xinux.org>
Subject: Do 11. Dez 13:20:55 CET 2014
Status: O
X-UID: 5

Do 11. Dez 13:20:55 CET 2014
? q