-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jesper Langkjær wrote:
It's an mailaliases. The mail are sent to user1@companyB and then
delivered to user2, when the mail(vacation messages) are returned it
seems like it comes from user2@companyA and not user1@companyB as it
should.
I think this is your problem. The mail *is* being delivered to
user2@companyA, hence the reply comes from that account. By the time
mail gets to maildrop, the $RECIPIENT is user2@companyA because that's
where it's going to be delivered. Maildrop has no idea what the
original address was. Courier expands the alias when the message
arrives. After that, as far as anyone is concerned, it's as if the mail
had come in for user2@companyA. The original "RCPT TO:" recipient is
long gone.
To get around this I think you'll either need to use separate vacation
messages for each user which have the "From:" header already included in
the message, or you'll have to have some way for maildrop to know who
the original recipient was and use that to set the header. It may be
that maildrop can access that information somehow, but I don't know.
Google or someone else on the list may be able to help you there.
HTH
iD8DBQFEBCVHZxtYeNk78A8RApPnAJ0SSd4ex77DjLrXqBi4ZJtXbWmvewCglRqw
vN5IIrFZo5DPUqVFCEfFRTk=
=j1A2
-----END PGP SIGNATURE-----