<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Ssmtp</id>
	<title>Ssmtp - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Ssmtp"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Ssmtp&amp;action=history"/>
	<updated>2026-04-30T05:52:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Ssmtp&amp;diff=109&amp;oldid=prev</id>
		<title>Kenneth at 19:04, 17 May 2014</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Ssmtp&amp;diff=109&amp;oldid=prev"/>
		<updated>2014-05-17T19:04:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== smtp ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ssmtp&amp;#039;&amp;#039;&amp;#039; - &amp;quot;ssmtp is a send-only sendmail emulator for machines which normally pick their mail up from a centralized mailhub (via pop, imap, nfs mounts or other means)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ssmtp&amp;#039;&amp;#039;&amp;#039; - &amp;quot;extremely simple MTA to get mail off the system to a mail hub. A secure, effective and simple way of getting mail off a system to your mail hub. It contains no suid-binaries or other dangerous things - no mail spool to poke around in, and no daemons running in the background. Mail is simply forwarded to the configured mailhost. Extremely easy configuration.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Python Alternative ==&lt;br /&gt;
&lt;br /&gt;
See [[ksmtp]]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Redhat based:&lt;br /&gt;
 # in [[EPEL]] repo&lt;br /&gt;
 yum install ssmtp&lt;br /&gt;
&lt;br /&gt;
Debian based:&lt;br /&gt;
 apt-get install ssmtp&lt;br /&gt;
&lt;br /&gt;
Replace sendmail:&lt;br /&gt;
 mv /usr/sbin/sendmail /usr/sbin/sendmail.original&lt;br /&gt;
 ln -s /usr/sbin/ssmtp /usr/sbin/sendmail&lt;br /&gt;
&lt;br /&gt;
Test:&lt;br /&gt;
 echo &amp;quot;hello world&amp;quot; | mail -s &amp;quot;test&amp;quot; kenneth@demo.oeey.com&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
Configuration file:&lt;br /&gt;
 /etc/ssmtp/ssmtp.conf&lt;br /&gt;
&lt;br /&gt;
Configuration man page:&lt;br /&gt;
 man ssmtp.conf&lt;br /&gt;
&lt;br /&gt;
=== Gmail ===&lt;br /&gt;
&lt;br /&gt;
To relay mail though a gmail user:&lt;br /&gt;
 AuthUser=[USERNAME]@gmail.com&lt;br /&gt;
 AuthPass=[PASSWORD]&lt;br /&gt;
 FromLineOverride=YES&lt;br /&gt;
 mailhub=smtp.gmail.com:587&lt;br /&gt;
 UseSTARTTLS=YES&lt;br /&gt;
&lt;br /&gt;
To force all mail to a specific user:&lt;br /&gt;
 Root=[EMAIL]&lt;br /&gt;
 AuthUser=[USERNAME]@gmail.com&lt;br /&gt;
 AuthPass=[PASSWORD]&lt;br /&gt;
 FromLineOverride=YES&lt;br /&gt;
 mailhub=smtp.gmail.com:587&lt;br /&gt;
 UseSTARTTLS=YES&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* How To Use Gmail Account To Relay Email From a Shell Prompt - nixCraft - http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html&lt;br /&gt;
* How To Setup Email Alerts on Linux Using Gmail or SMTP - http://www.howtogeek.com/51819/how-to-setup-email-alerts-on-linux-using-gmail/&lt;br /&gt;
* Send SMTP email from Command Line Linux / SSMTP / GMAIL @ All Linux User&amp;#039;s Blog - http://www.tejasbarot.com/2013/05/15/send-smtp-email-from-command-line-ssmtp-gmail/#axzz31z7eRhfd&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
linux smtp smarthost email mail&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>