1834142 Members
2271 Online
110064 Solutions
New Discussion

Re: sendmail UNIX to NT

 
Shannon Petry
Honored Contributor

Re: sendmail UNIX to NT

If your not using DNS, then how can your system find the IP address of "anywhere.com" in user@anywhere.com????

The default mechanism for host resolution in HP-UX without a /etc/nsswitch.conf IS
DNS, NIS, HOSTS

As someone stated before, create a /etc/nsswitch.conf (even use SAM) to look for hosts only.

NOTE that you will only be able to send mail to hosts in /etc/hosts.

The next answer is if you are relay-ing to the NT box. In /etc/rc.config.d/mailsrvs is an entry to specify who you relay to! add the entry for your NT box, and make sure the NT box will relay for the UNIX box.

If you played with /etc/mail/sendmail.cf then copy /usr/new/newconfig/etc/mail/sendmail.cf to /etc/mail. If you use the relay entry in /etc/rc.config.d/mailsvrs then you should not have to touch sendmails config!

Regards,
Shannon
Microsoft. When do you want a virus today?
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

the version is DZ8.8.6. I am going to open a call...thanks to everyone
RD
Jordan Bean
Honored Contributor

Re: sendmail UNIX to NT

To force all email to another mail relay, set the smart host, relay for unqualified addresses (no @host part), relay for all local addresses (ie @localhost), and masquerade:

DSserver1
DR$S
DH$S
DM$m

Then restart sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

And test:

$ sendmail -bv junk
junk... deliverable: mailer relay, host server1, user junk@server1

$ sendmail -bv junk@localhost
junk@localhost... deliverable: mailer relay, host server1, user junk@server1

$ sendmail -bv junk@some.other.net
junk@some.other.net... deliverable: mailer relay, host server1, user junk@some.other.net

$ sendmail -bv root
root... deliverable: mailer relay, host server1, root@server1

You should also consider disabling the smtp port if you don't intend to allow sendmail to receive messages from the network. Find sendmail -bd in /sbin/init.d/sendmail and remove the -bd.
someone_4
Honored Contributor

Re: sendmail UNIX to NT

Try
# "Smart" relay host (may be null)
DS

then stop and start sendmail
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

The messages are being sent properly to the NT server...working on that end now...thanks to everyone...
however, if anyone has any ideas please post.

Thanks...
Richard
Pedro Sousa
Honored Contributor

Re: sendmail UNIX to NT

Hi Richard!
I'm curious, can you post the way you found to solve the problem?
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

Pedro, the mail is being sent to the NT server ok, but then disappears. What I did to get it sent correctly was to add the nsswitch file and remove the space betwen DS and server1. I am working on the NT end now...unfortunately, it isn't a priority right now - working on puting out "forest fires" right now!!
Thanks...
Richard
Richard Darling
Trusted Contributor

Re: sendmail UNIX to NT

Pedro Sousa,
Final update...the only problem I was having was I needed to make a change on the Exchange server...setup the user to receive SMTP (everyone gets their mail from a provider). So the problem wasn't on the L1000. The mistake that I made that prevented the L1000 from sending the message originally was the space between DS and server1.
The only two changes that I made that allowed sendmail to work was:
1) modifying the DS line to DSserver1
2) adding server1 to my /etc/hosts

I needed to reboot on Friday so I decided to delete the /etc/nsswitch.conf file (I had created one with the hosts: files entry)...just curious if I really needed it not running DNS on our system. After rebooting
I was still able to sendmail without any problem.

So the botom line is that your original suggestion of removing the space after the DS entry solved my problem.

Please respond so that I can give you the 10 points you deserve!!
Richard