> Either use a .forward file in user's home directory or create an
> appropriate virtusertable entry. After creating an entry in
> virtusertable you need to run the make in /etc/sendmail and restart
> sendmail. I prefer the former method.

I have a feeling that neither will work. In fact, the .forward approach
is guaranteed to not work. The .forward file works only for the
recipient, and can redirect all mail being sent to the recipient to
another address. In the original question, the intention was to redirect
all _outgoing_ mails meant for [EMAIL PROTECTED] to another address (say
on yahoo.com). That will not work with .forward unless:

(i)   you are the sysadmin of hotmail.com
(ii)  hotmail uses Sendmail (they use qmail, I think)
(iii) you put a .forward in the home directory of user 'abc'

The virtusertable approach has greater chance of success, on the face of
it. However, I believe the virtusertable processing is only done for all
addresses which are in local domains. This means that the virtusertable
is looked up only after Sendmail has deduced that the domain part of
the recipient email address is one of the domains marked as "local" for
_this_ Sendmail. Therefore, once again, virtusertable will only work in
this example if you put that mapping entry on the Sendmail running on
hotmail.com's mail servers.

I may be wrong with the virtusertable issue if I discover Sendmail does
not apply that table only to local domains.

I have a feeling that the only way to achieve this may be by adding
special rules to the local part of ruleset 0 of sendmail.cf. There may
be other ways too, but this would be simplest, most foolproof, and would
need least experimentation, if you know how to edit sendmail.cf rules.

Shuvam

PS: I've been editing sendmail.cf since Sendmail v4.x; that was 1990-91.
    At that time, the "Bat Book" wasn't even written; it came after v8
    Sendmail. There was _no_ book on Sendmail at that time. :) Sendmail
    is nice. :)


_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to