Solved

Sendmail M4 again ??

Posted on 2004-09-22
12
1,856 Views
Last Modified: 2013-12-17
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
0
Comment
Question by:nashsupport
  • 6
  • 6
12 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 12127097
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
 

Author Comment

by:nashsupport
ID: 12127179
[root@clj mail]# rpm -qa | grep sendmail
sendmail-8.12.11-4.RHEL3.1
sendmail-cf-8.12.11-4.RHEL3.1
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12127842
Okay... It should work. Does 'rpm -q --verify sendmail-cf' complain about anything?
0
 

Author Comment

by:nashsupport
ID: 12131733
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
 
LVL 40

Expert Comment

by:jlevie
ID: 12132975
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
 

Author Comment

by:nashsupport
ID: 12133181
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
Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
ID: 12134099
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
 

Author Comment

by:nashsupport
ID: 12136332
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
 
LVL 40

Expert Comment

by:jlevie
ID: 12136504
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
 

Author Comment

by:nashsupport
ID: 12136543
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
 
LVL 40

Expert Comment

by:jlevie
ID: 12139967
>  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
 

Author Comment

by:nashsupport
ID: 12141823
I am trying, believe me
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Easy CSR creation in Exchange 2007,2010 and 2013
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now