<< previous  [13] 

next >>

Raspberry Pi
10. Remote Desktop XRDP
11. GNUPlot
-> 12. PostFix
13. MyCroft
14. Intertech 433 MHzCtrl
15. Brother Drucker

 

 

 

PostFix:
Detailed installation description linode.com/docs/email/postfix/...
and in wiki.ubuntuusers.de/Postfix
Terminalsudo su
Terminalsudo apt-get install postfix bsd-mailx
Terminal-MenuAuswahl: Satellitensystem
Terminal-MenuName: raspberrypi
Terminal-MenuSystem-eMail-Name: smtp.web.dein my case "web.de"
Terminalsudo nano /etc/postfix/main.cf
Nano# Web.de needs:
Nanosmtp_tls_security_level= may
Nanosmtp_sasl_auth_enable = yes
Nanosmtp_sasl_security_options = noanonymous
Nanosmtp_sasl_password_maps = hash:/etc/postfix/sasl_password
Terminalsudo nano /etc/postfix/sasl_password
Nanosmtp.web.de benutzername:passwortw/ your username & password
Terminalcd /etc/postfix
Terminalsudo chmod 600 sasl_password
Terminalpostmap hash:/etc/postfix/sasl_password
Terminalsudo nano /etc/postfix/main.cf
Nanopi werner.puenter@web.dee.g. werner.puenter@web.de
Nanoroot werner.puenter@web.dee.g. werner.puenter@web.de
Terminalpostmap /etc/postfix/sender_canonical
Terminalupdate-rc.d postfix defaults
Terminalservice postfix restart
Configure again:
Terminalsudo dpkg-reconfigure postfix
Terminalsudo chown root:root /etc/postfix/sasl_password /etc/postfix/sasl_password.db
Terminalsudo chmod 0600 /etc/postfix/sasl_password /etc/postfix/sasl_password.db
Examples
Example 1sendmail recipient@elsewhere.com
Example 1From: you@example.com
Example 1Subject: Test mail
Example 1This is a test email
Example 1.
or
Example 2/usr/bin/mailx -s "Testnachricht" pi << EOF
Example 2Dies ist ein Test
Example 2und sonst nix.
Example 2EOF
or
Example 3(
Example 3echo "Subject: Testnachricht"
Example 3echo " "
Example 3echo "Dies ist ein Test"
Example 3echo " "
Example 3) | /usr/bin/mail -s "Testnachricht" empfaenger@example.com
or
Example 4mail -s "some subject" recipient@email.com < message_body.txt
Terminalsudo apt-get install libsasl2-modulesneeded ??
Terminalsudo apt-get install mailutilsAllows using /usr/bin/mailx
Some helpful commands/debugging:
TerminalmailqPresents unsent mails in queue
Terminalpostsuper -d ALL deferredDelete all mails in queue
Terminalcat /var/log/mail.logCheck log file

<< previous  [13] 

next >>