linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sendmail forward and message
@ 2005-07-12 14:01 Luca Ferrari
  2005-07-12 18:03 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: Luca Ferrari @ 2005-07-12 14:01 UTC (permalink / raw)
  To: linux-admin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sendmail forward and message
  2005-07-12 14:01 sendmail forward and message Luca Ferrari
@ 2005-07-12 18:03 ` Glynn Clements
  0 siblings, 0 replies; 2+ messages in thread
From: Glynn Clements @ 2005-07-12 18:03 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: linux-admin


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 <address>'' message.
		If this is set, you can alias people who have left
		to their new address with ".REDIRECT" appended.

-- 
Glynn Clements <glynn@gclements.plus.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-12 18:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-12 14:01 sendmail forward and message Luca Ferrari
2005-07-12 18:03 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).