LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-05-2012, 04:26 PM   #1
copperred
LQ Newbie
 
Registered: Nov 2012
Posts: 6

Rep: Reputation: Disabled
sendmail "cannot open /usr/share/sendmail-cf/feature/.m4" no such file etc


I have installed sendmail and sendmail-cf but when I go to compile my submit.mc it tries to go to a folder that doesn't exist. The cf.m4 file is in /usr/share/sendmail-cf/m4 but it wants to find it under the /usr/share/sendmail-cf/feature location. /usr/share/sendmail-cf/feature has no subfolders. I've uninstalled and reinstalled sendmail and sendmail-cf (using yum install so I get the dependencies) and no subfolder ever materializes under feature. I'm sure it's something incredibly basic that I'm overlooking. m4 is installed.

I've perused the other threads relating to sendmail and I'm still stumped.

rpm -qa |grep -i sendmail produces:
sendmail-8.14.4-8.el6.x86_64
sendmail-cf-8.14.4-8.el6.noarch

I'm using RHEL 6.3

The base submit.mc file looks as follows, with the domain information removed.

divert(-1)
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`linux setup')dnl
MASQUERADE_AS(myhostname.mydomainname)dnl
FEATURE(allmasquerade)dnl
FEATURE(masquerade_envelope)dnl
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confPID_FILE', `/var/run/sm-client.pid')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`msp', `smtprelay.mydomainname')dnl

Then the compile instructions:
m4 /etc/mail/submit.mc > /etc/mail/submit.cf
service sendmail restart


Any help you can provide would be greatly appreciated.
 
Old 11-06-2012, 09:45 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
Must be a configuration error as: "cannot open /usr/share/sendmail-cf/feature/.m4 no such file" is missing the actual m4 file name?..
 
Old 11-06-2012, 03:31 PM   #3
copperred
LQ Newbie
 
Registered: Nov 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Must be a configuration error as: "cannot open /usr/share/sendmail-cf/feature/.m4 no such file" is missing the actual m4 file name?..
I see the configuration issue as possible, I just don't see how to fix it. The feature folder doesn't contain any folders but plenty of .m4 files. I should also note the full error, which I omitted is: cannot open '/usr/share/sendmail-cf/feature/.m4' no such file": No such file or directory.
 
Old 11-06-2012, 04:11 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe if you debug it may show clues. This should process but not overwrite:
Code:
m4 -E --debug -o /tmp/submit.$$ /etc/mail/submit.mc >/dev/null
grep 'read.from' /tmp/submit.$$
halt on fatal error and show which files m4 reads from.
 
1 members found this post helpful.
Old 11-06-2012, 04:24 PM   #5
copperred
LQ Newbie
 
Registered: Nov 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
Maybe if you debug it may show clues. This should process but not overwrite:
Code:
m4 -E --debug -o /tmp/submit.$$ /etc/mail/submit.mc >/dev/null
grep 'read.from' /tmp/submit.$$
halt on fatal error and show which files m4 reads from.
Hmm. I went through it all again and uninstalled both sendmail rpms and installed the latest kernel update and now it will compile the file. I'm stumped but happy that it works and for the assistance. It does say, after i compile it, that the service (sendmail) is dead but subsys locked but I can keep working on that.

Last edited by copperred; 11-06-2012 at 04:29 PM.
 
Old 11-11-2012, 08:20 PM   #6
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 copperred View Post
Hmm. I went through it all again and uninstalled both sendmail rpms and installed the latest kernel update and now it will compile the file.
That's not the preferred of troubleshooting things but OK, if it works for you.


Quote:
Originally Posted by copperred View Post
the service (sendmail) is dead but subsys locked
Check /var/log/{messages,maillog} for related errors, check if process is running ('pgrep -lf sendmail'), remove PID file from /.var/run, retry.
 
  


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
Sendmail M4 configuration base directory /usr/share/sendmail-cf was not found eliassal Linux - Server 15 11-04-2010 01:09 AM
VLC error: VLC could not open the file "/usr/share/vlc/skins2/text.bmp". brjoon1021 Ubuntu 1 01-14-2009 10:48 PM
Reboot and "/usr/sbin/mysqld: Can't open file: 'my_table.MYI'" message guarriman Linux - Software 4 08-08-2006 03:35 PM
Sendmail settings. Will sendmail always answer "helo". (and tracing blocked port 25) Bjorkli Linux - Networking 5 05-24-2004 03:13 AM
Cannot open /usr/share/sendmail-cf/m4/cf.m4 atomicx Linux - Networking 3 01-02-2004 09:44 AM

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

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