<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hallo zusammen,<div><br></div><div>wir arbeiten gerade einer sog. „Archiv“-Funktionalität (nennen wir es für den Moment einfach mal so), die folgendes leisten soll. Hier der Flow:</div><div><br></div><div>- Ein User authentifiziert sich per SASL am MTA und übermittelt eine E-mail eine beliebige Adressaten (to, cc, bcc) </div><div>- via LDAP Lookup wird ermittelt, ob ein gewisses Flag / oder ein Key gesetzt bzw vorhanden ist (nennen wird diese Option im LDAP "archive=true")</div><div>- Ist dies der Fall, so wird die komplette E-Mail inkl. aller Adressaten (ja, auch BCC sollen hier erscheinen) an eine weitere Adresse (hier: <a href="mailto:absender@archive.domain.tld">absender@archive.domain.tld</a>) gesendet.</div><div>- Dies erledigen wir momentan per sender_bcc_maps & LDAP Lookups</div><div><br></div><div>… aus der main.cf:</div><div><br></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><font face="Menlo">sender_bcc_maps = proxy:ldap:/opt/postfix/conf/archive-transport_lookup.cf</font></div><div><br></div></blockquote><div>Inhalt des files archive-transport_lookup.cf:</div><div><br></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><font face="Menlo">version = 3</font></div></div><div><div><font face="Menlo">bind = yes</font></div></div><div><div><font face="Menlo">bind_dn = uid=postfix,cn=admins,cn=postfix</font></div></div><div><div><font face="Menlo">bind_pw = ******</font></div></div><div><div><font face="Menlo">server_host = <a href="ldap://ldapserver.domain.tld:389">ldap://ldapserver.domain.tld:389</a></font></div></div><div><div><font face="Menlo">search_base = ou=people,dc=domain,dc=tld</font></div></div><div><div><font face="Menlo">query_filter = (&(|(mailAlias=%s)(mail=%s))(archive=true))</font></div></div><div><div><font face="Menlo">result_attribute = uid</font></div></div><div><div><font face="Menlo">result_format = %<a href="mailto:U@archive.domain.tld">U@archive.domain.tld</a></font></div></div></blockquote><div><div><br></div></div><div><br></div><div>Wie oben zu erkennen ist, wird im result format der wert „<a href="mailto:absender@archive.domain.tld">absender@archive.domain.tld</a>“ zurück gegeben, was dazu führt, dass die übermittelte E-Mail an „<a href="mailto:Absender@archive.domain.tld">Absender@archive.domain.tld</a>“ gesendet wird. Die nachfolgende Transport-Map regelt die Übermittlung ans Archiv:</div><div><br></div><div>… aus der main.cf:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">      </span>transport_maps =  hash:/opt/postfix/conf/archive-transport_maps</div></div><div><br></div><div>Inhalt des files archive-transport_maps:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>archive.domain.tld<span class="Apple-tab-span" style="white-space:pre">  </span>smtp:archivhost.domain.tld:25</div></div><div><br></div><div>Soweit so gut. </div><div><br></div><div>Wir möchten nun die E-Mails, die per sender_bcc_maps automatisch an    <a href="mailto:user@ARCHIVE.domain.tld">user@ARCHIVE.domain.tld</a>    gesendet werden mit weiteren Header-Merkmalen versehen, u.a. auch allen BCC Adressaten. Wir wissen, dass dies gegen jede Richtlinie von BCC / MTAs ist, aber dennoch müssen wir dies bewerkstelligen. Shame on our Management.</div><div><br></div><div>Ich habe bereits versucht dies ver smtp_recipient_restrictions zu bewerkstelligen, leider nur mit mäßigen Erfolg:</div><div><br></div><div>...</div><div><div>smtpd_recipient_restrictions =</div><div>            check_recipient_access pcre:/opt/postfix/conf/archive-prepend_headers.pcre,</div></div><div>...</div><div><br></div><div>Inhalt der Datei archive-prepend_headers.pcre</div><div><br></div><div><div>IF /(.*)@archive\.domain\.tld(.*)$/</div><div>/(.+)*/<span class="Apple-tab-span" style="white-space:pre">         </span>PREPEND X-MYCUSTOM-HEADER: $1</div><div>ENDIF</div></div><div><br></div><div><br></div><div>Dies führt natürlich dazu, dass nicht nur die E-mail ans Archiv mit zusätzlichen Headern „enriched“ wird, sondern auch die E-Mail(s) an die ursprünglichen Ziel-Adressaten = Fail. Wir können wir es hinbekommen, dass nur die E-Mails an archive.domain.tld mit allen TO, CC, BCC Adressaten im Header enriched werden ? </div><div><br></div><div>ich bedanke mich jetzt schon für das Euer Feedback.</div><div><br></div><div>Besten Gruß</div><div><br></div><div>P.atrick</div><div><br></div><div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"></div><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="333" style="letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: LucidaGrande; width: 249.75pt; position: static; z-index: auto;"><tbody><tr><td valign="top" style="padding: 0cm;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><a href="http://www.vodafone.com/" style="color: purple;"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; text-decoration: none;"><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="333" style="letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: LucidaGrande; width: 249.75pt; position: static; z-index: auto;"><tbody><tr><td style="padding: 0cm;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(240, 0, 0);"><br class="Apple-interchange-newline">Patrick Syska </span></b><span style="font-size: 8.5pt; font-family: Arial, sans-serif; color: rgb(77, 77, 77);"><br><br><br>Vodafone Group Services GmbH<br>Email: patrick.syska@vodafone.de<br> <o:p></o:p></span></div></td></tr><tr><td width="333" colspan="2" style="width: 249.75pt; padding: 0cm;"><div style="border-style: solid none none; border-top-color: rgb(229, 229, 229); border-top-width: 1pt; padding: 8pt 0cm 0cm;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="DE" style="font-size: 8.5pt; font-family: Arial, sans-serif; color: rgb(77, 77, 77);">Vodafone Group Services GmbH, Ferdinand-Braun-Platz 1, D-40549 Düsseldorf Amtsgericht Düsseldorf, HRB 53554 Geschäftsführung: Dr. Joachim Peters, Frank Rosenberger, Achim Weusthoff<o:p></o:p></span></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 8.5pt; font-family: Arial, sans-serif; color: rgb(77, 77, 77);"><a href="http://www.vodafone.com" style="color: purple;"><b><span style="color: rgb(77, 77, 77); text-decoration: none;">vodafone.com</span></b></a></span></div></td></tr></tbody></table><div style="color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br></div><br class="Apple-interchange-newline"></span></a></div></td></tr></tbody></table></div>
</div>
<br></div></body></html>