LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2011, 01:28 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
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

Last edited by pinga123; 03-16-2011 at 01:30 AM.
 
Old 03-16-2011, 02:20 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

You should take a look at mail logs (/var/log/maillog) to see why it fails

Regards
 
Old 03-16-2011, 02:47 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by bathory View Post
Hi,

You should take a look at mail logs (/var/log/maillog) to see why it fails

Regards
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=<201103160528.p2G5SCgA005219@XXX.XXX.com>, relay=root@localhost
Mar 16 10:58:13 XXX sendmail[5220]: p2G5SCCf005220: from=<root@XXX.i-XXX.com>, size=389, class=0, nrcpts=1, msgid=<201103160528.p2G5SCgA005219@XXX.XXX.com>, 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=<XXX.XXX@XXX.com>, ctladdr=<root@XXX.XXX.com> (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=<root@XXX.XXX.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31656, dsn=2.0.0, stat=Sent
 
Old 03-16-2011, 04:07 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Well, I don't see any error, apart from the "User unknown" response you get.
 
Old 03-16-2011, 07:20 AM   #5
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FSCK related query tuxianD Solaris / OpenSolaris 1 02-28-2011 06:23 AM
Xterm related query mr.blacklisted Linux - Server 1 11-17-2010 10:36 AM
A Query related to Git? your_shadow03 Linux - Newbie 10 04-24-2009 12:35 AM
Query related to sudo? your_shadow03 Linux - Newbie 2 04-22-2009 01:21 AM
shell related query !!!!!!!!!!! iacharyya Linux - General 10 06-09-2008 07:39 PM


All times are GMT -5. The time now is 04:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration