<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hallo,<br>
<br>
Am 24.04.2010 19:18, schrieb Thomas Antony:
<blockquote cite="mid:4BD327DA.7080502@antony.eu" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <br>
dovecot   unix  -       n       n       -       -       pipe
  <br>
  <blockquote cite="mid:4BD181D5.8020809@marcel-hartmann.com"
 type="cite">   
flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -d
${recipient} <br>
  </blockquote>
  <br>
Wenn du bei Postfix recipient delimeter + benutzen möchtest, dann muss
du hier eine Kleinigkeit ändern.<br>
  <pre>dovecot unix    -       n       n       -       -      pipe
<span class="anchor" id="line-2-3"></span>  flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver
<span class="anchor" id="line-3-3"></span>  -f ${sender} -d ${user}@${nexthop} -a ${recipient}

<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://wiki.dovecot.org/LDA/Sieve">http://wiki.dovecot.org/LDA/Sieve</a>
  </pre>
In Dovecot muss recipient delimeter auch konfiguriert werden.<br>
  <br>
</blockquote>
Wozu braucht man recipient delimeter genau bitte?<br>
<blockquote cite="mid:4BD327DA.7080502@antony.eu" type="cite">
  <blockquote cite="mid:4BD181D5.8020809@marcel-hartmann.com"
 type="cite"><br>
    <blockquote type="cite"><br>
Was für ein Resultat wird dir angezeigt wenn du eine gültige Domäne die
in virtual_mailbox_domains angeführt ist abfragst? <br>
postmap -q marcel-hartmann.com
mysql:/etc/postfix/virtual_mailbox_domains.cf <br>
    </blockquote>
1 <br>
  </blockquote>
OK.<br>
  <br>
  <br>
  <blockquote cite="mid:4BD181D5.8020809@marcel-hartmann.com"
 type="cite">
    <blockquote type="cite"><br>
Was für ein Resultat wird dir angezeigt wenn du eine gültige Email
Adresse eines Postfaches die in virtual_mailbox_maps angeführt ist
abfragst? <br>
postmap -q <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:hans@marcel-hartmann.com">hans@marcel-hartmann.com</a>
mysql:/etc/postfix/virtual_mailbox_maps.cf <br>
    </blockquote>
postmap -q <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:mail@marcel-hartmann.com">mail@marcel-hartmann.com</a>
mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf <br>
Das ergibt: 1 <br>
  </blockquote>
OK<br>
  <br>
  <blockquote cite="mid:4BD181D5.8020809@marcel-hartmann.com"
 type="cite"><br>
postmap -q <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:hans@marcel-hartmann.com">hans@marcel-hartmann.com</a>
mysql:/etc/postfix/mysql-virtual-alias-maps.cf <br>
ergibt dann: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:mail@marcel-hartmann.com">mail@marcel-hartmann.com</a> <br>
  </blockquote>
OK<br>
  <br>
  <blockquote cite="mid:4BD181D5.8020809@marcel-hartmann.com"
 type="cite"><br>
Hans ist ein ALias der auf mail in der Domain marcel-hartmann.com
forwarden soll! Hans ist also KEINE Mailbox, er legt mir aber das
Maildir für hans an und legt nix in mail ab, da wos eigentlich landen
sollte. <br>
    <br>
virtual_mailbox_domains bekommt also eine 1 bei der Domain, da sie da
gelistet ist. <br>
virtual_mailbox_maps bekommt die 1 weil die Mailbox vorhanden ist <br>
virtual_alias_maps bekommt das korrekte Ziel aus der map nämlich hans
-> mail in der Domain marcel-hartmann.com. <br>
  </blockquote>
  <br>
Sieht ja einmal soweit gut aus.<br>
In einer anderen Email von dir habe ich gesehen das du in deiner
postfix.conf<br>
  <pre wrap=""><small><small>receive_override_options = no_address_mappings
</small></small></pre>
definiert hast.<br>
Damit schaltest du virtual_alias_maps ab!<br>
Was sind deine Beweggründe hierfür?<br>
  <br>
  <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://postfix.eu.org/postconf.5.html#no_address_mappings">http://postfix.eu.org/postconf.5.html#no_address_mappings</a><br>
Disable canonical address mapping, virtual alias map expansion,
address masquerading, and automatic BCC (blind carbon-copy)
recipients. This is typically specified BEFORE an external content
filter. <br>
  <br>
  <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://postfix.eu.org/ADDRESS_REWRITING_README.html#virtual">http://postfix.eu.org/ADDRESS_REWRITING_README.html#virtual</a><br>
  <br>
  <br>
Kommentiere doch einmal die Einstellung aus, starte Postfix neu und
versuche es noch einmal.<br>
</blockquote>
Das war der Fehler! Nun gehen externe forwardings und dovecot legt
keine Dirs mehr für aliasse an, COOL!<br>
<br>
So da mein Setup nun läuft verändere ich daran werst mal nix mehr. Weil
ich wie schon Peer sagte auch mal das Wetter geniessen möchte. Aber ich
werde kommende Woche mal folgendes Testen:<br>
<br>
Den deliver nutze ich ja eh schon vom dovecot.<br>
Ich ersetze virtual_mailbox_domains gegen relay_domains und
virtual_mailbox_domains gegen relay_recipient_maps.<br>
Aliasse bleiben dann in der virtual_alias_maps datei. Dann teste ich
das ganze mal und melde mich ggf. zurück sollte da was schief gehen.<br>
<br>
Danke Euch allen und Gruß,<br>
Marcel<br>
<pre class="moz-signature" cols="72">-- 
Marcel Hartmann (webdeveloper && project manager)
<a class="moz-txt-link-abbreviated" href="mailto:mail@marcel-hartmann.com">mail@marcel-hartmann.com</a> // <a class="moz-txt-link-abbreviated" href="http://www.marcel-hartmann.com">www.marcel-hartmann.com</a></pre>
</body>
</html>