Operating System - HP-UX
1847177 Members
5924 Online
110263 Solutions
New Discussion

Re: Question about Sendmail

 
SOLVED
Go to solution
Carlos_17
Frequent Advisor

Question about Sendmail

Hi,

I have to send e-mails through sendmail and my mail server is Lotus Notes (I think it talks through port 25 SMTP..). I don?t have internal DNS (only external), internally the host names are resolved by /etc/hosts file.
I tried to modified the /etc/mail/sendmail.cfg file putting the DH field with the name of my Lotus Notes Server, but, when i trie to send an e-mail through sendmail..i get a timeout error..(the sendmail can?t resolve the domain..) Any ideas??

Thanks.
9 REPLIES 9
Andreas Voss
Honored Contributor

Re: Question about Sendmail

Hi,

instead of using DH try setting smart relay host with DS

Regards
Carlos_17
Frequent Advisor

Re: Question about Sendmail

Hi Andreas;

I tried the DS feature, and i also tried with the DL set to the local domain and tried with the TryNullMXList variable..

All i got was the lines as follow..

gerov:/var/spool/mqueue:> sendmail -v edvard@detran.rj.gov.br
NIS map mail.aliases specified, but NIS not running
edvard@detran.rj.gov.br... detran.rj.gov.br: Name server timeout
edvard@detran.rj.gov.br... Transient parse error -- message queued for future delivery
.

Am i missing something??
Deshpande Prashant
Honored Contributor

Re: Question about Sendmail

Hi
In my setup I was not able to send email out using lotus notes server, unless my servers were part of same domain of Lotus notes server.



Thanks.
Prashant.
Take it as it comes.
Bernie Vande Griend
Respected Contributor

Re: Question about Sendmail

We use Lotus notes as well, but we use DNS internally so the the MX records point to the correct Notes server. This works even though the Notes server is in another domain.
We therefore do not need to change the sendmail stuff on our server.
Perhaps you can set up a small DNS server on one of your HP servers that just serves the MX records and then forwards everything else to your external DNS servers.
Ye who thinks he has a lot to say, probably shouldn't.
linuxfan
Honored Contributor

Re: Question about Sendmail

Hi Carlos,


Check your /etc/nsswitch.conf and make sure NIS is not specified.

Also check your /etc/mail/service.switch (check the manpage, man service.switch)

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Sridhar Bhaskarla
Honored Contributor

Re: Question about Sendmail

I believe you just need to specify

DS macro with fully resolved name for your LOTUS notes server. Like

DSlotusnotes.yourdomain.com

This should take care of the problem. Make sure that you can be able to talk to lotusnotes.yourdomain.com, try ping and telnet 25 to this server.

Also take out NIS from your /etc/nsswitch.conf

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Carlos_17
Frequent Advisor

Re: Question about Sendmail

hi guys...

I can?t set up a restrict DNS Server because of the restrictions of the company..really the aliases field in /etc/nsswitch.conf was trying to resolve first by NIS...i modified it to resolve by Files and did the same witch the file switch in /etc/mail...
Now the message error continues the same (the only difference is that the line with the error about map aliases by nis has dissapeared..)
linuxfan
Honored Contributor
Solution

Re: Question about Sendmail

Hi Carlos,

Since you are not using DNS or NIS make sure the /etc/nsswitch.conf and /etc/mail/service.switch only contain "files".

Secondly is the server running lotus notes defined in your hosts file. Can you do a nslookup of the IP/host and see if it gets resolved? If not try adding the server's ip to your hosts file.

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Carlos_17
Frequent Advisor

Re: Question about Sendmail

Hi Ramesh;

The things now are doing fine...although i believe there is somekind of bug...i?ll explain: i had the nsswitch.conf resolving first by files and continuing after to Dns...the sendmail was ignored the first option and get directly to the DNS ...that was the problem..but he had to resolve first in /etc/hosts...when i pick up the DNS reference all the things worked...

Thank you all;