<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=Mail%2FMTA%2FSendmail%2FGmailRelay</id>
	<title>Mail/MTA/Sendmail/GmailRelay - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=Mail%2FMTA%2FSendmail%2FGmailRelay"/>
	<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=Mail/MTA/Sendmail/GmailRelay&amp;action=history"/>
	<updated>2026-07-07T03:25:35Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wikiold.home.tartarefr.eu/index.php?title=Mail/MTA/Sendmail/GmailRelay&amp;diff=2732&amp;oldid=prev</id>
		<title>Didier : /* Configuration de sendmail */</title>
		<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=Mail/MTA/Sendmail/GmailRelay&amp;diff=2732&amp;oldid=prev"/>
		<updated>2014-05-18T17:14:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuration de sendmail&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 18 mai 2014 à 17:14&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l129&quot;&gt;Ligne 129 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 129 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`RELAY_MAILER_ARGS&amp;#039;, `TCP $h 587&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`RELAY_MAILER_ARGS&amp;#039;, `TCP $h 587&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`ESMTP_MAILER_ARGS&amp;#039;, `TCP $h 587&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`ESMTP_MAILER_ARGS&amp;#039;, `TCP $h 587&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confCACERT_PATH&#039;,`/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usr&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;share/ssl&lt;/del&gt;/certs&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confCACERT_PATH&#039;,`/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;etc&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mail&lt;/ins&gt;/certs&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confCACERT&#039;,`/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usr/share&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ssl&lt;/del&gt;/certs/ca-bundle.crt&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confCACERT&#039;,`/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;etc&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mail&lt;/ins&gt;/certs/ca-bundle.crt&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confSERVER_CERT&#039;,`/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usr/share&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ssl&lt;/del&gt;/certs/sendmail.pem&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confSERVER_CERT&#039;,`/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;etc&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mail&lt;/ins&gt;/certs/sendmail.pem&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confSERVER_KEY&#039;,`/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;usr/share&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ssl&lt;/del&gt;/certs/sendmail.pem&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confSERVER_KEY&#039;,`/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;etc&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mail&lt;/ins&gt;/certs/sendmail.pem&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confAUTH_MECHANISMS&amp;#039;, `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`confAUTH_MECHANISMS&amp;#039;, `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Didier</name></author>
	</entry>
	<entry>
		<id>https://wikiold.home.tartarefr.eu/index.php?title=Mail/MTA/Sendmail/GmailRelay&amp;diff=2731&amp;oldid=prev</id>
		<title>Didier : /* Configuration de sendmail */</title>
		<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=Mail/MTA/Sendmail/GmailRelay&amp;diff=2731&amp;oldid=prev"/>
		<updated>2014-05-18T17:12:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuration de sendmail&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 18 mai 2014 à 17:12&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l124&quot;&gt;Ligne 124 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 124 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Éditez ensuite le fichier /etc/mail/sendmail.mc afin d’y ajouter les lignes suivantes, juste avant la ligne « MAILER(smtp)dnl » :&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Éditez ensuite le fichier /etc/mail/sendmail.mc afin d’y ajouter les lignes suivantes, juste avant la ligne « MAILER(smtp)dnl » :&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;matlab&lt;/del&gt;&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sas&lt;/ins&gt;&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;FEATURE(`authinfo&amp;#039;,`hash /etc/mail/authinfo.db&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;FEATURE(`authinfo&amp;#039;,`hash /etc/mail/authinfo.db&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`SMART_HOST&amp;#039;,`smtp.gmail.com&amp;#039;)dnl&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;define(`SMART_HOST&amp;#039;,`smtp.gmail.com&amp;#039;)dnl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l163&quot;&gt;Ligne 163 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 163 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{author|Sylvain Thérien&amp;lt;ref&amp;gt;http://www.tux89.com/telephonie/configurer-sendmail-comme-relais-smtp-vers-la-messagerie-gmail/&amp;lt;/ref&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{author|Sylvain Thérien&amp;lt;ref&amp;gt;http://www.tux89.com/telephonie/configurer-sendmail-comme-relais-smtp-vers-la-messagerie-gmail/&amp;lt;/ref&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Références ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Références ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Didier</name></author>
	</entry>
	<entry>
		<id>https://wikiold.home.tartarefr.eu/index.php?title=Mail/MTA/Sendmail/GmailRelay&amp;diff=2730&amp;oldid=prev</id>
		<title>Didier : Page créée avec « &lt;big&gt;&lt;big&gt;&#039;&#039;&#039;Configurer sendmail comme relais SMTP vers la messagerie Gmail&#039;&#039;&#039;&lt;/big&gt;&lt;/big&gt;  == Valider la version de sendmail ==  Le protocole de communication utilisé pa... »</title>
		<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=Mail/MTA/Sendmail/GmailRelay&amp;diff=2730&amp;oldid=prev"/>
		<updated>2014-05-18T17:09:10Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Configurer sendmail comme relais SMTP vers la messagerie Gmail&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;  == Valider la version de sendmail ==  Le protocole de communication utilisé pa... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Configurer sendmail comme relais SMTP vers la messagerie Gmail&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Valider la version de sendmail ==&lt;br /&gt;
&lt;br /&gt;
Le protocole de communication utilisé par Gmail pour l’accès au service SMTP est sécurisé. Il faut donc s’assurer que la version de sendmail utilisé supporte le protocole TLS pour le chiffrement et SASL pour l’authentification. Pour vérifier,&lt;br /&gt;
&lt;br /&gt;
faites la ligne de commande suivante :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;/usr/sbin/sendmail -d0.1 -bv root&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Version 8.14.8&lt;br /&gt;
 Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX&lt;br /&gt;
                MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6&lt;br /&gt;
                NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS&lt;br /&gt;
                TCPWRAPPERS USERDB USE_LDAP_INIT&lt;br /&gt;
&lt;br /&gt;
============ SYSTEM IDENTITY (after readcf) ============&lt;br /&gt;
      (short domain name) $w = didier&lt;br /&gt;
  (canonical domain name) $j = didier.dnsdynamic.net&lt;br /&gt;
         (subdomain name) $m = dnsdynamic.net&lt;br /&gt;
              (node name) $k = didier.dnsdynamic.net&lt;br /&gt;
========================================================&lt;br /&gt;
&lt;br /&gt;
didier... deliverable: mailer local, user didier&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Si tout est bon, vous devriez voir les 2 options suivantes :&lt;br /&gt;
&lt;br /&gt;
 Compiled with : STARTTLS &amp;amp;  SASLv2&lt;br /&gt;
&lt;br /&gt;
== Valider la version de SASL ==&lt;br /&gt;
&lt;br /&gt;
Afin de s’assurer que la version de SASL supporte les bons niveaux d’authentification, soit « LOGIN » et « PLAIN », et qu’il n’y aura pas de problème pour l’authentification avec Gmail, il faut valider la version  de SASL en exécutant la ligne de commande suivante :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;yum list | grep sasl&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cyrus-sasl.x86_64                        2.1.26-14.fc20                installed&lt;br /&gt;
cyrus-sasl-gssapi.x86_64                 2.1.26-14.fc20                installed&lt;br /&gt;
cyrus-sasl-lib.i686                      2.1.26-14.fc20                installed&lt;br /&gt;
cyrus-sasl-lib.x86_64                    2.1.26-14.fc20                installed&lt;br /&gt;
cyrus-sasl-md5.x86_64                    2.1.26-14.fc20                installed&lt;br /&gt;
cyrus-sasl-plain.x86_64                  2.1.26-14.fc20                installed&lt;br /&gt;
cyrus-sasl-scram.x86_64                  2.1.26-14.fc20                installed&lt;br /&gt;
cyrus-sasl.i686                          2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-devel.i686                    2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-devel.x86_64                  2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-gs2.i686                      2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-gs2.x86_64                    2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-gssapi.i686                   2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-ldap.i686                     2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-ldap.x86_64                   2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-md5.i686                      2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-ntlm.i686                     2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-ntlm.x86_64                   2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-plain.i686                    2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-scram.i686                    2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-sql.i686                      2.1.26-14.fc20                fedora   &lt;br /&gt;
cyrus-sasl-sql.x86_64                    2.1.26-14.fc20                fedora &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
La version de SASL doit être à 2.1.21 ou supérieure.&lt;br /&gt;
&lt;br /&gt;
Si vous n’avez pas la bonne version, vous n’avez qu’à mettre à jour en effectuant la ligne de commande suivante :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;yum install cyrus-sasl-plain&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Avant de poursuivre, assurez-vous que le service SASL est fonctionnel et s’exécute comme daemon. Exécutez la ligne de commande suivante :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
systemctl status saslauthd&lt;br /&gt;
saslauthd.service - SASL authentication daemon.&lt;br /&gt;
   Loaded: loaded (/usr/lib/systemd/system/saslauthd.service; disabled)&lt;br /&gt;
   Active: active (running) since dim. 2014-05-18 18:29:49 CEST; 1s ago&lt;br /&gt;
  Process: 18573 ExecStart=/usr/sbin/saslauthd -m $SOCKETDIR -a $MECH $FLAGS (code=exited, status=0/SUCCESS)&lt;br /&gt;
 Main PID: 18574 (saslauthd)&lt;br /&gt;
   CGroup: /system.slice/saslauthd.service&lt;br /&gt;
           ├─18574 /usr/sbin/saslauthd -m /run/saslauthd -a pam&lt;br /&gt;
           ├─18575 /usr/sbin/saslauthd -m /run/saslauthd -a pam&lt;br /&gt;
           ├─18576 /usr/sbin/saslauthd -m /run/saslauthd -a pam&lt;br /&gt;
           ├─18577 /usr/sbin/saslauthd -m /run/saslauthd -a pam&lt;br /&gt;
           └─18578 /usr/sbin/saslauthd -m /run/saslauthd -a pam&lt;br /&gt;
&lt;br /&gt;
mai 18 18:29:49 didier.dnsdynamic.net systemd[1]: Started SASL authentication daemon..&lt;br /&gt;
mai 18 18:29:49 didier.dnsdynamic.net saslauthd[18574]: detach_tty      : master pid is: 18574&lt;br /&gt;
mai 18 18:29:49 didier.dnsdynamic.net saslauthd[18574]: ipc_init        : listening on socket: /run/saslauthd/mux&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Si ce n’est pas le cas, simplement exécuter les deux lignes de commandes suivantes :&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
systemctl enable saslauthd&lt;br /&gt;
systemctl start saslauthd&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Certificat de sécurité SSL ==&lt;br /&gt;
&lt;br /&gt;
Cette étape consiste à créer les répertoires pour le stockage des certificats s’ils n’existent pas, effectuez les lignes de commandes suivantes :&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;mkdir /etc/mail/certs&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maintenant, si le fichier ca-bundle.crt n’existe pas, il faudra lier le certificat maître de votre système en effectuant la ligne de commande suivante :&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ca-bundle.crt&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nous allons maintenant générer les certificats locaux. Voici les lignes de commandes à utiliser pour générer les certificats SSL. Il est à noter qu’avec la valeur de paramètre « 3650 », vos certificats seront valides pour une période d’environ 10 ans.&lt;br /&gt;
&lt;br /&gt;
Vous n’avez pas à générer le certificat CAPERM.PEM, mais question de conformité future, il ne fait pas de mal le générer tout de même. Exécutez la ligne de commande suivante et entrez les paramètres selon vos propres besoins et coordonnées.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;openssl req -new -x509 -keyout cakey.pem -out cacert.pem -days 3650&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Poursuivez maintenant pour la création du certificat sendmail en exécutant la ligne de commande suivante et entrez les paramètres selon vos propres besoins et coordonnées.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;openssl req -nodes -new -x509 -keyout sendmail.pem -out sendmail.pem -days 3650&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration de sendmail ==&lt;br /&gt;
&lt;br /&gt;
Nous sommes maintenant à l’étape finale de la démarche. Nous devons paramétrer sendmail afin qu’il puisse utiliser le relais SMTP de Gmail pour l’envoie de courriels.&lt;br /&gt;
&lt;br /&gt;
Éditez le fichier /etc/mail/authinfo. Si le fichier n’existe pas, vous devrez le créer. Entrez les informations suivantes :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AuthInfo:smtp.gmail.com &amp;quot;U:root&amp;quot; &amp;quot;I:didier.fabert@gmail.com&amp;quot; &amp;quot;P:motdepasse&amp;quot; &amp;quot;M:PLAIN&amp;quot;&lt;br /&gt;
AuthInfo:smtp.gmail.com:587 &amp;quot;U:root&amp;quot; &amp;quot;I:didier.fabert@gmail.com&amp;quot; &amp;quot;P:motdepasse&amp;quot; &amp;quot;M:PLAIN&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notez que vous devez changer les paramètres « votreadresse » et « mot_de_passe » par vos identifiants Gmail.&lt;br /&gt;
&lt;br /&gt;
Effectuez ensuite les lignes de commandes suivantes :&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
makemap hash /etc/mail/authinfo &amp;lt; /etc/mail/authinfo&lt;br /&gt;
chmod 600 /etc/mail/authinfo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Éditez ensuite le fichier /etc/mail/sendmail.mc afin d’y ajouter les lignes suivantes, juste avant la ligne « MAILER(smtp)dnl » :&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
FEATURE(`authinfo&amp;#039;,`hash /etc/mail/authinfo.db&amp;#039;)&lt;br /&gt;
define(`SMART_HOST&amp;#039;,`smtp.gmail.com&amp;#039;)dnl&lt;br /&gt;
define(`RELAY_MAILER_ARGS&amp;#039;, `TCP $h 587&amp;#039;)&lt;br /&gt;
define(`ESMTP_MAILER_ARGS&amp;#039;, `TCP $h 587&amp;#039;)&lt;br /&gt;
define(`confCACERT_PATH&amp;#039;,`/usr/share/ssl/certs&amp;#039;)&lt;br /&gt;
define(`confCACERT&amp;#039;,`/usr/share/ssl/certs/ca-bundle.crt&amp;#039;)&lt;br /&gt;
define(`confSERVER_CERT&amp;#039;,`/usr/share/ssl/certs/sendmail.pem&amp;#039;)&lt;br /&gt;
define(`confSERVER_KEY&amp;#039;,`/usr/share/ssl/certs/sendmail.pem&amp;#039;)&lt;br /&gt;
define(`confAUTH_MECHANISMS&amp;#039;, `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&amp;#039;)&lt;br /&gt;
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&amp;#039;)&lt;br /&gt;
define(`confAUTH_OPTIONS&amp;#039;, `A&amp;#039;)dnl&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Effectuez ensuite les lignes de commandes suivantes afin de générer une version finale de configuration de sendmail. Notez que la commande m4 ne devrait donner aucune erreur.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /etc/mail&lt;br /&gt;
m4 sendmail.mc &amp;gt; sendmail.cf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Redémarrez le service sendmail en effectuant la ligne de commande suivante :&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
systemctl restart sendmail&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pour valider que le tout soit conforme, exécutez la ligne de commande suivante :&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo &amp;#039;/map authinfo AuthInfo:smtp.gmail.com&amp;#039; | /usr/sbin/sendmail -bt&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
La commande précédente devrait donner le résultat suivant :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)&lt;br /&gt;
Enter &amp;lt;ruleset&amp;gt; &amp;lt;address&amp;gt;&lt;br /&gt;
&amp;gt; map_lookup: authinfo (AuthInfo:smtp.gmail.com) returns « U:root » « I:didier.fabert@gmail.com » « P:motdepasse » « M:PLAIN » (0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Faites en suite un test en exécutant la ligne de commande suivante en prenant soin de changer « votreadresse@gmail.com » par votre propre adresse de courriel&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo « Ceci est un test » | mail -s Test votreadresse@gmail.com&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{author|Sylvain Thérien&amp;lt;ref&amp;gt;http://www.tux89.com/telephonie/configurer-sendmail-comme-relais-smtp-vers-la-messagerie-gmail/&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
== Références ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Didier</name></author>
	</entry>
</feed>