You want the genericstable feature for both of these. You can specify
a different address for specific users.

Add this to your .mc file.

FEATURE(`genericstable', `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/sendmail.cG')

/etc/mail/genericstable,txt (YES with a .txt extenbsion)  has lines like

wife_userid     [EMAIL PROTECTED]
user1           [EMAIL PROTECTED]

/etc/sendmail.cG will have

isp.com
business.co


create the hash with

makemap hash /etc/mail/genericstable < /etc/mail/genericstable.txt

and restart sendmail.

As far a general info on sendmail, the best resource I know is the
mailhelp list, and it's archives - at moongroup.com. I have found
sendmail.org useful too.

hth
charles

On Sun, 12 Nov 2000, Michael George wrote:

> I am on a PPP-connected system.  I generally will masquerade my outgoing mail
> as being from me at my ISP: [EMAIL PROTECTED]
> 
> I have two things I want to know how to do:
> 
> 1. Have a mapping from my wife's userid on my local systems (wife) to her
>    userid at the ISP's domain: wife ==> [EMAIL PROTECTED]  Incoming mail is easy,
>    we just use fetchmail, but I would like the system to change her outgoing
>    mail automatically.
> 
> 2. Have a mapping from another user's id on my local system (user1) to a
>    userid and domainname which my ISP handles for a business of mine:
>       user1 ==> [EMAIL PROTECTED] (which my ISP will handle)
>    Again, fetchmail will work for the incoming, but I would like my system to
>    change the outgoing mail.
> 
> My question is: where do I start reading to find out how these things are
> done?  I currently use sendmail and the sendmail-cf package on my RHL 6.1
> system.  I'm not sure if I need to get the O'Reilley Sendmail book, if the
> online docs for sendmail-cf will tell me what I need to do (I read through
> them just now but didn't find anything which specifically did that -- did I
> miss it?), or if this is something which should be handled by a mailer (e.g.
> elm, mutt, Netscrape, etc.).
> 
> I'm certainly willing to do some reading to find out how it's done, but if
> someone could direct me as to where to start, I'd appreciate it...



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to