Raspberrypi.mail: Unterschied zwischen den Versionen

Aus OrgaMon Wiki
Zur Navigation springen Zur Suche springen
Zeile 56: Zeile 56:


  # adduser --no-create-home --ingroup postfix --disabled-login <b><i>user</i></b>
  # adduser --no-create-home --ingroup postfix --disabled-login <b><i>user</i></b>
  useradd --gid postfix --create-home --shell /bin/bash <b><i>user</i></b>
  useradd --gid postfix --create-home --shell /bin/false <b><i>user</i></b>
  echo "<b><i>user</i></b>:***" | chpasswd
  echo "<b><i>user</i></b>:***" | chpasswd

Version vom 25. September 2018, 20:22 Uhr

Konzept

Internet     |   Raspi 
             |
:25 (smtp)   ->  [ Postfix ] -> Filesystem "/var/mail/user"
             |               -> dovecot User API 
             |
:110 (pop3)  ->  [ dovecot ] -> Filesystem "/var/mail/user"
             |               -> Linux User API

Vorarbeiten

chmod 777 mail

postfix

http://www.postfix.org/features.html

apt-get install postfix


main.cf

virtual_maps = hash:/etc/postfix/virtual
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot

Test

dovecot

https://dovecot.org/

apt-get install dovecot-pop3d
10-ssl.conf
10-master.conf
10-logging.conf
auth-system.conf.ext
10-auth.conf
10-mail.conf

Test

eMail-Konten anlegen

# adduser --no-create-home --ingroup postfix --disabled-login user
useradd --gid postfix --create-home --shell /bin/false user
echo "user:***" | chpasswd