LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2004, 03:46 PM   #1
zardozcs
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
trouble getting mail to send locally


Hello,

I'm tighening security on my RedHat 9 box and my reference says that
you don't have to have sendmail listening on port 25 to send mail
to a local user. So I have DAEMON=no QUEUE=1m in /etc/sysconfig/sendmail and I have stopped iptables for the moment.
This box is not connected to any network yet as it's not yet secure.

When I try to send mail to root with
echo test | mail -s test root

the /var/log/mailllog says:
sendmail .... stat=Deferred: Connection refused by [127.0.0.1]

then every minute when the sendmail queue tries to flush
it says

sm-msp-queue ... stat=Deferred: Connection refused by [127.0.0.1]

How do I configure it to deliver the mail to root's account instead
of trying to send it away somewhere else?

I've been using Linux for a few years now, but am not very
experienced in system administration.

Thanks

Zardoz, cs
 
Old 01-30-2004, 02:32 AM   #2
zardozcs
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Question discoveries so far

I've discovered where the config files are and that I need to install
sendmail-cf package in order to use m4 to update the .cf's from the
.mc files.

Still not sure what config if any needs changing. Though the
sendmail/SECURITY docs indicate that there's some sendmail
command line options which I might need instead of the ones
currently in my /etc/init.d/sendmail script.

Will give that a try tonight after work.
 
Old 01-30-2004, 07:15 AM   #3
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

Rep: Reputation: 32
hopefully not throwing more confusion

Zard,

Hopefully, I'm not confusing you further with these recommendations...

For starters, why not start sendmail or another MTA and see if it can accept the connection and route the mail to the right user's spool file. If success, then shut it down and test without the daemon. Also, if you look at /var/spool/mail do you see files for the user you're sending them to? Tail the file and see if your mail is appended.

good luck,

di11rod
 
Old 01-30-2004, 07:55 AM   #4
GraemeK
Member
 
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
i had this problem. in your sendmail.mc file you need to make sure that sendmail is listening on IP 127.0.0.1 mine wasnt and so refused connections!

G
 
Old 01-30-2004, 03:41 PM   #5
zardozcs
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Di11rod, there is no problem if I run sendmail with DAEMON=yes, the
mail does get to root's account.

with sendmail down, sending a mail puts two files in
/var/spool/clientmqueue

when I fire up sendmail DAEMON=yes
the files dissappear from /var/spool/clientmqueue
and /var/spool/mail/root is created

if I repeat the process with DAEMON=no
the files remain in /var/spool/clientmqueue

GraemeK
my sendmail.mc file has this in it:
DAEMON_OPTIONS('Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

and my submit.mc file has this:
FEATURE('msp', '[127.0.0.1]')dnl

is that what you were talking about?

I read in the SECURITY docs that I need to
have sendmail run with

sendmail -L sm-msp-queue -Ac -q15m
and that is what happens in the /etc/init.d/sendmail script.

Thanks for your help, still puzzling away.

Cheers, Zardoz
 
Old 02-04-2004, 02:01 PM   #6
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

Rep: Reputation: 32
I think this is over my head. Sorry.

di11rod
 
  


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
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 12:16 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 08:31 PM
sendmail won't send locally! Red Squirrel Linux - Software 5 04-14-2004 05:45 PM
how do I send and recieve mails locally? hpnadig Linux - Networking 10 01-04-2004 06:23 AM
Run a mail server with spam protection locally citog Linux - Software 0 08-06-2003 11:24 AM


All times are GMT -5. The time now is 12:54 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