1847207 Members
3368 Online
110263 Solutions
New Discussion

Sendmail help

 
Roger Oliver
New Member

Sendmail help

Okay I'm new to HP-UX and I'm only used to Sendmail on Linux.
This is the error that I'm getting. The DNS is set up fine however I can't send mail to the server. And I'm getting this error
"554 Switch map aliases: unknown member map aliases.dns"

I'm not using NIS I've disabled it.
Thanks,
Roger
I drank what?
6 REPLIES 6
Jitendra_1
Trusted Contributor

Re: Sendmail help

check your /etc/nsswitch.conf file . Remove the references to NIS if any . Then restart sendmail.
Learning is the Key!
Roger Oliver
New Member

Re: Sendmail help

Thank, I got that part done. I edited the nsswitch.conf file and removed all NIS portions. However it still won't get mail. When my I look at my mailq dir on my linux box when I try to send e-mail to the hp-ux system I get this error.
" reply: read error from epiphanynetworks.net) "
The /var/adm/syslog/mail.log file no longer gives the error for the "Switch map aliases: unknown member map aliases.dns" (Thank you for that) but now it seems just to not want to accept the mail. Any ideas would be great. Thank you for all the help.
I drank what?
Shannon Petry
Honored Contributor

Re: Sendmail help

The error really depends on your purpose for sendmail, and how you want it working in your network.

Quite frankly, saying your familiar with sendmail on linux to me means you can only work with linuxconf, and have no sendmail experience. After all Sendmail is Sendmail whether is running on SCO, HP-UX, SunOS, IRIX, AIX, Linux, or VMS for that matter.

Sendmail is controlled by sendmail.cf. O'Reilly and Associates publishes an awsome sendmail book, which is a must have for anyone who needs to work with sendmail.

Till then, dig through the online docs at sendmail.org. They have tons of example configurations in both the download and on-line that may get you going.

Depending on your skill level, you may want to contact a consultant. I for one charge more money to re-configure and cleanup sendmail than to set it up right the first time. It just takes much less time!


Regards,
Shannon
Microsoft. When do you want a virus today?
Dave Kelly_1
Respected Contributor

Re: Sendmail help

You should check that the sendmail daemon is running on your HPUX box.

From your Linux box:

telnet hostname 25

If you get connection refused, this means that it's likely nothing's listening on that port.

If you get the sendmail banner as a response then enter the word QUIT and hit return to exit.

If you get connection refused, you need to start the daemon. Run the command

/sbin/init.d/sendmail start

and check use ps -ef to check that it's running.

You should also make sure that /etc/rc.config.d/mailservs has the line

SENDMAIL_SERVER=1

This will make sure that the daemon is started every time the HPUX server boots up.

If you get the sendmail banner as a response from your telnet command, you need to determine why it's not receiving mail.

On your Linux box, run the command

sendmail -v user@hostname

(where hostname is the name of your HPUX box)

and enter a period (.) followed by return.

This will show how sendmail is attempting to deliver the message. You should see that a connection is being made to the HPUX box and the message delivered.

If this is the case, you can then check the /var/adm/syslog/mail.log file on the HPUX box to see where the message went.

If the message is not even being delivered to the HPUX box, the sendmail -v command will detail the error. Post that to this thread and we can follow it up from there.

Angelo Collazo
Advisor

Re: Sendmail help

Roger, Here a step by step document I put together on how to setup sendmail for OUTBOUND mail, Hope it helps. See attachment:
Roger Oliver
New Member

Re: Sendmail help

Great!
Thank you all for your help. I was working with the /etc/mail/sendmail.* files and trying to work on a box that someone else setup is not always easy. Thank you again for all your help and I'm sure that I'll be asking again.

Good Journey,
Roger
I drank what?