Sendmail M4 again ??

I have been having the worst time with sendmail and the sendmail.mc file creating the sendmail.cf. After I make changes I run the following and have the results. Please give me some pointers for this because there has to be an easier way to edit my sendmail.mc without having such problems with my .cf. . i am running RHE3 logged in as root.

thanks

[root@clj mail]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/mail/sendmail.mc:12: m4: Cannot open /usr/share/sendmail-cf/ostype/linux.m4: Input/output error
/etc/mail/sendmail.mc:148: m4: Cannot open /usr/share/sendmail-cf/mailer/smtp.m4: Input/output error
/etc/mail/sendmail.mc:149: m4: Cannot open /usr/share/sendmail-cf/mailer/procmail.m4: Input/output error
/usr/share/sendmail-cf/m4/proto.m4:24: m4: Cannot open /usr/share/sendmail-cf/mailer/local.m4: Input/output error
nashsupportAsked:
Who is Participating?
 
jlevieConnect With a Mentor Commented:
Okay, so we can't do it with up2date (not sure why). You'll need to login to https://rhn.redhat.com and download the sendmail-cf-8.12.11-4.RHEL3.1 rpm. Then install it with an 'rpm -i -f'
0
 
jlevieCommented:
What does 'rpm -qa | grep sendmail' show? For an up to date RHEL 3.0 I'd expect to see:

wilowisp> rpm -qa | grep sendmail
sendmail-cf-8.12.11-4.RHEL3.1
sendmail-8.12.11-4.RHEL3.1

0
 
nashsupportAuthor Commented:
[root@clj mail]# rpm -qa | grep sendmail
sendmail-8.12.11-4.RHEL3.1
sendmail-cf-8.12.11-4.RHEL3.1
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
jlevieCommented:
Okay... It should work. Does 'rpm -q --verify sendmail-cf' complain about anything?
0
 
nashsupportAuthor Commented:
I guess i will try and reinstall. I just cannot figure out what is happening. It seems that every time that I use the m4 command I have issues. Let me know if this is the proper direction.

thanks a bunch


[root@clj network-scripts]# rpm -q --verify sendmail-cf
missing    /usr/share/sendmail-cf/domain
missing    /usr/share/sendmail-cf/domain/Berkeley.EDU.m4
missing    /usr/share/sendmail-cf/domain/CS.Berkeley.EDU.m4
missing    /usr/share/sendmail-cf/domain/EECS.Berkeley.EDU.m4
missing    /usr/share/sendmail-cf/domain/S2K.Berkeley.EDU.m4
missing    /usr/share/sendmail-cf/domain/berkeley-only.m4
missing    /usr/share/sendmail-cf/domain/generic.m4
missing    /usr/share/sendmail-cf/feature/accept_unqualified_senders.m4
missing    /usr/share/sendmail-cf/feature/accept_unresolvable_domains.m4
missing    /usr/share/sendmail-cf/feature/allmasquerade.m4
missing    /usr/share/sendmail-cf/feature/authinfo.m4
missing    /usr/share/sendmail-cf/feature/bestmx_is_local.m4
missing    /usr/share/sendmail-cf/feature/bitdomain.m4
missing    /usr/share/sendmail-cf/feature/compat_check.m4
missing    /usr/share/sendmail-cf/feature/delay_checks.m4
missing    /usr/share/sendmail-cf/feature/dnsbl.m4
missing    /usr/share/sendmail-cf/feature/domaintable.m4
missing    /usr/share/sendmail-cf/feature/enhdnsbl.m4
missing    /usr/share/sendmail-cf/feature/generics_entire_domain.m4
missing    /usr/share/sendmail-cf/feature/genericstable.m4
missing    /usr/share/sendmail-cf/hack
missing    /usr/share/sendmail-cf/hack/cssubdomain.m4
missing    /usr/share/sendmail-cf/mailer
missing    /usr/share/sendmail-cf/mailer/cyrus.m4
missing    /usr/share/sendmail-cf/mailer/cyrusv2.m4
missing    /usr/share/sendmail-cf/mailer/fax.m4
missing    /usr/share/sendmail-cf/mailer/local.m4
missing    /usr/share/sendmail-cf/mailer/mail11.m4
missing    /usr/share/sendmail-cf/mailer/phquery.m4
missing    /usr/share/sendmail-cf/mailer/pop.m4
missing    /usr/share/sendmail-cf/mailer/procmail.m4
missing    /usr/share/sendmail-cf/mailer/qpage.m4
missing    /usr/share/sendmail-cf/mailer/smtp.m4
missing    /usr/share/sendmail-cf/mailer/usenet.m4
missing    /usr/share/sendmail-cf/mailer/uucp.m4
missing    /usr/share/sendmail-cf/ostype
missing    /usr/share/sendmail-cf/ostype/a-ux.m4
missing    /usr/share/sendmail-cf/ostype/aix3.m4
missing    /usr/share/sendmail-cf/ostype/aix4.m4
missing    /usr/share/sendmail-cf/ostype/aix5.m4
missing    /usr/share/sendmail-cf/ostype/altos.m4
missing    /usr/share/sendmail-cf/ostype/amdahl-uts.m4
missing    /usr/share/sendmail-cf/ostype/bsd4.3.m4
missing    /usr/share/sendmail-cf/ostype/bsd4.4.m4
missing    /usr/share/sendmail-cf/ostype/bsdi.m4
missing    /usr/share/sendmail-cf/ostype/bsdi1.0.m4
missing    /usr/share/sendmail-cf/ostype/bsdi2.0.m4
missing    /usr/share/sendmail-cf/ostype/darwin.m4
missing    /usr/share/sendmail-cf/ostype/dgux.m4
missing    /usr/share/sendmail-cf/ostype/domainos.m4
missing    /usr/share/sendmail-cf/ostype/dynix3.2.m4
missing    /usr/share/sendmail-cf/ostype/freebsd4.m4
missing    /usr/share/sendmail-cf/ostype/freebsd5.m4
missing    /usr/share/sendmail-cf/ostype/gnu.m4
missing    /usr/share/sendmail-cf/ostype/hpux10.m4
missing    /usr/share/sendmail-cf/ostype/hpux11.m4
missing    /usr/share/sendmail-cf/ostype/hpux9.m4
missing    /usr/share/sendmail-cf/ostype/irix4.m4
missing    /usr/share/sendmail-cf/ostype/irix5.m4
missing    /usr/share/sendmail-cf/ostype/irix6.m4
missing    /usr/share/sendmail-cf/ostype/isc4.1.m4
missing    /usr/share/sendmail-cf/ostype/linux.m4
missing    /usr/share/sendmail-cf/ostype/maxion.m4
missing    /usr/share/sendmail-cf/ostype/mklinux.m4
missing    /usr/share/sendmail-cf/ostype/mpeix.m4
missing    /usr/share/sendmail-cf/ostype/nextstep.m4
missing    /usr/share/sendmail-cf/ostype/openbsd.m4
missing    /usr/share/sendmail-cf/ostype/osf1.m4
missing    /usr/share/sendmail-cf/ostype/powerux.m4
missing    /usr/share/sendmail-cf/ostype/ptx2.m4
missing    /usr/share/sendmail-cf/ostype/qnx.m4
missing    /usr/share/sendmail-cf/ostype/riscos4.5.m4
missing    /usr/share/sendmail-cf/ostype/sco-uw-2.1.m4
missing    /usr/share/sendmail-cf/ostype/sco3.2.m4
missing    /usr/share/sendmail-cf/ostype/sinix.m4
missing    /usr/share/sendmail-cf/ostype/solaris2.m4
missing    /usr/share/sendmail-cf/ostype/solaris2.ml.m4
missing    /usr/share/sendmail-cf/ostype/solaris2.pre5.m4
missing    /usr/share/sendmail-cf/ostype/solaris8.m4
missing    /usr/share/sendmail-cf/ostype/sunos3.5.m4
missing    /usr/share/sendmail-cf/ostype/sunos4.1.m4
missing    /usr/share/sendmail-cf/ostype/svr4.m4
missing    /usr/share/sendmail-cf/ostype/ultrix4.m4
missing    /usr/share/sendmail-cf/ostype/unixware7.m4
missing    /usr/share/sendmail-cf/ostype/unknown.m4
missing    /usr/share/sendmail-cf/ostype/uxpds.m4
0
 
jlevieCommented:
The "missing" results from the verify are the clue. Even though the rpm database indicates that sendmail-cf is installed the files aren't present. We need to reinstall sendmail-cf and that will require forcing the installation. You can do it via up2date with 'up2date --install --force sendmail-cf. When done check the verify again.
0
 
nashsupportAuthor Commented:
I tried to run the force and it would not work. I will probably need to strip it out unless you have any other ideas.

thanks

[root@clj mail]# up2date --install --force sendmail-cf

Fetching Obsoletes list for channel: rhel-i386-es-3...

Name                                    Version        Rel
----------------------------------------------------------


The following packages you requested are already updated:
sendmail-cf
[root@clj mail]# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
/etc/mail/sendmail.mc:12: m4: Cannot open /usr/share/sendmail-cf/ostype/linux.m4: Input/output error
/etc/mail/sendmail.mc:148: m4: Cannot open /usr/share/sendmail-cf/mailer/smtp.m4: Input/output error
/etc/mail/sendmail.mc:149: m4: Cannot open /usr/share/sendmail-cf/mailer/procmail.m4: Input/output error
/usr/share/sendmail-cf/m4/proto.m4:24: m4: Cannot open /usr/share/sendmail-cf/mailer/local.m4: Input/output error

 m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
-bash: [root@clj: command not found
[root@clj mail]# /etc/mail/sendmail.mc:12: m4: Cannot open /usr/share/sendmail-cf/ostype/linux.m4: Input/output error
-bash: /etc/mail/sendmail.mc:12:: No such file or directory
[root@clj mail]# /etc/mail/sendmail.mc:148: m4: Cannot open /usr/share/sendmail-cf/mailer/smtp.m4: Input/output error
-bash: /etc/mail/sendmail.mc:148:: No such file or directory
[root@clj mail]# /etc/mail/sendmail.mc:149: m4: Cannot open /usr/share/sendmail-cf/mailer/procmail.m4: Input/output error
-bash: /etc/mail/sendmail.mc:149:: No such file or directory
[root@clj mail]# /usr/share/sendmail-cf/m4/proto.m4:24: m4: Cannot open /usr/share/sendmail-cf/mailer/local.m4: Input/output error
-bash: /usr/share/sendmail-cf/m4/proto.m4:24:: No such file or directory
0
 
nashsupportAuthor Commented:
FYI

I uninstalled and reinstalled twice and it still bombed, I then tried it through webmin and it worked so for kicks I uninstalled webmin and then when I ran m4 manually it worked great 3 times and no problems since.

chris
0
 
jlevieCommented:
You didn't tell me that you had webmin on this system. If I'd known that I'd have told you to remove webmin and sanity will return.
0
 
nashsupportAuthor Commented:
it works ok for us individuals who are not at Einstein level in the linux world.

thanks for all your help, i am sure I will have some more questions which you will see posted. i am building 3 servers for some offices.

chris

0
 
jlevieCommented:
>  it works ok for us individuals who are not at Einstein level in the linux world.

Perhaps, but if you had any idea how many hours I've spent repairing systems after webmin has screwed them up you might think it worthwhile to learn a bit more about how to setup and maintain a system with native tools/files.
0
 
nashsupportAuthor Commented:
I am trying, believe me
0
All Courses

From novice to tech pro — start learning today.