LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2008, 11:40 PM   #1
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Rep: Reputation: 15
Thumbs up Problem with mailq


Hai,

As I am not able to send mails of bigger size from my linux box, I Added this to my sendmail.mc file

Quote:
define(`confMAX_MESSAGE_SIZE', `10000000')dnl
And then executed the command

Quote:
m4 sendmail.mc > sendmail.cf
As the output is

Quote:
sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory,
I installed m4 using yum and executed the command successfully.

Then, I tried to restarted the sendmail service.

It stopped but did not start again and the output is

Quote:
Starting sendmail: 554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
What might be the problem.
When i give the command "mailq" the output is

Quote:
No local mailer defined
QueueDirectory (Q) option must be set
Please help me to solve this problem.

Thanks,
Prakash.
 
Old 11-08-2008, 04:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by prakash.akumalla View Post
554 5.0.0 No local mailer defined
Code:
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
MAILER(procmail)dnl
Quote:
Originally Posted by prakash.akumalla View Post
554 5.0.0 QueueDirectory (Q) option must be set
This should be a default if Sendmail and all related packages are installed OK. Then it should set "O QueueDirectory=/var/spool/mqueue" when generating your config. If it doesn't then you simply haven't installed all packages cleanly and should tend to that.

Change config, regenerate it, then test. Else see your distro's Sendmail docs, Sendmail.org docs and say LHN's Configuring Linux Mail Servers?
 
Old 11-08-2008, 05:40 AM   #3
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Original Poster
Rep: Reputation: 15
Hai,

Quote:
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
MAILER(procmail)dnl
My /etc/mail/sendmail.mc consists all the variables similarly as mentioned above.

But the issue is when i give m4 sendmail.mc > sendmail.cf

The output is again,
Quote:
sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
Please help me to resolve this.

Thanks,
Prakash.
 
Old 11-08-2008, 05:46 AM   #4
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Original Poster
Rep: Reputation: 15
I have mentioned in the first post of this thread as

Quote:
I installed m4 using yum and executed the command successfully.
sorry for that. It did not install properly and resulted in the error saying that

Quote:
sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
Any help appreciated,
Prakash.
 
Old 11-08-2008, 06:00 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by prakash.akumalla View Post
sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
Missing "sendmail-cf" package?
 
Old 11-09-2008, 10:45 PM   #6
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Original Poster
Rep: Reputation: 15
Hai,

Thanks for your reply. When ever I give

Quote:
yum install sendmail
The reply is nothing to do.

Then how can i install sendmial-cf package.
Its not the case in my singly box, I found the same response in almost 10 boxes around me.

Please help me to solve this.

Thanks,
Prakash.
 
Old 11-09-2008, 11:59 PM   #7
prakash.akumalla
Member
 
Registered: Jun 2008
Location: India
Posts: 109

Original Poster
Rep: Reputation: 15
Hi,
The problem is solved. I did not install sendmial-cf package.
After installing all worked fine and now I am able to send the mails with a file as attachment almost equal to 10MB.

Thanks,
Prakash.
 
  


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
postfix mailq abiye Linux - Software 4 01-25-2007 09:42 AM
sorting Mailq matt1982 Linux - Networking 0 11-03-2006 10:36 AM
mailq clearing mnauta Linux - General 0 04-12-2005 07:34 PM
I/O Error on mailq? gigi Linux - Software 0 04-14-2004 11:31 PM
Sendmail 8.12.3 Mailq juser Linux - Newbie 0 05-22-2003 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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