Operating System - HP-UX
1833514 Members
6247 Online
110061 Solutions
New Discussion

sendmail aliasing for domain

 

sendmail aliasing for domain

Hi,
I want to alias each user to user@abc.com. But I don't want to alias hundreds of users on hundreds of clients.
If there is a solution on that, is it possible to define exceptions, i.e. for root?

Clemens
always look on the bright side of life
3 REPLIES 3
benoit Bruckert
Honored Contributor

Re: sendmail aliasing for domain

Hi Clemens,
I'm not sure if I understand your question :
Do you want that all outgoing mail will have @abc.com added after user ?
If this is the case, you just have to activade masquerading of sendmail.
To do that :
In sendmail.cf, add :
DMabc.com
And select which domain is masqueraded :
CM hostname
or anything else !

to exclude root : CL root

The cleanest way to make the change is the m4 on the mc file

If I didn't understand the question, can you be more clear about what you want to do ?

Hope it may help
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
Christopher Caldwell
Honored Contributor

Re: sendmail aliasing for domain

To route (or re-route) inbound mail to users on a domain by domain basis or a user by user basis user virtusertable. virusertable takes a lefthand address
user@domain
and delivers it to a right hand address
user[optionally @ someotherdomain]

This is generally referred to as virtual domain hosting.

To re-write headers of outbound mail to reflect virtual domains (or hide internal delivery hosts) use the genericstable.

To route mail from a mail exchanger to a mail delivery box on a domain by domain basis use mailertable.

The reply-to address is easily coerced by setting the reply address in a POP client. This technique can be used in lieu of genericstable.

Re: sendmail aliasing for domain

Hi Benoit,
I think my question was not very clear, but you took me on the right way.
To forward all local mail to a mail server (relay?) I used
DH mailservername
For exceptions on this rule I used
CL root bob mary

Thanks for your assistance.

Clemens
always look on the bright side of life