sendmail forward and message

sendmail forward and message

am 12.07.2005 16:01:05 von Luca Ferrari

Hi,
is it possible to configure sendmail in order to forward emails from a
user to another and, at the same time, to reply to the sender with a
message that states the addressed user does no more exists? I know how
to do the things in a separate way (.forward or alias and
virtusertable), but not how to compose them (in fact I failed trying to
compose them). Any help?

Thanks,
Luca
--
Luca Ferrari
fluca1978@infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: sendmail forward and message

am 12.07.2005 20:03:48 von Glynn Clements

Luca Ferrari wrote:

> is it possible to configure sendmail in order to forward emails from a
> user to another and, at the same time, to reply to the sender with a
> message that states the addressed user does no more exists? I know how
> to do the things in a separate way (.forward or alias and
> virtusertable), but not how to compose them (in fact I failed trying to
> compose them). Any help?

Create an alias (or ~/.forward file) to forward the message to two
addresses. The first is the user's new email address, while the second
sends the reply, e.g. a program alias which invokes the "vacation"
command.

Alternatively, you can use FEATURE(redirect) for the second alias:

redirect Reject all mail addressed to "address.REDIRECT" with
a ``551 User has moved; please try

'' message.
If this is set, you can alias people who have left
to their new address with ".REDIRECT" appended.

--
Glynn Clements
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html