1833016 Members
3176 Online
110048 Solutions
New Discussion

config sendmail

 
Daniel Aquere de Olivei
Regular Advisor

config sendmail

Hi,
I´m trying to send a mail when my backup routine presents problems.
Something of the type:
"mailx -s "subject text" daniel.oliveira@primesys.com.br < text_error.txt"
The following error message is showed:
"NIS map mail.aliases specified, but NIS not running
Switch map aliases: unknown member map aliases.dns"
And the message is not sent.
Please, which does anybody know the configurations that I should do? For instance, where I configure the name/IP of the mail server, etc

I use HP-UX 11.0.

Thanks.

Daniel
7 REPLIES 7
Kent Ostby
Honored Contributor

Re: config sendmail

This is a known issue which can be found in HP's document: KBRC00004772

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=KBRC00004772
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Geoff Wild
Honored Contributor

Re: config sendmail

Check out /etc/nsswitch.conf

Probably want:
hosts: dns [NOTFOUND=CONTINUE] hosts

Make sure dns servers are in /etc/resolv.conf

To configure relay server, modify the DS macro in /etc/mail/sendmail.cf to be:

DSyouremailserver.yourdomain.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.
Daniel Aquere de Olivei
Regular Advisor

Re: config sendmail

Hi,
I changed the parameters.

When I execute: "mailx -s "subject text" daniel.oliveira@primesys.com.br < text_error.txt"

The error message is showed:
"NIS map mail.aliases specified, but NIS not running"

Daniel
Kent Ostby
Honored Contributor

Re: config sendmail

Daniel -- The document I posted above addresses that issue.

Best regards,

Oz
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Steven E. Protter
Exalted Contributor

Re: config sendmail

Shalom Daniel,

Sounds like a good time to check /etc/nsswitch.conf and see if this machine is part of an NIS domain and if so if appropriate servcies are running.

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
Daniel Aquere de Olivei
Regular Advisor

Re: config sendmail

Mrs,

Is NIS really necessary? If yes, as I do to initialize it?

Tks

Daniel
Mark Greene_1
Honored Contributor

Re: config sendmail

NIS is NOT necessary.

In /etc/resolve.conf, in addition to the hosts parameter, makes sure that if these parameters are present that they only have "files" and not also "nis":

aliases: files
services: files
sendmailvars: files

You may need to restart the sendmail daemon if you changed any of these.

mark
the future will be a lot like now, only later