Forwarded to this list because I'm hoping someone else might have gone
down this route already...
===========
Hi...
I'm not sure if this is possible or not, but is there any way of
having sendmail add an X-Recipient header to email, on delivery, that
would contain the ... "original" userid to whom it was being sent?
ie. my Fw file contains two domains that I accept mail for...the
machine itself is 'hub.org', the domain it also accepts for is,
imp.hub.org, as an example. If someone sends an email to
userid(_at_)imp(_dot_)hub(_dot_)org,
I want the X-Recipient header to read something like:
X-Recipient: userid(_at_)imp(_dot_)hub(_dot_)org
And if the email goes to userid(_at_)hub(_dot_)org, then similarly:
X-Recipient: userid(_at_)hub(_dot_)org
The thing I'm *trying* to do is get a standard header put in,
for filter, that will include information from the BCC that it is being
delivered based on.
For example, if I were to send an email with headers of:
To: scrappy(_at_)hub(_dot_)org
BCC: sales(_at_)imp(_dot_)hub(_dot_)org,support(_at_)imp(_dot_)hub(_dot_)org
When it delivers it to sales(_at_)imp(_dot_)hub(_dot_)org, I want a
header of:
X-Recipient: sales(_at_)imp(_dot_)hub(_dot_)org
Added to its email...in the case where I have sales@, support@,
info@, etc all aliased to scrappy@, I can then use procmail to sort into
seperate folders based on the X-Recipient header...
Possible? And, if so, how?
Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy(_at_)hub(_dot_)org secondary:
scrappy(_at_){freebsd|postgresql}.org