Re: IPC: EMail mit GMail
Verfasst: Sa 10. Mär 2012, 10:35
Wollte nur zur Sicherheit Fragen.
Bräuchte nur hilfe um es mit dem Script zum laufen zu bekommen. Würdest du mir da zur Hand gehen??
Und hier die Anleitung:
Bräuchte nur hilfe um es mit dem Script zum laufen zu bekommen. Würdest du mir da zur Hand gehen??
Und hier die Anleitung:
Send Mail with Gmail and sSMTP
by Mark Sanborn on June 29, 2009
sSmtp is an extremely simple, resource conserving, SMTP server that will allow your desktop or server to send email. In this article we are going to use sSMTP to send email through Gmail.
Sometimes we want to enable our servers/desktops to be able to send email without setting up a full featured mail server or configuring postfix to route through Gmail.
sSmtp is an extremely simple, resource conserving, SMTP server that will allow your desktop or server to send email. In this article we are going to use sSMTP to send outgoing email through Gmail.
Install sSMTP
Debian/Ubuntu users can Install with this command or click here to open up apt:
sudo apt-get install ssmtp
We need to then need to edit, ‘/etc/ssmtp/ssmtp.conf’:
root=username@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=username@gmail.com
UseSTARTTLS=YES
AuthUser=username
AuthPass=password
FromLineOverride=YES
Then add each account that you want to be able to send mail from by editing, ‘/etc/ssmtp/revaliases‘:
root:username@gmail.com:smtp.gmail.com:587
localusername:username@gmail.com:smtp.gmail.com:587
Now try sending an email
You can send an email through your favorite email client, like ‘mutt‘, or type:
sudo ssmtp someemail@email.com
You will then type your message, hit enter and ‘ctrl+d‘
Now that you have a simple outgoing email server setup, you can do all sorts of neat things:
Configure cron jobs to send log reports to your email address
Alert you of all kinds of system changes
Send email alerts when your computer reaches a certain temperature
Send email through PHP, Python, Ruby, and Perl