Raspberry Pi – ‚Postfix‘ als Mail Relay Agent

raspberrypi_logo.jpg   Um Mails verschicken zu können wird der Mail Transfer Agent ‚Postfix‘ benötigt um einfach Mails an einen bestehenden Mailserver (z.B. 1und1) weiterzuleiten

# apt-get install mailutils
# apt-get install libsasl2 libsasl2-modules sasl2-bin
# apt-get install postfix

# vi /etc/postfix/main.cf

relayhost = smtp.1und1.de:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
inet_protocols = ipv4

# vi /etc/postfix/sasl_passwd

smtp.1und1.de josef.schuster@dpsolution.de:<password>

# chmod 600 /etc/postfix/sasl_passwd
# postmap /etc/postfix/sasl_passwd
# /etc/init.d/postfix reload

# mail -s „testbetreff“ josef.schuster@dpsolution.de < testmailtext.txt

postfix_02

postfix_00

Leave a Reply

You must be logged in to post a comment.