mail host name on AIX box.

Hi,
I was wondering if any body out there can tell me how can I find out what is the name of the mail host on the AIX box that I am working on?

Is there any command to bring up the configuration for the mail server or mail host?

Thanks in advance.

Hi,

There's no "magic" command to know what mail server is a machine using... that depends on your software... if you're running sendmail, check /etc/sendmail.cf and see what's in front of the DS ( relay host ) setting...
Must be something like this...
# "Smart" relay host (may be null)
DShere_your_mailhost

But keep in mind that there're other ways to define a "mailhost", and different mail server software...

Good luck !

Thanks jsilva... As you mentioned it was null in front of the DS...
Do you know any other config (.cf) file that I can look into?...
Or any other solution?

Yes, ask your sysadmin... :slight_smile:

Ok, you have sendmail installed... try this:
echo "hello"|sendmail -v someone@address

sendmail must be in the path for this to work, otherwise, complete with the full path, for example:
echo "hello"|/usr/lib/sendmail -v someone@address

it will show you something like this:
someone@address... Connecting to [some_mailhost] via relay...

That some_mailhost, may or not be what you want...

I did what you siad and I got it! but mail host name comes after "ELHO"... "Connecting to" will show the target mail server.

Connecting to mail.xxx.com. via esmtp...
EHLO xxx.yyy.zzz

I appreciate your help jsilva...