[Solved] mail configuration related query


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers [Solved] mail configuration related query
# 1  
Old 03-16-2011
[Solved] mail configuration related query

How do i configure my linux machine to send mail.

I have two server out of which one is configured to send mails. However The other is still not sending mails .I have installed sendmail rpms and modified
sendmail.mc file to include following parameter.

Code:
dnl define(`SMART_HOST', `xxx.xxx.com')dnl

where xxxx: Mail server

following rpms are already installed.

Code:
]# rpm -qa | grep mail
mailcap-2.1.23-1.fc6
procmail-3.22-17.1.0.1
fetchmail-6.3.6-1.1.el5
sendmail-cf-8.13.8-2.el5
mailx-8.1.1-44.2.2
sendmail-8.13.8-2.el5

My Distribution is.
Code:
# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Release:        5.2
Codename:       Carthage

Getting following error in logfile /var/log/maillog Getting following error in log file.
Code:
 Mar 16 10:58:12 XXX sendmail[5219]: p2G5SCgA005219: from=root, size=73, class=0, nrcpts=1, msgid=, relay=root@localhost Mar 16 10:58:13 XXX sendmail[5220]: p2G5SCCf005220: from=, size=389, class=0, nrcpts=1, msgid=, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Mar 16 10:58:13 XXX sendmail[5219]: p2G5SCgA005219: to=XXX@XXX.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30073, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p2G5SCCf005220 Message accepted for delivery) Mar 16 10:58:15 XXX sendmail[5222]: STARTTLS=client, relay=XXX.XXX.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256 Mar 16 10:58:16 XXX sendmail[5222]: p2G5SCCf005220: to=, ctladdr= (0/0), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120389, relay=XXX.XXX.com. [XXXX], dsn=5.1.8, stat=User unknown Mar 16 10:58:17 XXX sendmail[5222]: p2G5SCCf005220: p2G5SHCf005222: DSN: User unknown Mar 16 10:58:17 XXX sendmail[5222]: p2G5SHCf005222: to=, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31656, dsn=2.0.0, stat=Sent

---------- Post updated at 06:21 AM ---------- Previous update was at 12:29 AM ----------

I figured it myself as i was trying to contact internal mail server i was not having my own machine registered in dns so it was not resolving hostname from ip address. I made an entry in DNS and now i m getting the mail transferred.
More details can be found on my blog. __________________

Last edited by pinga123; 03-16-2011 at 03:52 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

Interfaces related query

I need to list the interfaces that uses FTP instead of SFTP on my applications that are on AIX servers. How do I get that list of IP addresses that connect to my applications via FTP? (2 Replies)
Discussion started by: ggayathri
2 Replies

2. UNIX for Dummies Questions & Answers

query related to grep

Hi All, The result for 'grep "cert_codes" /develop/sales/appl.srce/*.4gl' command will be saved at aa.txt grep "cert_codes" /develop/sales/appl.srce/*.4gl >aa.txt But I am not sure, whether, all result stored in .txt file in case of multi-line result. Please revert back if... (2 Replies)
Discussion started by: pbankar
2 Replies

3. UNIX for Dummies Questions & Answers

A query related to 'ls' command

I am executing the ls command to show the contents of a folder, it shows some number in front of word total as highlighted in blue color below quotes. Can anyone please share that what it is? (2 Replies)
Discussion started by: Zaib
2 Replies

4. Solaris

Query related to runlevels and milestones

Hi friends.. Please clarify my follg doubts: 1. I can easily switch from runlevel 1 to runlevel 2 or 3 by means of init 2 or init 3 commands. I can even get a gui login screen when i do an init 3 from runlevel1. 2.But suppose if I am in GUI and switched to single-user milestone by means of ... (3 Replies)
Discussion started by: saagar
3 Replies

5. Shell Programming and Scripting

datetimestamp related query!

Hi all, I have put a query in a thread but didn't get any reply. Hoping to get a reply here. I have a file in that one line resembles like below... Forwarded by Deepak on 11/15/2009 10:28 AM EST ofcourse AM can be PM also... so what i need is first i need to get only... (1 Reply)
Discussion started by: smarty86
1 Replies

6. Shell Programming and Scripting

query related to if

wht does below statement mean? if wht does dis -d option do?? TIA. (1 Reply)
Discussion started by: sainathdeg
1 Replies

7. Shell Programming and Scripting

Print related query

i Am using the below query and printing the $8 and $9 filed.. find /A/B/C/{1,3,5,7} -name "*.txt" -o -name "*.csv" -o -name "*.TXT" -o -name "*.dat" |xargs ls -ltr |awk '{print $8 ,$9}' > result.xls this give me the rsult like below.. 2008/home/ADMIN/om/1.txt 2008/home/ADMIN/om/hi.txt ... (1 Reply)
Discussion started by: sapan123
1 Replies

8. UNIX for Dummies Questions & Answers

awk related query

hi, I have to extract a column from a file and then updated that column..?? Now i can use wak for extracting it and then how to update it.. $ awk' {print $5}' input_file Can i use sed command here piping it to the output from the awk command.. (2 Replies)
Discussion started by: abhisek.says
2 Replies

9. Shell Programming and Scripting

sed related query

Hi I have a file which looks like this //string = "abcd"; //info //string = "*pqrs"; //add string = "#123"; //sub //string = "#1234567890" data = check(string) //string = "#1234567890" I want to modify this as string = "#987"; //mult data = check(string) How do i do that? (1 Reply)
Discussion started by: gopsman
1 Replies

10. Shell Programming and Scripting

Query related to #!/bin/sh

hi All Why is #!/bin/sh being used in most of the ksh scripts......? I have seen this (#!/bin/sh) being used at the start of the script Regards Suresh (2 Replies)
Discussion started by: sureshg_sampat
2 Replies
Login or Register to Ask a Question