Ben wat nieuw met de linux terminalcommando's dus ik doe een "cursusje linux terminal van 25 videoś" via de youtube. Zo herleer ik speelserwijs veel commandos.
Maar, nu wilde ik proberen om met de linuxmint-terminal een mailtje te sturen met en naar mijn ziggo email adres.
sudo echo "This is a test" | mail -s "Test mailserver2" email@email.nl
De output daarvan was:
mail: cannot send message: Process exited with a non-zero status
Ik heb wat gezocht met google en kreeg de hints om exim4 te installeren welke ik heb gedaan, maar vanaf dit punt loop ik dus vast en heb moeite om de oplossing te vinden om dat sudo-mailcommando succesvol uit te voeren. Iemand enig idee?
Het onderstaande staat in de /etc/ssmtp/ssmtp.conf
FromLineOverride=YES
AuthUser=email@home.nl
AuthPass=mmmmm
mailhub=smtp.ziggo.nl/587
UseSTARTTLS=YES
service sendmail stop
chkconfig sendmail off
mkdir /root/.bakup
mv /usr/sbin/sendmail /root/.bakup
ln -s /usr/local/ssmtp/ usr/sbin/sendmail
Thx!
Maar, nu wilde ik proberen om met de linuxmint-terminal een mailtje te sturen met en naar mijn ziggo email adres.
sudo echo "This is a test" | mail -s "Test mailserver2" email@email.nl
De output daarvan was:
mail: cannot send message: Process exited with a non-zero status
Ik heb wat gezocht met google en kreeg de hints om exim4 te installeren welke ik heb gedaan, maar vanaf dit punt loop ik dus vast en heb moeite om de oplossing te vinden om dat sudo-mailcommando succesvol uit te voeren. Iemand enig idee?
Het onderstaande staat in de /etc/ssmtp/ssmtp.conf
FromLineOverride=YES
AuthUser=email@home.nl
AuthPass=mmmmm
mailhub=smtp.ziggo.nl/587
UseSTARTTLS=YES
service sendmail stop
chkconfig sendmail off
mkdir /root/.bakup
mv /usr/sbin/sendmail /root/.bakup
ln -s /usr/local/ssmtp/ usr/sbin/sendmail
Thx!
[ Voor 16% gewijzigd door govie op 08-11-2015 18:26 ]