Operating System - HP-UX
1844088 Members
3027 Online
110227 Solutions
New Discussion

experiencing a sendmail issue on 11.31 :(

 
Manuel Contreras
Regular Advisor

experiencing a sendmail issue on 11.31 :(


the issue is, everything defaults to our company smtp box...the DS server which is specified in the sendmail.cf file.

we have 18 other non 11.31 boxes with a similar configuration, and they processes requests as follows.


if you send mail to anything that is defined in our local /etc/hosts file, mail IS routed directly to that server.

if you send to anything that is NOT defined, it defaults to our DS server.


I tried commenting OUT the following macro entry in the sendmail.cf file:

# pass names that still have a host to a smarthost (if defined)
R$* < @ $* > $* $: $>95 < $S > $1 < @ $2 > $3 glue on smarthost name


during testing, mail was correctly being routed to the recipient host (if defined in /etc/hosts).

Unfortunately anything that was NOT defined, didn't go anywhere...

any assistance would be appreciated,
manuel
10 REPLIES 10
Court Campbell
Honored Contributor

Re: experiencing a sendmail issue on 11.31 :(

that macro is for local host delivery. so local mail is now more that likely being sent to the smart host.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven E. Protter
Exalted Contributor

Re: experiencing a sendmail issue on 11.31 :(

Shalom,

IF DS is configured in sendmail.cf all mail will be processed by that host if it is defined.

I always do it by ip address. I see no reason why if there is a DNS problem the mail should be held up. Let it sit on the relay server instead.

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
Court Campbell
Honored Contributor

Re: experiencing a sendmail issue on 11.31 :(

For some reason I forgot about the mailertable. That is what I would look at configuring in this situation.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Tim Nelson
Honored Contributor

Re: experiencing a sendmail issue on 11.31 :(

by default /etc/mail/sendmail.cw defines what is local.

If you have not made a huge amount of mods other then setting the smart relay then you need to check sendmail.cw to have local delivered local and everything else go to the smart relay.


If you have made a huge number of mods then you need to tell us everything that you have configured from the defaults.

Manuel Contreras
Regular Advisor

Re: experiencing a sendmail issue on 11.31 :(

sendmail.cf customizations:
DSourLOCALsmtpBOX.domain.net
DMourEXTERNALdomain.com
Dj$w.domain.com


local /etc/hosts resolves ourLOCALsmtpBOX.domain.net from DS entry above:
192.x.x.x DSourLOCALsmtpBOX.domain.net




things I have tested:
localhost mail is unaffected


if I add ourEXTERNALdomain.com as an alias associated w/our DSbox in /etc/hosts:

192.x.x.x DSourLOCALsmtpBOX.domain.net DMourEXTERNALdomain.com

and

commentOUT the smarthost entry from sendmail.cf :
# pass names that still have a host to a smarthost (if defined)
R$* < @ $* > $* $: $>95 < $S > $1 < @ $2 > $3 glue on smarthost name


I am able to send mail to both hosts defined in our local /etc/hosts file AND our local SMTP box.


although this works, I feel there must be another way to configure sendmail to play nice...

thanks for your assistance,
manuel
Manuel Contreras
Regular Advisor

Re: experiencing a sendmail issue on 11.31 :(

Tim,
you are correct, our sendmail.cw file contains the following:
localhost
ourFULLYqualifiedHOSTname
hostnameALAIAS
Tim Nelson
Honored Contributor

Re: experiencing a sendmail issue on 11.31 :(

How about this line.

# See if we are supposed to deliver to hosts in the local domain
###TIM Uncomment the below to controll local domain delivery. $m must be set
#
R$* < @ $* > $* $: $>check_local <$m> $1 < @ $2 > $3 Local Domain?


Manuel Contreras
Regular Advisor

Re: experiencing a sendmail issue on 11.31 :(

>grep "Local Domain" /etc/mail/sendmail.cf
R$* < @ $* > $* $: $>check_local <$m> $1 < @ $2 > $3 Local Domain?


currently NOT commented out...
Manuel Contreras
Regular Advisor

Re: experiencing a sendmail issue on 11.31 :(

gave HP a call...will post solution.
thanks,
manuel
Manuel Contreras
Regular Advisor

Re: experiencing a sendmail issue on 11.31 :(

issue ended up being the associated domain on our 11.31 boxes (different then others).


resolved by generating sendmail.cf file w/mailertable


# cd /usr/newconfig/etc/mail/cf/cf

- run

# ./gen_cf

Under the title "Sendmail Configuration File generator", choose the following,

1: General Features

4: Mailertable

8: Send only

0: Main Menu

5: Generate sendmail.cf

The Selected Options are:
mailertable

Do you want to continue and build the configuration file Press any key to continue or [n/N] to unset all options

Including mailertable
Building sendmail.cf.gen...
#

- Make a backup copy of you /etc/mail/sendmail.cf file.

- Copy the /usr/newconfig/etc/mail/cf/cf/sendmail.cf.gen to /etc/mail/sendmail.cf

- Make sure you add you other options such as Dj$w, DS, DM etc back into /etc/mail/sendmail.cf.


create the following mailertable file:

>cat /etc/mail/mailertable
server.domain.com esmtp:server.domain.com


perform the following command:
makemap dbm /etc/mail/mailertable < /etc/mail/mailertable



thanks everyone.