1848719 Members
6793 Online
104036 Solutions
New Discussion

Re: sendmail as client

 
Roberto Gallis
Regular Advisor

sendmail as client

Is it possible to configure sendmail in hp-ux 11 to work as client of another relay.
I set the DSrelayhost but my sendmail want to contact dns... dns can't solve addressing because my host is on dmz area.
4 REPLIES 4
MARTINACHE
Respected Contributor

Re: sendmail as client

Hi,

Edit your /etc/nsswitch.conf file :

hosts: files

With this configuration, your host will only search IP address in /etc/hosts and will not use DNS.

Regards,

Patrice.
Patrice MARTINACHE
Roberto Gallis
Regular Advisor

Re: sendmail as client

Hi,
i put ip address of relay int /etc/hosts and configured nsswitch to files
but sendmail try to resolve external address of mail I send. Smart relay have to resolve that address, not my sendmail
Dave Kelly_1
Respected Contributor

Re: sendmail as client

You can run sendmail -bt and specify the following:

3,0 user@domain.com

this will give you something like this:

rewrite: ruleset 0 returns: $# relay $@ relayhost $: user < @ domain . com >

If not then please can you attach your sendmail.cf for analysis.
Roberto Gallis
Regular Advisor

Re: sendmail as client

So, here's my sendmail.cf
Note: the smart relay uses a dns server. My host uses only /etc/hosts
my sendmail tries to resolve external mail...
I do not want that