1821203 Members
3577 Online
109631 Solutions
New Discussion юеВ

Sendmail Configuration

 
Wayne Willess
Advisor

Sendmail Configuration

Could someone please tell me how to configure sendmail to pass unknown users to a mail relay without changing the domain name of the recipient?
Here is what I am trying to do.

I am receiving email to my HP-UX server running Sendmail 8.9.3. If I receive an email from an unknown user I want the address to be passed to the mail relay unchanged.

Example:

joe.user@abc123.com (Unknown user on my system)
relay to system named ???relay??? as joe.user@abc123.com

What I am getting now.
joe.user@abc123.com (Unknown user on my system)
relay to system named ???relay??? as joe.user@relay

Also my HP server does not use DNS only /etc/hosts for name resolution.

Thanks,

Wayne
5 REPLIES 5
Geoff Wild
Honored Contributor

Re: Sendmail Configuration

Have you tried:

# "Smart" relay host (may be null)
DSrelay


As far as the users, are they all abc123.com and is the relay server relay.abc123.com?

If yes, then:

# who I masquerade as (null for no masquerading)(see also $=M)
DMabc123.com


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Wayne Willess
Advisor

Re: Sendmail Configuration

Geoff,

DS is set to relay
DSrelay

All the user are abc123.com but the relay server is not but it does know how to send to abc123.com.

Masquerade is
DMabc456.com

Messed up I know. I could change the masquerade but everything else is set in stone.

Thanks,

Wayne
Steven E. Protter
Exalted Contributor

Re: Sendmail Configuration

The DS directive will take all mail from the mail server itself and pass it to another server for relay. Don't think that's what you want.

Adding entries to the aliases database will probably work.

You can have entries like this:

joe.user@abc123.com joeuser
# This entry will take inbound mail and route it to a local user.

joe.user@abc123.com joeuser@aol.com

That will take joe.user's mail and send it to his aol account.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Wayne Willess
Advisor

Re: Sendmail Configuration

In my original message I wrote:
???If I receive an email from an unknown user I want the address to be passed to the mail relay unchanged.???

I meant:
???If I receive an email for an unknown user I want the address to be passed to the mail relay unchanged.???

Thanks,

Wayne
Wayne Willess
Advisor

Re: Sendmail Configuration

Steven,

I am using the aliases file to do just that but I need it to send on any unknown address to the relay unchanged. If the DL is null then it returns unknown user. When I set DLrelay the relay bounces the message with the following.
Your message to the following recipients was undeliverable:
joe.user@relay

Thanks,

Wayne