Getting RT to set a correct sendmail envelope sender

Hi all

I’ve a bit a problem I don’t understand.

Usualy you set the envelope sender in sendmail by specifying:
sendmail -fsomebody@somewhere.com

Easy I tought and added:

$SendmailArguments=“-oi -t -ODeliveryMode=b -OErrorMode=m
-fsomebody@somehwere.com”;

but this had no effect so next try:

$SendmailArguments=“-fsomebody@somehwere.com -oi -t -ODeliveryMode=b
-OErrorMode=m”;

Argh: sendmail now uses
from=<somebody@somehwere.com.-oi.-t.-ODeliveryMode=b.-OErrorMode=m>

Next try:

$SendmailArguments=‘-fsomebody@somehwere.com -oi -t -ODeliveryMode=b
-OErrorMode=m’;
$SendmailArguments=“-fsomebody@somehwere.com\ -oi\ -t\ -ODeliveryMode=b
-OErrorMode=m”;

Still the problem stays the same.

What the hell goes wrong?

If I type manualy:

sendmail -fsomebody@somehwere.com -oi -t -ODeliveryMode=b -OErrorMode=mFrom: foo@bar.com
To: bar@foo.com
Subject: Test

foobar
ctrl-D

this works perfectly.

Benoit Panizzon

IPH & Partner AG
Birmensdorferstrasse 24
CH - 8902 Urdorf
Tel. +41 (0)1.736.40.50 Fax: +41 (0)1.736.40.51
Mail: bpanizzon@iphpa.ch www.iphpa.ch

Die Informationen in dieser E-Mail sind vertraulich und moeglicherweise
rechtlich geschuetzt. Sie sind nur fuer den Adressaten bestimmt. Der
Zugriff durch andere Personen ist nicht erlaubt. Wenn Sie nicht der
beabsichtigte Empfaenger sind, loeschen Sie bitte dieses E-Mail. Jede
Offenlegung dieser E-Mail bzw. der beteiligten Personen, jedes Kopieren,
Versenden oder jede andere Handlung bzw. Unterlassung als Folge dieser
E-Mail ist verboten und kann gegen die Gesetze verstossen.

The information in this e-mail is confidential and may be legally
privileged. It is intended solely for the addressee. Access by another
person ist not authorized. If you are not the intended recipient, please
delete this e-mail. Any disclosure of this e-mail or of the parties to
it, any copying, distribution or any action taken or omitted to be taken
in reliance on it is prohibited, and may be unlawful.