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 08-19-2003, 12:00 AM   #1
rspurlock
LQ Newbie
 
Registered: Jul 2003
Location: Knoxville, TN
Posts: 13

Rep: Reputation: 0
Help w/ Sendmail on RH9


I've scoured the Internet for answers but none presented have helped.

I've installed a vanilla version of Red Hat Linux 9 plus security updates. When starting Sendmail i get the following:

No local mailer defined
QueueDirectory (Q) option must be set

This happens no matter what I do. The sendmail.cf file exists in /etc/mail and I can make changes to the sendmail.mc file and create new sendmail.cf files until I bleed. No changes I've seen so far have worked. It should be running off the line.

It should be set up to only send out mail from the localhost only. It's a hosting box so no incoming mail is allowed...yet so all incoming should be blocked by the ipchains.

If anyone has run into this issue, please let me know. I have 3 boxes now that have the same problem and have no clue why it's happening. Here's the basic sendmail.mc file I'm using.

divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTRUSTED_USER', `smmsp')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(smtp)dnl
MAILER(local)dnl


Thanks!

Rob
 
Old 08-19-2003, 07:09 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Check the value of the entry

O QueueDirectory

in /etc/mail/sendmail.cf

It should be something like /var/spool/mqueue

Also check the rights on the queue directory /var/spool/mqueue

An afterthought ... hope your /etc/mail/sendmail.cf is not empty.

Last edited by ppuru; 08-19-2003 at 07:16 AM.
 
Old 08-19-2003, 08:07 AM   #3
rspurlock
LQ Newbie
 
Registered: Jul 2003
Location: Knoxville, TN
Posts: 13

Original Poster
Rep: Reputation: 0
QueueDirectory

Thanks for the fast reply!

Here's what the sendmail.cf says about the queuedirectory:

# queue directory
O QueueDirectory=/var/spool/mqueue

It does exist. I've tried everything i can think of. I've redone the sendmail.cf file several times trying to use procmail, local, smtp and it always creates a sendmail.cf file so it does exist (which is a good thing).

Thanks!

Ro
 
Old 08-19-2003, 08:27 AM   #4
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Is procmail on your system?

Cheers--
Charles
 
Old 08-19-2003, 08:59 AM   #5
rspurlock
LQ Newbie
 
Registered: Jul 2003
Location: Knoxville, TN
Posts: 13

Original Poster
Rep: Reputation: 0
This is the only way I know to check for procmail. The rpm was installed as part of the install.

[root@ns-rhweb root]# rpm -q procmail
procmail-3.22-9


Maybe it's not really there?

I downloaded the rpm myself and forced in install on top of that. Am I missing a configuration problem?

Thanks!
 
Old 08-19-2003, 09:18 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
What are the permissions on /var/spool/mqueue. Is is something like

drwxr-xr-x 2 root mail 4096 Aug 19 12:09 mqueue
 
Old 08-19-2003, 09:21 AM   #7
rspurlock
LQ Newbie
 
Registered: Jul 2003
Location: Knoxville, TN
Posts: 13

Original Poster
Rep: Reputation: 0
The permissions are as follows

drwx------ 2 root mail 4096 Mar 26 09:56 mqueue
 
Old 08-19-2003, 10:43 AM   #8
rspurlock
LQ Newbie
 
Registered: Jul 2003
Location: Knoxville, TN
Posts: 13

Original Poster
Rep: Reputation: 0
More info

When I run the command sendmail -v I get the following also:

[root@ns-rhweb mail]# sendmail -v
Warning: .cf file is out of date: sendmail 8.12.8 supports version 10, .cf file is version 0
No local mailer defined
QueueDirectory (Q) option must be set

Anyone? I'm beyond stumped.
 
Old 08-19-2003, 12:14 PM   #9
rspurlock
LQ Newbie
 
Registered: Jul 2003
Location: Knoxville, TN
Posts: 13

Original Poster
Rep: Reputation: 0
Talking FIXED!

Thanks everyone for your help. The solution was quite simple and thanks to a nice man at sendmail he found it in short order. The problem was the submit.cf file was zero. When I updated the RPM for a security fix, it moved the submit.cf. After renaming the .rpmnew version and reloading it works like a charm.

Thanks!!
 
Old 09-30-2003, 03:22 PM   #10
platinumriver
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
That's it!

Thanks for the post!! I had the exact same problem. Thanks for posting the solution.
 
Old 11-19-2003, 06:29 AM   #11
unclejessie77
Member
 
Registered: Aug 2003
Posts: 39

Rep: Reputation: 15
I had the same problem.
This is what I had to add to my sendmail.mc file.

# queue directory
OQ/var/spool/mqueue
O QueueDirectory=/var/spool/mqueue

I found that I need both lines to satisfy sendmail.
Also, are you using the m4 processor to update your sendmail.cf file after you make changes to sendmail.mc?

[root@anubis mail]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
 
Old 12-09-2003, 11:11 PM   #12
DropHit
Member
 
Registered: Oct 2003
Posts: 95

Rep: Reputation: 15
OK what???

What was the fix for renaming? I tried that and it just zapped the file made it zero again and friggin still wont work!!!@!
 
  


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
RH9 Sendmail: connection refused DaddyBad Linux - Newbie 9 08-30-2010 08:35 PM
Mailscanner & sendmail in RH9.0 teanine Linux - Software 0 06-03-2004 02:10 AM
sendmail for RH9 Petevs Red Hat 0 01-29-2004 04:28 PM
rh9 bootup - sendmail startup nigham Linux - Software 3 12-07-2003 11:47 AM
RH9 Trying to set up sendmail @ Home... prix92 Linux - Newbie 2 07-20-2003 07:20 PM

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

All times are GMT -5. The time now is 10:23 AM.

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