Hallo,
erstmal danke für die Infos.
Aber leider komme ich immer noch nicht weiter, vielleicht kann mir jemand weiter auf die Sprünge helfen.
Also in der oben verlinkten Doku heißt es:
Zitat
How can I change the apparent sender of agent generated mail?
Sometimes you need to generate mail from an identity different from your own. For example, you may want to generate mail from the user Domino Administrator. There are three ways to do this:
<ul><li>Create a special ID for user Domino Administrator and sign the agent with that ID.</li>
<li>Use the Principal field in the agent code to override the From field.</li>
<li>Use the Run on behalf of field (new in Notes/Domino 6).</li></ul>
The first method is the simplest because it requires no coding. It does, however, involve licensing and maintaining IDs. The second method is more flexible, but requires some coding. You don't need any special rights, [color=FF0000]but the information about the original sender is maintained for auditing purposes. By default, the mail template displays the original sender's name in the sent by field under the From field.[/color] There are three ways to specify the Principal field:
<ul><li>doc.Principal="Joe User/Org@NotesDomain" where Joe User/Org has a Person record with an InternetAddress of your choosing. (Note that the string @NotesDomain must be present.)</li>
<li>doc.Principal="CN=Joe User/O=Org" where Joe User/Org has a Person record with an InternetAddress of your choosing. </li>
<li>doc.Principal=User@acme.org@NotesDomain <mailto:User@acem.org@NotesDomain>. (Note that the string @NotesDomain must be present.)</li></ul>
...
Alles anzeigen
Soweit so gut. In meinem Fall würde ich gerne nach Alternative 2 vorgehen und das Principal-Feld setzen (ohne natürlich die NotesDomäne zu vergessen), um die Absenderangabe zu überschreiben.
Mein Problem ist wahrscheinlich der oben rot markierte Absatz. Ich möchte ja, dass Zustellberichte in eine Mail-In Datenbank zurückgeleitet werden. Da aber der Servername in der Notes-Mail immer noch im From-Feld steht, würde der Zustellbericht an den Server geschickt werden.
Hat noch jemand einen Hinweis, wie man das hinbekommen könnte?
P.S.
Wenn ich so eine Mail an eine ungültige E-Mail-Adresse sende, dann bekomme ich auch den Zustellfehler in meine Datenbank. Heisst das ich könnte versuchen, meine Mail zuerst über ein SMTP-Gateway zu versenden?
Vielen Dank schonmal für die Hilfe.