<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hallo,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">dein sasl_passwd sieht so aus</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">absender-email userid:passwd</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">(die userid selbst darf eine
E-mail-adresse sein)</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">und dein sender_canonical beinhaltet
nicht zufällig diese absender-email?</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">habe den Verdacht, dass es zu keiner
Authentifizierung kommt;<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Walter<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 09.01.2022 13:17, Michael Hartmann
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:004901d80552$d06a3c70$713eb550$@web.de">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:"Courier New";
mso-fareast-language:DE;}
span.E-MailFormatvorlage20
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hallo,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ich hoffe das die mailing-list noch aktiv
ist und ich hier Hilfe finde.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ich habe einen ESP8266 mit ESPeasy der mir
auf bestimmte Events Emails senden soll. Da er kein TLS
beherscht, web.de aber nur gesicherte Verbindungen über port
587 akzeptiert, möchte ich Postfix als SMTP-Relay einsetzen.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ich habe Postfix auf einem Raspberry
installiert und wie folgt konfiguriert:<o:p></o:p></p>
<div style="border:none;border-bottom:solid windowtext
1.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># See /usr/share/postfix/main.cf.dist for a
commented, more complete version<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># Debian specific: Specifying a file name will
cause the first<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># line of that file to be used as the name.
The Debian default<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># is /etc/mailname.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">#myorigin = /etc/mailname<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtpd_banner = $myhostname ESMTP $mail_name
(Raspbian)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">biff = no<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># appending .domain is the MUA's job.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">append_dot_mydomain = no<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># Uncomment the next line to generate "delayed
mail" warnings<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">#delay_warning_time = 4h<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">readme_directory = no<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># See
<a class="moz-txt-link-freetext" href="http://www.postfix.org/COMPATIBILITY_README.html">http://www.postfix.org/COMPATIBILITY_README.html</a> -- default
to 2 on<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># fresh installs.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">compatibility_level = 2<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># TLS parameters<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtpd_use_tls = yes<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtpd_tls_session_cache_database =
btree:${data_directory}/smtpd_scache<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtp_tls_session_cache_database =
btree:${data_directory}/smtp_scache<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">#additions 2022-01-09<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtp_enforce_tls = yes<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtp_tls_enforce_peername = no<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtpd_tls_security_level = may<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># See /usr/share/doc/postfix/TLS_README.gz in
the postfix-doc package for<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># information on enabling SSL in the smtp
client.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtpd_relay_restrictions = permit_mynetworks
permit_sasl_authenticated defer_unauth_destination<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">myhostname = SmartMeterTS.fritz.box<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">alias_maps = hash:/etc/aliases<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">alias_database = hash:/etc/aliases<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">mydestination = $myhostname, SmartmeterTS,
SmartMeterTS, localhost.localdomain, localhost<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">relayhost = smtp.web.de:587<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">mynetworks = 127.0.0.0/8 192.168.178.30
[::ffff:127.0.0.0]/104 [::1]/128<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">mailbox_size_limit = 0<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">recipient_delimiter = +<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">inet_interfaces = all<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># changes 2022-01-09<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">inet_protocols = ipv4<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"># additions 2022-01-09<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtp_sasl_auth_enable = yes<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">sender_canonical_maps =
hash:/etc/postfix/sender_canonical<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">smtp_sasl_password_maps =
hash:/etc/postfix/sasl_passwd<o:p></o:p></span></p>
<div style="border:none;border-bottom:solid windowtext
1.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New"">smtp_sasl_security_options = noanonymous<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New""><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Die Dateien sasl_passwd und
sender_canonical sind angelegt und konvertiert. Die
Zugangsdaten darin sind korrekt!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dennoch scheint die Authentifizierung beii
web.de fehlzuschlagen, wenn ich vom Raspi eine Test-email
versende:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE">echo "Das ist der E-Mail
Inhalt!" </span><span
style="font-size:10.0pt;font-family:"Courier
New";mso-fareast-language:DE" lang="EN-US">| mail -s
"Postfix Test" -a "From: Pi" <a class="moz-txt-link-abbreviated" href="mailto:mihartmann@gmx.de">mihartmann@gmx.de</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal">Auszug aus /var/log/mail.log:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/pickup[4506]: 58CB47BCD3: uid=1000
from=<Pi@SmartMeterTS><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/cleanup[4515]: 58CB47BCD3:
message-id=<a class="moz-txt-link-rfc2396E" href="mailto:20220109113215.58CB47BCD3@SmartMeterTS.fritz.box"><20220109113215.58CB47BCD3@SmartMeterTS.fritz.box></a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/qmgr[4507]: 58CB47BCD3:
from=<a class="moz-txt-link-rfc2396E" href="mailto:hartmann-micha@web.de"><hartmann-micha@web.de></a>, size=372, nrcpt=1 (queue
active)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";background:yellow;mso-highlight:yellow"
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/smtp[4517]: 58CB47BCD3:
to=<a class="moz-txt-link-rfc2396E" href="mailto:mihartmann@gmx.de"><mihartmann@gmx.de></a>,
relay=smtp.web.de[213.165.67.124]:587, delay=0.35,
delays=0.07/0.12/0.15/0.01, dsn=5.0.0, status=bounced (host
smtp.web.de[213.165.67.124] said: 530 Authentication
required (in reply to MAIL FROM command))</span><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/cleanup[4515]: B09467BCD6:
message-id=<a class="moz-txt-link-rfc2396E" href="mailto:20220109113215.B09467BCD6@SmartMeterTS.fritz.box"><20220109113215.B09467BCD6@SmartMeterTS.fritz.box></a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/bounce[4519]: 58CB47BCD3: sender non-delivery
notification: B09467BCD6<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/qmgr[4507]: B09467BCD6: from=<>, size=2411,
nrcpt=1 (queue active)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/qmgr[4507]: 58CB47BCD3: removed<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/smtp[4517]: B09467BCD6:
to=<a class="moz-txt-link-rfc2396E" href="mailto:hartmann-micha@web.de"><hartmann-micha@web.de></a>,
relay=smtp.web.de[213.165.67.108]:587, delay=0.16,
delays=0.01/0/0.14/0.01, dsn=5.0.0, status=bounced (host
smtp.web.de[213.165.67.108] said: 530 Authentication
required (in reply to MAIL FROM command))<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US">Jan 9 12:32:15 SmartMeterTS
postfix/qmgr[4507]: B09467BCD6: removed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal">Kann mir jemand sagen, wo der Fehler in
meiner Konfiguration liegt?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Grüße<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Micha<o:p></o:p></p>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>