[rt-users] Autoreply by nobody

Nicolas Mailhot Nicolas.Mailhot at one2team.com
Fri Sep 13 11:16:53 EDT 2002


Le ven 13/09/2002 à 16:47, Nicolas Mailhot a écrit :
> Le ven 13/09/2002 à 16:31, Kirill Miazine a écrit :
> > * Nicolas Mailhot [2002-09-13 16:17]:
> > > > 2) missing $From in:
> > > >      open(MAIL, "|$RT::SendmailPath $From $RT::SendmailArguments")
> > > >                                      ^^^^^ <- this is -f sender at you.hoo
> > > 
> > > Damn, missed this.
> > > This means your workaround only works with senmailpipe, right ?
> > 
> > It can work with the other one too, I happen to use senmailpipe.
> > 
> > > > > Could you please enlighten me on what your code should do (seems I'm
> > > > > good for a perl crash course anyway:()
> > > > 
> > > > It takes address matching a quite simplre regex from From: header field
> > > > and tells sendmail to use it as the envelope sender address (-f option).
> > > 
> > > Well, that's more or less what I understood. I guess I've been staring
> > > at perl code too long:).
> > > 
> > > Unfortunately, even with small f and big from this does not seem to
> > > work:(
> > 
> > What's your MTA? 
> 
> Postfix
> 
> > Is it configured to accept -f option to set the sender?
> 
> A quick test shows -f works for normal users
> 
> > It should be noted that "-f sender at some.thing" will set the _envelope_
> > sender to sender at some.thing. But since sender is extracted from From:,
> > it shouldn't matter in this case.
> > 
> > What do you have in From: header field?
> 
> Return-Path: <nobody at localdomain>
> Delivered-To: nim at localdomain
> Received: by smtp.localdomain (Postfix, from userid 99) id 589A61CB22;
> Fri,
>         13 Sep 2002 16:43:16 +0200 (CEST)
> Subject: ... 
> From: "Support" <support at publicdomain>
> Reply-To: support at publicdomain
> 
> Hope this helps:(

And just for the fun of it, I've added another alias :

bubu:           "|id | /usr/sbin/sendmail -oi -f bob at bob.bob -F
bill at bill.bill nim" 

Which gets me :

Return-Path: <bob at bob.bob>
Delivered-To: nim at localdomain
Received: by smtp.olympe.o2t (Postfix, from userid 99) id 471EE1CB23;
Fri,
        13 Sep 2002 17:11:46 +0200 (CEST)
Message-Id: <20020913151146.471EE1CB23 at smtp.olympe.o2t>
Date: Fri, 13 Sep 2002 17:11:46 +0200 (CEST)
From: bob at bob.bob (bill at bill.bill)
To: undisclosed-recipients:;
X-Evolution-Source: imap://nim@imap.olympe.o2t/
Subject: No Subject
Mime-Version: 1.0

uid=99(nobody) gid=99(nobody) groups=99(nobody)

So both -f and -F should work out of the box, except for rt somehow they
don't:(

Regards,

-- 
Nicolas Mailhot
One2team : 12 bis rue de la Pierre Levée - 75011 Paris - France  
Tél : + 33 1 43 38 19 80 - Fax : +33 1 43 14 23 07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20020913/0e922303/attachment.sig>


More information about the rt-users mailing list