LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail - No local mailer defined. (http://www.linuxquestions.org/questions/linux-software-2/sendmail-no-local-mailer-defined-119535/)

unclejessie77 11-24-2003 02:42 PM

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.

zapperabhi 01-12-2004 12:46 AM

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

unclejessie77 01-14-2004 06:42 AM

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

coolamit78 01-15-2004 08:01 AM

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

DrewMoen 01-16-2004 04:25 PM

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

MAILER('smtp')

Mapped 11-05-2009 07:34 AM

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

tonj 01-15-2010 05:56 AM

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.

YEJIANSHENG123 06-13-2012 07:50 AM

Thank you mapped,your tip works!


All times are GMT -5. The time now is 01:53 PM.