AIX: mail command & server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers AIX: mail command & server
# 1  
Old 05-20-2010
AIX: changing the mail server (SMTP)

Hi,
I have to change the mail server, but I could not find the file where it is written in.

I use the following command:
Code:
</> echo krneki | mail -v -s "New report" receiver@our.comp

Server name ("skala") can be seen in a terminal output ....
Code:
receiver@our.comp ... Connecting to skala.our.comp. via esmtp...
220 skala ESMTP Sendmail AIX4.3/8.9.3/8.9.3; Wed, 19 May 2010 16:40:53 +0200

Thx
Franci

---------- Post updated 05-20-10 at 11:55 AM ---------- Previous update was 05-19-10 at 05:09 PM ----------

I'd found out where the problem was. In a file /etc/sendmail.cf the following line was "empty":
Code:
</> grep ^DS /etc/sendmail.cf
DS

I had to enter mail server name there:
Code:
DSmailsrv1

But I still don't understand where mail command had found "skala". Namly, the difference before and now is:
Code:
... Connecting to skala.our.comp. via esmtp...
... Connecting to mailsrv1 via relay...

"esmtp" ver "relay" ?!?

Last edited by frajer; 05-20-2010 at 01:13 AM.. Reason: no response
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk command with if & mail

Hi Experts, I want to check in table that if third column value is "bhu" & if it is greater than 500 it will send mail other wise there will be no mail. but as per my script mails are still coming even value is below 500 with one blank mail(without any content) with subject line"test mail". I... (12 Replies)
Discussion started by: dravi_laxmi
12 Replies

2. Shell Programming and Scripting

AIX .ksh script freezes when using the mail -s command

Hello I am trying to send an email when a .KSH script is run on an AIX Machine. This email will only include a subject line that is made up of variables from within the script, and is as follows: CURRENT_DATE=`date +%Y%m%d` TIME=`date` ADMIN="myname@domain.com" date block () { ... (4 Replies)
Discussion started by: jimbojames
4 Replies

3. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

4. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

5. AIX

How to mail the output of a command in AIX

Hi, I have mastered how to mail to Windows in AIX. Can anyone tell me how I would mail the output command df -g to an email? I want to set a job in cron to mail df -g as the contents of a mail. Any ideas? Thanks John (4 Replies)
Discussion started by: jfd7000
4 Replies

6. AIX

send mail configuration in AIX server

Hi All, How to configure sendmail service in AIX server ? Please tell me what all changes has to be made in sendmail.conf file. Please help in this issue to configure it. Thanks jack (1 Reply)
Discussion started by: jack00423
1 Replies

7. Solaris

identify the mail server for mail command

Hi , I am new to unix , i am using the mail and mailx command to send the mail .How come i will know the my mail command using which server as mail box.. Please help me .. Thanks in advance (1 Reply)
Discussion started by: julirani
1 Replies

8. AIX

NTP server with aix & wintel clients

Good morning to all, can someone advise me how to setup aix ntp server with aix & wintel clients? Secondly, I also require to enable the service to autostart on reboot, how do I configure this? Thirdly, how do I configure daily autosync between clients and server? Please advice, thanks.... (0 Replies)
Discussion started by: chongkls77
0 Replies

9. AIX

AIX & DHCP Server

Dear people, i have a problem with my DHCP Server based on an AIX. I try to evaluate my dhcpsd.log and find some errors. But now i'm missing a documentation about this errors. For example "protocol_spsm: address check failed". i would be happy if someone could tell me where to find a... (0 Replies)
Discussion started by: ektoplasma2000
0 Replies

10. Linux

Linux as FTP & Mail server

How do i setup my linux server to act as a internal ftp server. i have 30 machines who would want to log onto external ftp servers ( for hosting and stuff ). They would have to go through a ftp server on the network server to get outside to the internet? What program on linux would i use How... (6 Replies)
Discussion started by: perleo
6 Replies
Login or Register to Ask a Question