msmtp est un client SMTP robuste et facile à configurer pour l'envoi de courriels. Son mode de fonctionnement par défaut est simple.
seen from China
seen from France
seen from United States

seen from China

seen from Malaysia
seen from China
seen from China
seen from Türkiye

seen from Malaysia

seen from Poland

seen from Malaysia

seen from Mexico
seen from China
seen from Philippines
seen from India

seen from Malaysia
seen from United States

seen from Italy
seen from Australia

seen from Italy
msmtp est un client SMTP robuste et facile à configurer pour l'envoi de courriels. Son mode de fonctionnement par défaut est simple.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Send emails from linux host
# apt install msmtp
/etc/msmtprc:
defaults port 587 tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt
account <account-name> host smtp.example.org from <your-email> auth on user <your-username> password <your-password>
account default : <account-name>
echo -e "Subject: test email" | msmtp [email protected]
E-Mails versenden mit sSMTP
Es gib immer mal wieder die Situation mit einem Linux System E-Mails zu versenden. Das können zu hohe Temperaturen der Festplatte, störungen von Cronjob oder eine IP, die aufgrund von falschen Login versuchen auffällt. Natürlich ist dieser Service auch bei anderen Diensten wie FHEM interessant. Man könnte sich eine E-Mail senden lassen wenn ein bestimmter Bewegungsmelder aktiv wird. Oder die Temperatur der Gefriertruhe steigt wegen einem defekt. Hier kann auch sSMTP einspringen und eine E-Mail versenden. Die Einsatzmöglichkeiten sind unglaublich vielfältig. Und diese Möglichkeiten gibt es mit sSMTP mit relativ wenig Aufwand.
Installation von sSMTP
Wie immer, wer sein Linux liebt der updatet als erstes :) apt-get update && apt-get upgrade -V Nun kann man die beiden Pakete von sSMTP installieren apt-get install ssmtp mailutils Nun wird als erster Schritt die generelle Einrichtung von sSMTP vorgenommen nano /etc/ssmtp/ssmtp.conf Gebt in diesem File euer E-Mail Konto sowie die entsprechenden Ports eures E-Mail Anbieters an. [email protected] mailhub=DEIN-EMAIL.SERVER.DE:PORT(ist bei jedem Anbieter anders!) hostname=localhost UseTLS=Yes UseSTARTTLS=Yes AuthUser=DEIN-EMAIL-LOGIN-BENUTZER AuthPass=DEIN-EMAIL-PASSWORT FromLineOverride=yes Wer mehr zu den einzelnen Eintragen wissen möchte kann sich gerne mal die man von sSMTP ansehen. Linux versteht man nur durch lesen :). man ssmtp Nun müssen wir Linux nur noch mitteilen welche Benutzer eigentlich sSMTP nutzen dürfen. Dazu öffnen wir das Benutzer File des sSMTP nano /etc/ssmtp/revaliases In diesem File müssen alle Benutzer des jeweiligen Linux System eingetragen werden die gerne eine Email versenden möchten. Bitte achtet drauf auch hier die richtigen PORTs mit anzugeben. root:[email protected]:smtp.EMAIL-ADRESSE.de:587 (Je nach Anbeiter) www-data:[email protected]:smtp.IRGENDWAS.DE:PORT Zum Schluss schicken wir nun mal eine Test E-Mail :D echo "Mail-Inhalt" | mail -s "Betreff" [email protected] So das waren die Grundlagen. Nun ist dein Linux System in der Lage E-Mails zu versenden. War ja eigentlich gar nicht so viel Aufwand! Read the full article
SMTP server for Gmail IntroductionEmail has always been very important since it was invented. For
SSMTP, un serveur SMTP pour vos applications Web
L'installation et La configuration de SSMTP vous prendront quelques minutes à peine pour disposer d'un serveur d'envoi adapté à vos applications Web.
Source : http://bit.ly/1ZcH52k

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
How I test that ssmtp is configured properly
I’m making a notification system that will send out emails through an externally hosted mail server. Today was a long day...
Dans beaucoup de distribution sendmail (le MTA de référence) est souvent installé par défaut. Mais si vous voulez utiliser un MTA simple et léger sSMTP est fait pour vous. Voyons comment l'installer et l'utiliser sous Centos.
email issues with EngineYard: Broken Pipe (Errno::EPIPE)
I recently upgraded our Rails 2.x application (barrelrun.com) to Rails 3.1. It went pretty well and everything worked smoothly on my local development instance however, when I deployed to our EngineYard servers I kept having problems with Action Mailer. Every time an email was being send from the application (we use Devise and we send confirmation emails on registration) we would see the following error:
Errno::EPIPE: Broken pipe
and then a stack dump pointing to some issue in the mailer. Unfortunately the above error was pretty useless to me, I didn't even know how to debug it. Turns out though that this error gets raised because there is an issue with the actual linux mail command that gets executed (by rails). You can actually see this if you try to run the mail from the rails console:
irb> User.find(1).send_confirmation_instructions
This would raise the same error as from the actual rails application (which makes sense) with the exception of the following nugget:
"sendmail: recipients with -t option not supported"
This finally got me on the right track to debug the issue. I tried to send email from the command line, not using Rails at all:
> sendmail -t [email protected]
sendmail: recipients with -t option not supported
And presto, that same error message comes up. As it turns out, on EngineYard, sendmail is symlinked to ssmpt and ssmtp raises an error when you supply an email with the -t option. -t is used to indicate that the recipients will be specified in the message itself (prefixed by either 'To:', 'cc:' or 'bcc:') and therefore there is no point in specifying the recipients on the actual command line. However, the actual sendmail command will just ignore -t in that case but it seems that ssmtp raises an error.
It seems that Rails IS providing the email address as part of the command line and therefore ssmtp raises an error and Rails barfs. The solution is as simple as overwriting the default arguments provided by the mail gem. You do this in your environment files, e.g. in config/environments/development.rb:
config.action_mailer.sendmail_settings = { :arguments => '-i' }
Sending emails started working after I added this.
I suspect that this issue happens in Rails 3.x because the mailer has been changed. In Rails 2.3 the -t option was not used, in Rails 3x it is being used by default, hence the error on EngineYard after I upgraded.