Raspberrypi.mail

Aus OrgaMon Wiki
Zur Navigation springen Zur Suche springen

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
chmod 777 /home/user
touch /var/mail/user
chown user /var/mail/user
chgrp postfix /var/mail/user
chmod 0660 /var/mail/user