script von sendmail8.11.3 aufrufen lassen
Hallo, Ich versuche sendmail dazu zu bringen nach der Ablieferung einer mail in die queue ein Script laufen zu lassen. Mir geht es um folgendes: Ich habe mehrere E-mail Addressen (Privat/Geschaeft/Verein) bei denen ich nicht moechte, dass ein Empfaenger etwas von den anderen beiden erfaehrt. Aus verschiedenen Gruenden kann ich keinen smart-host benutzen, sondern muss die mails selber abschicken. Aber trotzdem moechte ich mails von / an alle Adressen von einem User aus verwalten / verschicken koennen. Wenn ich nun fuer eine Domain masquerade bzw. die Adresse des User ueber genericstable aender, kann ich nur eine adresse maskieren. Dann steht in allen E-mails diese eine Adresse drin. Ich dachte nun daran, masquerading auszuschalten und die genericstable zu leeren. Meine externen E-mails dann in der Queue gespeichert, und ich kann den Sender (Stichwort "S" in der "q...."-Datei) per Hand veraendern. Doch ich dachte, dass sich diese Veraenderung doch auch per script (grep <*> aus der From:-Zeile, einfuegen in die "S"-Zeile) regeln lassen muesste, welches dann (am besten noch mit der Queue-ID) von Sendmail direkt nach einer "Einreihung" ausgeloest wird. Hat jemand von euch eine Idee, wie ich Sendmail dazu bringe eine aktion (das starten eines scriptes) nach ablieferung einer mail in die queue auszufuehren? Danke fuer jede Hilfe! Gruss, Michael Schmidt Xabbu@myflat.com -- Lieber Gott! Mach doch, dass die Vitamine aus dem Spinat in den Vanillepudding kommen.
Am Mit, 12 Sep 2001, schrieb Michael Schmidt:
Mir geht es um folgendes: Ich habe mehrere E-mail Addressen (Privat/Geschaeft/Verein) bei denen ich nicht moechte, dass ein Empfaenger etwas von den anderen beiden erfaehrt. Aus verschiedenen Gruenden kann ich keinen smart-host benutzen, sondern muss die mails selber abschicken. Aber trotzdem moechte ich mails von / an alle Adressen von einem User aus verwalten / verschicken koennen. Wenn ich nun fuer eine Domain masquerade bzw. die Adresse des User ueber genericstable aender, kann ich nur eine adresse maskieren. Dann steht in allen E-mails diese eine Adresse drin. Ich dachte nun daran, masquerading auszuschalten und die genericstable zu leeren. Meine externen E-mails dann in der Queue gespeichert, und ich kann den Sender (Stichwort "S" in der "q...."-Datei) per Hand veraendern. Doch ich dachte, dass sich diese Veraenderung doch auch per script (grep <*> aus der From:-Zeile, einfuegen in die "S"-Zeile) regeln lassen muesste, welches dann (am besten noch mit der Queue-ID) von Sendmail direkt nach einer "Einreihung" ausgeloest wird.
Ich bin nicht sicher, ob ich Dich richtig verstanden habe, aber ich denke, Du willst Emails mit Sendmail direkt versenden und die Absenderadresse dabei frei wählen können. Korrekt? Erkläre Dich zum Trusted User für Sendmail. Dann kannst Du mit mehreren Mailprogrammen, z.b. Mutt und IMHO auch pine, die Absenderadresse mit der -f Option an Sendmail übergeben => Die Mail wird mit der gesetzten Absenderadresse versandt Oder habe ich was falsch verstanden? Gruß Christoph -- Christoph Maurer - Paul-Röntgen-Straße 7 - 52072 Aachen - Tux#194235 mailto:christoph-maurer@gmx.de - http://www.christophmaurer.de Auf der Homepage u.a.: Installation von SuSE 7.0 auf Notebook Acer Travelmate 508 T, Elektrotechnik an der RWTH Aachen
On Wed, Sep 12, 2001 at 12:42:23PM +0200, Christoph Maurer wrote:
Ich bin nicht sicher, ob ich Dich richtig verstanden habe, aber ich denke, Du willst Emails mit Sendmail direkt versenden und die Absenderadresse dabei frei wählen können. Korrekt?
Ja, genau darum ging es...
Erkläre Dich zum Trusted User für Sendmail. Dann kannst Du mit mehreren Mailprogrammen, z.b. Mutt und IMHO auch pine, die Absenderadresse mit der -f Option an Sendmail übergeben => Die Mail wird mit der gesetzten Absenderadresse versandt
Genial, genau das war es... Eigendlich zu leicht fuer eine Loesung, aber elegant... *freu* Danke, Christoph. Gruss, Michael -- Jetzt sind die guten alten Zeiten, nach denen wir uns in zehn Jahren zurrücksehnen werden. Peter Ustinon
participants (2)
-
Christoph Maurer
-
Michael Schmidt