procmail
[Top] [All Lists]

Re: easy question

1998-12-07 10:47:12
On 7 December 1998, J. Davis 
<jd(_at_)lri(_dot_)stjosephs(_dot_)london(_dot_)on(_dot_)ca> wrote:
I have some users who have email accts with the local university, but
prefer to use my mail server. They forward all mail that lands at the
university to here. Problem is, even though their outgoing Reply-To:
line read user(_at_)university_domain, the From lines read 
user(_at_)my_domain,
which is confusing to their mail recipients. I run procmail as the
local mailer, through sendmail.cf. I can't quite figure out how to
recognise the user and then change the From lines from user(_at_)my_domain
to user(_at_)university_domain(_dot_) I've tried various variations of formail
pipes, as yet unsuccessfully.

    I'm not sure I fully understand this, but AFAICT you want to change
the "From:" line in _outgoing_ messages.  The standard use for procmail
is to munge _incoming_ messages.  Now, you can probably do what you want
with procmail, but it would be rather contorted.  A much better solution
would be either to convince your users to use a mailer that allows them
to customize the "From:" line in their outgoing messages, or, if you
can, use mail masquerading.

and now... Deep Thought #49, by Jack Handy

I'd like to see a nude opera, because when they hit those high notes,
I bet you can really see it in those genitals.

    I'm not sure I fully understand this either. :-)

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   daia(_at_)stoilow(_dot_)imar(_dot_)ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc

<Prev in Thread] Current Thread [Next in Thread>