Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-12-2006, 08:00 PM
|
#1
|
Member
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468
Rep:
|
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 ?
|
|
|
02-12-2006, 08:27 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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.
|
|
|
02-12-2006, 08:54 PM
|
#3
|
Member
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468
Original Poster
Rep:
|
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 ?
|
|
|
02-12-2006, 10:09 PM
|
#4
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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.
|
|
|
02-12-2006, 10:18 PM
|
#5
|
Member
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468
Original Poster
Rep:
|
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.
|
|
|
02-12-2006, 10:28 PM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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.
|
|
|
03-13-2006, 08:48 AM
|
#7
|
Member
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468
Original Poster
Rep:
|
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.
|
|
|
03-13-2006, 09:33 AM
|
#8
|
Member
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468
Original Poster
Rep:
|
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).
|
|
|
04-04-2006, 07:33 PM
|
#9
|
Member
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468
Original Poster
Rep:
|
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.
|
|
|
04-04-2006, 11:32 PM
|
#10
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
|
|
|
All times are GMT -5. The time now is 02:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|