mail host name on AIX box.


 
Thread Tools Search this Thread
Special Forums IP Networking mail host name on AIX box.
# 1  
Old 01-06-2004
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.
# 2  
Old 01-06-2004
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 !
# 3  
Old 01-06-2004
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?
# 4  
Old 01-07-2004
Quote:
Originally posted by Shaz
Or any other solution?
Yes, ask your sysadmin... :-)

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...
# 5  
Old 01-07-2004
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...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX mail box

Currrently I am not able to send/receive any emails to email id. I believe my mail box is full in server. could you please let me kknow to clear the emails in the unix server. (2 Replies)
Discussion started by: ramkumar15
2 Replies

2. UNIX for Dummies Questions & Answers

No route to host - mail error

A linux box is supposed to emailing the results of backups to the windows exchange server, but nothing arrives. it never has, as the muppet who set up the Windows domain knew nothing about linux. I know only slightly more than that... pretty sure sendmail is the daemon running to handle mail. it... (0 Replies)
Discussion started by: Noewon
0 Replies

3. Shell Programming and Scripting

Dynamically using mail host

Hi, Can we dynamically using mail host to send mail in UNIX script if it is not configured on UNIX box? Thanks, Paventhan (6 Replies)
Discussion started by: paventhan
6 Replies

4. UNIX for Advanced & Expert Users

Sendmail help for nobody mail box

Hi there all, I got a small tiny problem of not remambering how this worked. I get when I mail to a non existing mailbox I get a return failer to nobody@domain.bla wich will end up in root@domain.bla What I want is to get it to /dev/NULL so I dont get a messege when I mailed to a non existing... (0 Replies)
Discussion started by: draco
0 Replies

5. Shell Programming and Scripting

Unix Mail Box

Hi Friends, I'm new to Unix. I have a fbackup step like /bin/nice /etc/fbackup -f /dev/rmt/0m -i / -I /opt/monitrol/tmp/Index.full 2 > /var/adm/error.log the errors for this step is redirected to a log file. How can I make to trigger mails when error occurs. Please suggest. Thanks in... (4 Replies)
Discussion started by: avik.nandi
4 Replies

6. UNIX for Advanced & Expert Users

mail command on sco box

Hello, Can anyone tell me why the command below will not work on a SCO box, but does fine on aix, suse boxes. Thanks. echo "test" | mail -s "Test" test@test.com Course the email address I just faked out for sample purpose. I see from the it gives the following error below. I also changed... (0 Replies)
Discussion started by: benefactr
0 Replies

7. Shell Programming and Scripting

Mail from unix box

I am executing the below script from unix box If row count is zero the mail should not set to the client The problem is, if row count is zero the mail is going to the client (what is wrong in the script) SET HEAD OFF FEED OFF PAGES 0 Select count(*) as change_count from... (9 Replies)
Discussion started by: pmsuper
9 Replies

8. UNIX for Dummies Questions & Answers

difference between AIX box and Sun Solaris box

Hi, I need a clarification. Is there any difference between AIX box and Sun Solaris box? The bzip command with -c option works in AIX box and the same does not work in Sun Solaris box. Can anyone please explain if there is an implementation difference in both these boxes for the shell... (1 Reply)
Discussion started by: nisha4680
1 Replies

9. AIX

moving AIX ver 4.2.1 to another AIX box

i want to move my AIX os ver 4.2.1 to a new version IBM system. how can i acheive this. (1 Reply)
Discussion started by: gmonix
1 Replies
Login or Register to Ask a Question