+++ kvs [linux-india] <06/12/01 18:38 -0800>:
> With the help of pc quest magazine and website, I could manage to configure
> sendmail for my domain. But there is still a small thing I want to implement

That sendmail howto (if you mean the one which came with the pcqlinux CD) is
broken.

> desai and krishna both have account on this machine.
> If desai sends the mail from [EMAIL PROTECTED] through smtp
> (110.110.110.75, which is sendmail server on our LAN) to
> [EMAIL PROTECTED] and cc to [EMAIL PROTECTED] , this server will
> forward mail locally to [EMAIL PROTECTED] and sends copy to hotmail
> member externally(i.e. through smtp of ISP).

Sure ...

> Now what I want is, if a mail is sent to [EMAIL PROTECTED] and cc to
> [EMAIL PROTECTED] , where shah does not have account on this machine, the
> first mail should be forwarded internally and second should be sent to
> [EMAIL PROTECTED] externally(i.e. through smtp of ISP). shah(who is not in

Put an entry in /etc/aliases, or virtusertable - or however you are
maintaining the user database for mydomain.com as follows

[Assuming that [EMAIL PROTECTED] can be reached as something like

[EMAIL PROTECTED]

or [EMAIL PROTECTED]:  [EMAIL PROTECTED] in
virtusertable.

Or forward shah's mail to [EMAIL PROTECTED] or something similar.

> Will it do if I specify [EMAIL PROTECTED] in /etc/mail/local-host-names
> file, I think this file is important to filter the domain.

You dont specify anything other than _DOMAINS_ you receive mail for, in
local-host-names.  You can't put email addresses there.

-- 
Suresh Ramasubramanian  <---->  mallet <at> efn dot org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to