Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Sendmail M4 again ??

Posted on 2004-09-22
12
Medium Priority
?
1,932 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

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
 
LVL 40

Accepted Solution

by:
jlevie earned 1000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve DNS query failed errors for Exchange
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Suggested Courses

636 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