LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-12-2006, 08:00 PM   #1
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
sendmail: "No local mailer defined" ?


I've followed the first half of the second half of SeigX's instructions ( http://www.linuxquestions.org/questi...+10.2+sendmail ).

I did not follow the Server-side AUTH because I only need to send mail from PHP directly to my ISP's SMTP server, which does not require authentication. I removed the "FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl" line (or, rather, didn't add it). Everything recompiled OK, it seems.

Code:
dnl# Uncomment the line below to send outgoing mail through an external server:
define(`SMART_HOST',`[smtp8.sympatico.ca]')dnl
...
dnl# Also accept mail for localhost.localdomain:
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(procmail)dnl
MAILER(local)dnl
MAILER(smtp)dnl
Code:
root@arjuna:/usr/share/sendmail/cf# /etc/rc.d/rc.sendmail restart
Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -bd -q25m -X /tmp/sendtmp
Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
No local mailer defined
QueueDirectory (Q) option must be set
Code:
Feb 12 20:50:27 arjuna sm-mta[21476]: gethostbyaddr(10.0.0.1) failed: 1
Feb 12 20:50:27 arjuna sm-mta[21476]: gethostbyaddr(64.231.0.45) failed: 1
Feb 12 20:50:27 arjuna sm-mta[21477]: starting daemon (8.13.4): SMTP+queueing@00:25:00
Feb 12 20:50:27 arjuna sm-msp-queue[21478]: gethostbyaddr(10.0.0.1) failed: 1
Feb 12 20:50:27 arjuna sm-msp-queue[21478]: gethostbyaddr(64.231.0.45) failed: 1
Feb 12 20:50:27 arjuna sm-msp-queue[21478]: NOQUEUE: SYSERR(root): No local mailer defined
Feb 12 20:50:27 arjuna sm-msp-queue[21478]: NOQUEUE: SYSERR(root): QueueDirectory (Q) option must be set
I've looked for answers all over the place, but given the wonderful simplicity of sendmail, nothing I've found has answered my problem.

Do I need to set my hostname somewhere ? Do I need to set a from user other than nobody@arjuna ? Any thoughts ?
 
Old 02-12-2006, 08:27 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you also have in your sendmail.mc file something like the following?
Code:
FEATURE(`local_procmail',`/usr/bin/procmail')dnl
This will use procmail to process your local mail. There's some more info at http://www.sendmail.org/m4/features.html#local_procmail
I've also used the following on one of my boxes:
Code:
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl

Last edited by gilead; 02-12-2006 at 08:32 PM.
 
Old 02-12-2006, 08:54 PM   #3
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
Thanks for the quick reply ! This has really gotten me down...it's the last major hurdle on my new server upgrade.

In fact, I do:
Code:
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
PS This is /usr/share/sendmail/cf/cf/sendmail-slackware.mc not any of the other -sasld or -tls appended ones. Should I have used one of those instead ?
 
Old 02-12-2006, 10:09 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It sounds like you have the right setting in the right file. If you run the following does it produce output?
Code:
grep '^Mlocal' /etc/mail/sendmail.cf
I get the following back:
Code:
Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
If your output is similar, the problem may be related to the failed gethostbyaddr calls. I have nothing like those in my logs.
 
Old 02-12-2006, 10:18 PM   #5
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
Code:
root@arjuna:/usr/share/sendmail/cf# grep '^Mlocal' /etc/mail/sendmail.cf
Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
Yessir, identical.

I seem to remember having a problem on my last server related to the gethostbyaddress() but I can't for the life of me remember what. Do I need to specify my hostname somewhere (like that suspicious "localhost.localdomain" line)? I do have a FQDN top-level .com, this host is called arjuna, dynamic ip if that matters.
 
Old 02-12-2006, 10:28 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you have the domain info in /etc/hosts (or /etc/mail/local-host-names)? That should take care of being able to resolve the domain.
 
Old 03-13-2006, 08:48 AM   #7
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
I never noticed this reply! It's still not working, and any more help would be appreciated.

Yes, I have /etc/hosts configured to recognize my TLDs as 127.0.0.1. Maybe there's a problem because I have more than one ? Should I also put in my SMTP server (the one that's used as smart host, not mine)?

PS I still don't understand why "No local mailer defined" or why my queue directory isn't set when it is set to /tmp/sendtmp.

Code:
root@arjuna:/home/msanford# /etc/rc.d/rc.sendmail start
Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -bd -q25m -X /tmp/sendtmp
Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
No local mailer defined
QueueDirectory (Q) option must be set

Last edited by michaelsanford; 03-13-2006 at 08:53 AM.
 
Old 03-13-2006, 09:33 AM   #8
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
Ok, I solved one of the problems:
Code:
root@arjuna:/var/spool/mqueue# /etc/rc.d/rc.sendmail restart
Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -bd -q25m -X /tmp/sendtmp
Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-msp-queue -O QueueDirectory=/var/spool/mqueue -Ac -q25m
No local mailer defined
And yes, I actually have procmail installed (just thought of checking).
 
Old 04-04-2006, 07:33 PM   #9
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
Sorry to bump this, but I still haven't solved the issue of "No local mailer defined" so my sendmail remains impotent.

Any ideas?

PS I've discovered that there is another directive that's not mentioned in the tutorial cited above: define(LOCAL_MAILER_DEF, DELIVER)dnl. DELIVER seems to be what most people use, but I have no such binary installed (nor is it available on any of the slapt-get mirrors I use). After hours of Googling all I get is 5 year old articles saying "LOCAL_MAILER_DEF has to be defined, usually as linux.mailers that points to a file containing something like
Mlocal, P=/usr/bin/deliver, F=SlsmFDMP, S=10, R=25/10, A=deliver $u
Mprog, P=/bin/sh, F=lsDFMeuP, S=10, A=sh -c $u"

This is nonsensical to me. I'm obviously not editing something correctly, but I can't for the life of me figure out what it is.

Last edited by michaelsanford; 04-04-2006 at 08:17 PM.
 
Old 04-04-2006, 11:32 PM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Maybe this could help you. http://www.linuxquestions.org/questi...d.php?t=423897
 
  


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
Sendmail "Permission denied" for local users kassemi Linux - Software 5 11-14-2013 03:47 AM
Sendmail - No local mailer defined. unclejessie77 Linux - Software 7 06-13-2012 07:50 AM
Sendmail problem () |No local mailer defined muusle Slackware 4 11-18-2005 12:59 PM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM
sendmail local mailer problem kafnir Linux - Networking 1 06-28-2004 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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