LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-24-2003, 02:42 PM   #1
unclejessie77
Member
 
Registered: Aug 2003
Posts: 39

Rep: Reputation: 15
Sendmail - No local mailer defined.


First off, I installed sendmail from scratch on my friends Redhat 8 server. When I try to start it, i get:

[root@anubis mail]# /usr/sbin/sendmail -bd -q10m
554 5.0.0 No local mailer defined


Here is the maillog after i try to start sendmail:

[root@anubis libexec]# tail /var/log/maillog
Nov 24 15:32:19 anubis sm-msp-queue[11853]: hAODWJSe011464: to=root, delay=06:59
:59, xdelay=00:00:00, mailer=relay, pri=661692, relay=[127.0.0.1] [127.0.0.1], d
sn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Nov 24 15:32:20 anubis sm-msp-queue[11853]: hAODWJSf011464: to=postmaster, delay
=06:59:55, xdelay=00:00:00, mailer=relay, pri=663272, relay=[127.0.0.1], dsn=4.0
.0, stat=Deferred: Connection refused by [127.0.0.1]
Nov 24 15:32:21 anubis sm-msp-queue[11853]: hAO9WJSe011334: to=root, delay=10:59
:56, xdelay=00:00:00, mailer=relay, pri=1021727, relay=[127.0.0.1], dsn=4.0.0, s
tat=Deferred: Connection refused by [127.0.0.1]
Nov 24 15:32:21 anubis sm-msp-queue[11853]: hAO9333N011139: to=root, ctladdr=roo
t (0/0), delay=11:29:18, xdelay=00:00:00, mailer=relay, pri=1110404, relay=[127.
0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Nov 24 15:32:22 anubis sm-msp-queue[11853]: hANDWJSe010812: to=root, delay=1+07:
00:03, xdelay=00:00:00, mailer=relay, pri=2821691, relay=[127.0.0.1], dsn=4.0.0,
stat=Deferred: Connection refused by [127.0.0.1]
Nov 24 15:32:23 anubis sm-msp-queue[11853]: hAN934dM005282: to=root, ctladdr=roo
t (0/0), delay=1+11:29:19, xdelay=00:00:00, mailer=relay, pri=3270403, relay=[12
7.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Nov 24 15:32:24 anubis sm-msp-queue[11853]: hAMDWJSe005043: to=root, delay=2+07:
00:05, xdelay=00:00:00, mailer=relay, pri=4981692, relay=[127.0.0.1], dsn=4.0.0,
stat=Deferred: Connection refused by [127.0.0.1]
Nov 24 15:32:25 anubis sm-msp-queue[11853]: hAM9342w004815: to=root, ctladdr=roo
t (0/0), delay=2+11:29:21, xdelay=00:00:00, mailer=relay, pri=5430404, relay=[12
7.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Nov 24 15:32:26 anubis sm-msp-queue[11853]: hALDWISe004556: to=root, delay=3+07:
00:08, xdelay=00:00:00, mailer=relay, pri=7141754, relay=[127.0.0.1], dsn=4.0.0,
stat=Deferred: Connection refused by [127.0.0.1]
Nov 24 15:32:27 anubis sm-msp-queue[11853]: hAL934Bi004347: to=root, ctladdr=roo
t (0/0), delay=3+11:29:23, xdelay=00:00:00, mailer=relay, pri=7590466, relay=[12
7.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]




I am somewhat new to Linux and this is my first real monster I am tackleing. Im at a stand still with this beast. Please, someone just point me in the right direction.
 
Old 01-12-2004, 12:46 AM   #2
zapperabhi
LQ Newbie
 
Registered: Jan 2004
Posts: 24

Rep: Reputation: 16
you have to define local mailer (compulsory) .....
read the 'bat book' of sendmail by bryan costalles and eric allman on how to do that properly or just try adding this line to /etc/mail/sendmail.cf file

Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=1,R=2,T=DNS/RFC822/X-Unix, A=procmail -Y -a $h -d $u

bye
 
1 members found this post helpful.
Old 01-14-2004, 06:42 AM   #3
unclejessie77
Member
 
Registered: Aug 2003
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks for replying zapperabhi but Ive always had a similar line in my config file.

Mlocal, P=/usr/bin/procmail, F=lsSDFMhPfn, S=10, R=20,
A=procmail -Y -a$H -d$u
 
Old 01-15-2004, 08:01 AM   #4
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
Try stopping the iptables service....In Red Hat, you can do that by logging in as root and command is:

service iptables stop

then restart sendmail by using:

service sendmail restart

Now try to send mails and check if u still get the same error message

Regards,

amit
 
Old 01-16-2004, 04:25 PM   #5
DrewMoen
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
The problem is with your /etc/mail/sendmail.mc file. You do not have a line like

MAILER('smtp')
 
Old 11-05-2009, 07:34 AM   #6
Mapped
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Try to recompile the config file using;
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

And restart sendmail afterward.

/etc/init.d/sendmail restart
 
Old 01-15-2010, 05:56 AM   #7
tonj
Member
 
Registered: Sep 2008
Posts: 546

Rep: Reputation: 37
hey mapped thanks a million for this tip. I messed up my sendmail.mc file (panic panic) and this command you gave cleared it up.
 
Old 06-13-2012, 07:50 AM   #8
YEJIANSHENG123
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up

Thank you mapped,your tip works!
 
  


Reply



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
Sendmail problem () |No local mailer defined muusle Slackware 4 11-18-2005 12:59 PM
sendmail local no relay kcpant Red Hat 1 11-27-2004 09:56 AM
sendmail local mailer problem kafnir Linux - Networking 1 06-28-2004 06:23 PM
queudirectory & local mailer define kafnir Linux - Networking 0 06-24-2004 05:35 PM
Local mail only in Sendmail jhildebrand Linux - Software 0 06-13-2003 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:57 PM.

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
Open Source Consulting | Domain Registration