<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Archives des SMTP - CoffeeBreak Info</title>
	<atom:link href="https://coffeebreak.en-images.info/tag/smtp/feed/" rel="self" type="application/rss+xml" />
	<link>https://coffeebreak.en-images.info/tag/smtp/</link>
	<description>Une petite pause :)</description>
	<lastBuildDate>Fri, 12 Nov 2021 17:22:52 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://coffeebreak.en-images.info/wp-content/uploads/2021/07/cropped-Tasse_Cafe-scaled-1-32x32.jpg</url>
	<title>Archives des SMTP - CoffeeBreak Info</title>
	<link>https://coffeebreak.en-images.info/tag/smtp/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>MODOP &#8211; Installation Sendmail (SMTP) MTA sur Raspberry PI</title>
		<link>https://coffeebreak.en-images.info/modop-installation-sendmail-smtp-mta-sur-raspbery-pi/</link>
					<comments>https://coffeebreak.en-images.info/modop-installation-sendmail-smtp-mta-sur-raspbery-pi/#respond</comments>
		
		<dc:creator><![CDATA[chris]]></dc:creator>
		<pubDate>Sun, 13 Jun 2021 11:47:20 +0000</pubDate>
				<category><![CDATA[Raspberrypi]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RaspberryPI]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[Système]]></category>
		<guid isPermaLink="false">https://coffeebreak.en-images.info/?p=1816</guid>

					<description><![CDATA[<p>Installation du service Sendmail en charge de la livraison et de l'envoi des courriers électronique. </p>
<p>L’article <a href="https://coffeebreak.en-images.info/modop-installation-sendmail-smtp-mta-sur-raspbery-pi/">MODOP &#8211; Installation Sendmail (SMTP) MTA sur Raspberry PI</a> est apparu en premier sur <a href="https://coffeebreak.en-images.info">CoffeeBreak Info</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" width="1199" height="366" class="wp-image-1817" src="https://coffeebreak.en-images.info/wp-content/uploads/2021/06/word-image-442.png" srcset="https://coffeebreak.en-images.info/wp-content/uploads/2021/06/word-image-442.png 1199w, https://coffeebreak.en-images.info/wp-content/uploads/2021/06/word-image-442-300x92.png 300w, https://coffeebreak.en-images.info/wp-content/uploads/2021/06/word-image-442-1024x313.png 1024w, https://coffeebreak.en-images.info/wp-content/uploads/2021/06/word-image-442-768x234.png 768w" sizes="(max-width: 1199px) 100vw, 1199px" /></p>
<h4><span style="text-decoration: underline;">Installer les paquets Nécessaires</span></h4>
<pre>root@raspberrypi32G#<span style="color: #ff0000;"><strong>apt-get update &amp;&amp; apt-get upgrade</strong></span>
root@raspberrypi32G#<strong><span style="color: #ff0000;">apt-get install sendmail</span></strong></pre>
<h4>Sauvegarde du fichier source</h4>
<pre>root@raspberrypi32G#<span style="color: #ff0000;"><strong> cp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.sauvegarde</strong></span></pre>
<h4><span style="text-decoration: underline;">Editer le fichier sendmail.mc</span></h4>
<p>Effacer toute les lignes et ajouter les lignes suivantes</p>
<pre>root@raspberrypi32G#<strong><span style="color: #ff0000;">vi /etc/mail/sendmail.mc</span></strong>
<span style="color: #ff0000;"><em>
#-----------------------------------------------------------------------------</em></span>
<span style="color: #ff0000;"><em>divert(0)dnl</em></span>
<span style="color: #ff0000;"><em>#</em></span>
<span style="color: #ff0000;"><em># Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved.</em></span>
<span style="color: #ff0000;"><em>#</em></span>
<span style="color: #ff0000;"><em># This file is used to configure Sendmail for use with Debian systems.</em></span>
<span style="color: #ff0000;"><em>#</em></span>
<span style="color: #ff0000;"><em>include(`/usr/share/sendmail/cf/m4/cf.m4')dnl</em></span>
<span style="color: #ff0000;"><em>OSTYPE(`linux')dnl</em></span>
<span style="color: #ff0000;"><em>define(`SMTP_MAILER_FLAGS', `e9')dnl</em></span>
<span style="color: #ff0000;"><em>FEATURE(redirect)dnl</em></span>
<span style="color: #ff0000;"><em>FEATURE(nocanonify)dnl</em></span>
<span style="color: #ff0000;"><em>FEATURE(always_add_domain)dnl</em></span>
<span style="color: #ff0000;"><em>FEATURE(local_procmail)dnl</em></span>
<span style="color: #ff0000;"><em>GENERICS_DOMAIN(localhost.localdomain localhost localhost)</em></span>
<span style="color: #ff0000;"><em>FEATURE(genericstable)</em></span>
<span style="color: #ff0000;"><em>FEATURE(masquerade_envelope)dnl</em></span>
<span style="color: #ff0000;"><em>define(`confCF_VERSION',`cf Ã ede - 22/05/98')dnl</em></span>
<span style="color: #ff0000;"><em>define(`confCON_EXPENSIVE',`True')dnl</em></span>
<span style="color: #ff0000;"><em>define(`confME_TOO',`True')dnl</em></span>
<span style="color: #ff0000;"><em>define(`confCOPY_ERRORS_TO',`Postmaster')dnl</em></span>
<span style="color: #ff0000;"><em>define(`confDEF_CHAR_SET',`ISO-8859-1')dnl</em></span>
<span style="color: #ff0000;"><em>define(`confMIME_FORMAT_ERRORS',`True')dnl</em></span>
<strong><span style="color: #ff0000;"><em>define(`SMART_HOST',`smtp8:[smtp.free.fr]')dnl</em></span></strong>
<span style="color: #ff0000;"><em>define(`confTO_QUEUEWARN',`24h')</em></span>
<span style="color: #ff0000;"><em>MAILER(local)</em></span>
<span style="color: #ff0000;"><em>MAILER(smtp)</em></span></pre>
<pre>root@raspberrypi32G#<span style="color: #ff0000;"><strong> m4 sendmail.mc &gt; /etc/mail/sendmail.cf</strong></span></pre>
<h4><span style="text-decoration: underline;">Configurer « genericstable »</span></h4>
<pre>root@raspberrypi32G# <strong><span style="color: #ff0000;">touch genericstable</span></strong>
root@raspberrypi32G# <span style="color: #ff0000;"><strong>touch genericstable.db</strong></span>

root@raspberrypi32G#<span style="color: #ff0000;"><strong>vi genericstable</strong></span>
<span style="color: #ff0000;"><em>pi : <a style="color: #ff0000;" href="mailto:chris@free.fr">chris@free.fr</a> <a style="color: #ff0000;" href="mailto:chris@en-images.info">chris@en-images.info</a></em></span>

root@raspberrypi32G # <span style="color: #ff0000;"><strong>sendmail -bi -oA/etc/mail/genericstable</strong></span></pre>
<h4><span style="text-decoration: underline;">Changer les droits sur les répertoires des spool</span></h4>
<pre>root@raspberrypi32G # <span style="color: #ff0000;"><strong>chown -R root:smmsp /var/spool</strong></span>
root@raspberrypi32G # <strong><span style="color: #ff0000;">chmod 770 /var/spool</span></strong>
root@raspberrypi32G # <span style="color: #ff0000;"><strong>chmod -R 0770 /var/spool/mqueue-client/</strong></span></pre>
<h4><span style="text-decoration: underline;">Configurer « aliases »</span></h4>
<pre>root@raspberrypi32G# <span style="color: #ff0000;"><strong>vi aliases</strong></span>
<span style="color: #ff0000;"><em>pi : chris</em></span>

root@raspberrypi32G # <span style="color: #ff0000;"><strong>newaliases</strong></span>

Correction message d’erreur suivant dans le fichier log « mail.log »
<span style="color: #ff0000;">SYSERR(root): hash map "Alias0": unsafe map file /etc/mail/aliases.db: Permission denied</span>

root@raspberrypi32G # <span style="color: #ff0000;"><strong>rm /etc/mail/aliases.db</strong></span>
root@raspberrypi32G # <span style="color: #ff0000;"><strong>touch /etc/mail/aliases.db</strong></span>
root@raspberrypi32G # <strong><span style="color: #ff0000;">newaliases</span></strong></pre>
<h4><span style="text-decoration: underline;">Relancer le serveur « Sendmail » MTA</span></h4>
<pre>root@raspberrypi32G # <span style="color: #ff0000;"><strong>/etc/init.d/sendmail restart</strong></span></pre>
<h4>Envoyer un mail en ligne de commande</h4>
<pre>root@raspberrypi32G<strong># <span style="color: #ff0000;">apt install mailutils</span></strong>
root@raspberrypi32G#<span style="color: #ff0000;"><strong> echo "Mon message $(date)" | mail -s "Test envoi de mail depuis $HOST" chris@free.fr</strong></span></pre>
<p>Views: 41</p><p>L’article <a href="https://coffeebreak.en-images.info/modop-installation-sendmail-smtp-mta-sur-raspbery-pi/">MODOP &#8211; Installation Sendmail (SMTP) MTA sur Raspberry PI</a> est apparu en premier sur <a href="https://coffeebreak.en-images.info">CoffeeBreak Info</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://coffeebreak.en-images.info/modop-installation-sendmail-smtp-mta-sur-raspbery-pi/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
