[Solved] Sendmail again

Hello experts!
Can someone help me to configure sendmail v8.9.3 in HP-UX 10.2?
I would like to be able to send messages using an external SMTP server. I have configured the DNS - I can ping my smtp server.
I dont know how to configure sendmail.
In my system there is no file "sendmail.mc"...
Help!

I have no HP to look at from home... I would say you should have a /etc/mail directory containing a sendmail.cnf or .conf file...
Look around this forum for I answered not so long ago the similar question

HP-UX 10.2 was about 15 years ago.
Please post:

ls -la /etc/mail

The main configuration file should be /etc/mail/sendmail.cf and you will be looking for the mail relay server line. Make sure that your DNS provides accurate reverse DNS lookup for the name of the SMTP relay mail server.

Thanks for the reply.
I have read several articles about the configuration of sendmail, and I used this on my own PC with Linux system and it works.
Unfortunately for HP-UX does not work ...
I added this line in / etc / mail / sendmail.cf:

# "Smart" relay host (may be null)
DS mail.xxx.yyy.zz    

If I do "ping mail.xxx.yyy.zz" I get smtp server ip number.
Well I think.
How to tell the user and password?
I also tried with mailx ...
On a Fedora system works perfectly. HP-UX runs a little worse (read does not work).
Is it possible to configure mailx on HP-UX 10.20 to use the external smtp server? Is it for this you need sendmail running?
How to make mailx to read configuration file ".mailrc"?
Best Regards.

So you configured DS line in /etc/mail/sendmail.cf...
When you say it doesnt work, what do you mean? Is it that the mail is not sent?
What external mail server are you trying to reach, an exchange server?

Check /etc/mail/sendmail.cw . Should contain two active lines referring to your local computer:

localhost
servername.domain.com

Check that the contents of service.switch match the way your normally look up host names.

Look at /usr/adm/syslog/syslog.log and /usr/adm/syslog/mail.log for any errors related to mail , then post the error messages intact here.

I checked the logs.
SMTP server rejects the connection because it requires authorization.

In Linux, I had something like this in the sendmail.mc file:
define (`confAUTH_MECHANISMS ',` EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN') dnl
FEATURE (`authinfo ',` hash / etc / mail / auth / client-info') dnl
How to modify the config for HP-UX?
Best regards.

In the commercial world we would expect there to be a SMTP relay server between the internal servers and your primary mail server. The primary mail server then has a means to send mail to your ISP.

Is this HP-UX box effectively plugged directly into the Internet and trying to connect directly to your ISP?

HP-UX box is attached to a local network.
Through a local network I have access to the SMTP server. SMTP server sends mail to other networks. SMTP server requires authentication and I can not change that. I have a username and password but do not know how to enter them into sendmail config. I want to be able to send messages from the console using a script. As mentioned earlier, I tried to configure mailx but without success.
Best regards.

Sorry, I don't know how to configure sendmail to do this. This does not necessarily mean that it is impossible, but it will need a specialist with a long memory because of the vintage of that HP-UX (support ended in 2003).

Not even sure whether the sendmail configuration build directories were shipped with HP-UX 10.20 .

Ok, thank you for your time.
I will try to find another solution.
Maybe I can compile the Heirloom mailx or something similar.
I need to install the necessary software, because at this point I can not compile anything. (gcc, etc.)
Best Regards.

Sorry, but I have absolutely no idea what this post means in this context. Others may know.

From http://heirloom.sourceforge.net/mailx.html:

"Supports SMTP to send messages directly to a remote server.(...) SMTP AUTH is also supported."

Just exactly what I needed.
Best Regards.

1 Like