Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 0
trouble getting mail to send locally


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 []

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

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

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.


Zardoz, cs
Old 01-30-2004, 01:32 AM   #2
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, 06:15 AM   #3
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

Rep: Reputation: 32
hopefully not throwing more confusion


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,

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

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

Old 01-30-2004, 02:41 PM   #5
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

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

my file has this in it:
DAEMON_OPTIONS('Port=smtp,Addr=, Name=MTA')dnl

and my file has this:
FEATURE('msp', '[]')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, 01:01 PM   #6
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

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



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

All times are GMT -5. The time now is 09:52 PM.

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