<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Am 11.11.21 um 10:46 schrieb Ralf
Hildebrandt:<br>
</div>
<blockquote type="cite" cite="mid:YYzmbGMgRDr9g1e0@charite.de">
<pre class="moz-quote-pre" wrap="">* Andreas Reschke <a class="moz-txt-link-rfc2396E" href="mailto:postfix_ml@rirasoft.de"><postfix_ml@rirasoft.de></a>:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">genau das verstehe ich nicht. Das hat Server seither nicht gemacht. Wo habe
ich hier mein Fehler?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Problem: Man sieht nicht, bei welcher Empfänger-Domain das passiert
(testuser at domain.de)!</pre>
</blockquote>
<span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">Nov 11 07:51:00
linuxserver1 postfix/smtpd[3049238]: D6BAB7CE0:
client=mail.kbsd.hr[161.53.155.21]
</span><br>
Nov 11 07:51:00 linuxserver1 postfix/cleanup[3049242]: D6BAB7CE0:
message-id=<a class="moz-txt-link-rfc2396E" href="mailto:600EE82A.8DA90DCA4725A77C@kbsd.hr"><600EE82A.8DA90DCA4725A77C@kbsd.hr></a>
<br>
Nov 11 07:51:01 linuxserver1 postfix/qmgr[3028615]: D6BAB7CE0:
from=<a class="moz-txt-link-rfc2396E" href="mailto:svinkovic@kbsd.hr"><svinkovic@kbsd.hr></a>, size=5812, nrcpt=1 (queue active)
<br>
Nov 11 07:51:01 linuxserver1 postfix/smtpd[3049238]: disconnect
from mail.kbsd.hr[161.53.155.21] ehlo=2 starttls=1 mail=1 rcpt=1
data=1 quit=1 commands=7
<br>
Nov 11 07:51:01 linuxserver1 postfix/virtual[3049246]: D6BAB7CE0:
to=<a class="moz-txt-link-rfc2396E" href="mailto:testuser@rirasoft.de"><testuser@rirasoft.de></a>, relay=virtual, delay=1.2,
delays=1.1/0.02/0/0.03, dsn=5.1.1, status=bounced (unknown user:
<a class="moz-txt-link-rfc2396E" href="mailto:testuser@rirasoft.de">"testuser@rirasoft.de"</a>)
<br>
Nov 11 07:51:01 linuxserver1 postfix/cleanup[3049242]: BC0A15A05F:
message-id=<a class="moz-txt-link-rfc2396E" href="mailto:20211111065101.BC0A15A05F@mail.rirasoft.de"><20211111065101.BC0A15A05F@mail.rirasoft.de></a>
<br>
Nov 11 07:51:01 linuxserver1 postfix/bounce[3049248]: D6BAB7CE0:
sender non-delivery notification: BC0A15A05F
<br>
Nov 11 07:51:01 linuxserver1 postfix/qmgr[3028615]: BC0A15A05F:
from=<>, size=7711, nrcpt=1 (queue active)
<br>
Nov 11 07:51:01 linuxserver1 postfix/qmgr[3028615]: D6BAB7CE0:
removed
<br>
Nov 11 07:51:04 linuxserver1 postfix/smtp[3049249]: Untrusted TLS
connection established to mail.kbsd.hr[161.53.155.21]:25: TLSv1.2
with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
<br>
Nov 11 07:51:04 linuxserver1 postfix/smtp[3049249]: BC0A15A05F:
to=<a class="moz-txt-link-rfc2396E" href="mailto:svinkovic@kbsd.hr"><svinkovic@kbsd.hr></a>,
relay=mail.kbsd.hr[161.53.155.21]:25, delay=3.1,
delays=0/0.03/2.9/0.22, dsn=2.0.0, status=sent (250 2.0.0 Ok:
queued as BFDBD4B57EA0)
<br>
Nov 11 07:51:04 linuxserver1 postfix/qmgr[3028615]: BC0A15A05F:
removed<br>
<br>
<br>
</span>
<blockquote type="cite" cite="mid:YYzmbGMgRDr9g1e0@charite.de">
<pre class="moz-quote-pre" wrap="">
Die Domains fallen ja in "local"-Domains (in mydestination),
relay-domains (in relay_domains), virtual (virtual_mailbox_domains und virtual_alias_domain bzw. old style in virtual_alias_maps)
Im Log sieht man:
=================
Nov 11 07:51:01 linuxserver1 postfix/virtual[3049246]: D6BAB7CE0: to=<testuser at domain.de>, relay=virtual, delay=1.2, delays=1.1/0.02/0/0.03, dsn=5.1.1, status=bounced (unknown user: "testuser at domain.de")
also eine Domain die via "virtual"-Transport zugestellt wird.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hier meine Konfig:
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
...
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">local_recipient_maps = proxy:unix:passwd.byname $alias_maps
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = rirasoft.de
myhostname = mail.rirasoft.de
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
mydestination ist also mail.rirasoft.de, localhost.rirasoft.de, localhost
...
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">relay_domains = mysql:/etc/postfix/mysql_relay_domains_maps.cf
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
...
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
ICH DENKE: Die Abfrage "virtual_mailbox_maps" ist falsch. Die müsste
ja für die Zieladresse "testuser at domain.de" nix liefern (dann wird
die Mail abgewiesen).
Alternativ könnte relay_recipient_maps (fehlt!) das Problem sein, wenn
die Zieldomain in relay_domains ist.
</pre>
</blockquote>
<p>Domain ist rirasoft.de<br>
</p>
<p>Ja, die relay_recipient_maps habe ich nicht.</p>
<blockquote type="cite" cite="mid:YYzmbGMgRDr9g1e0@charite.de">
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">[root@linuxserver1
postfix]# cat /etc/postfix/mysql_virtual_mailbox_maps.cf
</span></span></p>
<p><span style="font-family:monospace"></span></p>
<span style="font-family:monospace">user = postfix
<br>
password = postfix
<br>
hosts = localhost
<br>
dbname = postfix
<br>
query = SELECT maildir FROM mailbox WHERE username='%s' AND active
= 1
<br>
</span>
<p><span style="font-family:monospace">[root@linuxserver1 postfix]#
<br>
</span></p>
<p>Soweit passt es ja.<br>
<span style="font-family:monospace"></span></p>
<p><span style="font-family:monospace"></span></p>
</body>
</html>