Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1.) rpm -qa | grep -i sendmail // Confirm that sendmail is not installed
2.) mount the installation media into /media/ // mount installation media
3.) switch to the rpm directory
4.) rpm -ivh --test sendmail.x.y.z.rpm // First check the rpm is suitable to install with out any dependencies.
// if success, then follow the next step.
5.) rpm -ivh sendmail.x.y.z.rpm // sendmail installation is done
6.) rpm -qi sendmail // check for sendmail installation.
Now you can start configuring the sendmail with m4(macro)
The command rpm -ivh --test sendmail.x.y.z.rpm gave the following output:
warning: sendmail-8.13.8-2.el5.src.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
The command rpm -qi sendmail
Name : sendmail Relocations: (not relocatable)
Version : 8.13.8 Vendor: Red Hat, Inc.
Release : 2.el5 Build Date: Tue 28 Nov 2006 08:29:05 PM IST
Install Date: Wed 22 Dec 2010 03:19:21 AM IST Build Host: ls20-bc1-14.build.redhat.com
Group : System Environment/Daemons Source RPM: sendmail-8.13.8-2.el5.src.rpm
....
....
Now I was unable to configure.
I tried the command m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
and got the follwing error:
/etc/mail/sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
rpm options '--test' won't install the package. The option is to verify the package compatibility/package dependencies conflict. We have to use "rpm -ivh <package.x.y.z.rpm>" to install the package.
sridaran
pl share the output for the commands give in post #4. So that we can see what is the problem.
Let me give you the commands and the output I got:
command
rpm -qa | grep -i sendmail
Output
sendmail-cf-8.8.7-20
sendmail-8.13.8-2.el5
command
rpm -qi sendmail
Output
Name : sendmail Relocations: (not relocatable)
Version : 8.13.8 Vendor: Red Hat, Inc.
Release : 2.el5 Build Date: Tue 28 Nov 2006 08:29:05 PM IST
Install Date: Wed 22 Dec 2010 03:19:21 AM IST Build Host: ls20-bc1-14.build.redhat.com
Group : System Environment/Daemons Source RPM: sendmail-8.13.8-2.el5.src.rpm
Size : 1370608 License: Sendmail
Signature : DSA/SHA1, Thu 18 Jan 2007 02:08:27 AM IST, Key ID 5326810137017186
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary : A widely used Mail Transport Agent (MTA).
Output
/etc/mail/sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
command
cd /etc/mail
ls -l
Output
-rw-r--r-- 1 root root 355 Nov 28 2006 access
-rw-r----- 1 root root 12288 Dec 22 03:19 access.db
-rw-r--r-- 1 root root 0 Nov 28 2006 domaintable
-rw-r----- 1 root root 12288 Dec 22 03:19 domaintable.db
-rw-r--r-- 1 root root 5521 Nov 28 2006 helpfile
-rw-r--r-- 1 root root 64 Nov 28 2006 local-host-names
-rw-r--r-- 1 root root 0 Nov 28 2006 mailertable
-rw-r----- 1 root root 12288 Dec 22 03:19 mailertable.db
-rw-r--r-- 1 root root 1048 Nov 28 2006 Makefile
-rw-r--r-- 1 root root 0 Jan 27 05:31 sendmail.cf~bogus
-rw-r--r-- 1 root root 7209 Nov 28 2006 sendmail.mc
-r--r--r-- 1 root root 41286 Nov 28 2006 submit.cf
-rw-r--r-- 1 root root 940 Nov 28 2006 submit.mc
-rw-r--r-- 1 root root 127 Nov 28 2006 trusted-users
-rw-r--r-- 1 root root 0 Nov 28 2006 virtusertable
-rw-r----- 1 root root 12288 Dec 22 03:19 virtusertable.db
I didn't tried rpm -ivh sendmail.x.y.z.rpm since sendmail is already installed. I don't know why sendmail is not starting? I am new Linux. Please help me. Its urgent.
By default, the m4 macro processor is installed with Sendmail. The m4 macro processor is included with the sendmail-cf package, which is installed in /usr/share/sendmail-cf.
You should consult the /usr/share/sendmail-cf/README file before you edit any of the files in the directories under the /usr/share/sendmail-cf directory, as they can affect how future /etc/sendmail.cf files are configured.
Thank you for sending me the link. I don't have sendmail.cf installed in /etc folder. Also sendmail-cf is not in the /usr/share folder. I have sendmail.cf and sendmail.cf~bogus in the /etc/mail folder. But both are empty files. So I tried this command m4 /etc/mail/sendmail.mc > /etc/sendmail.cf and got the following output:
/etc/mail/sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
Actually I have the sendmail version of sendmail-8.13.8-2.el5. Today I installed sendmail-cf-8.8.7-20 using the command rpm -ivh sendmail-cf-8.8.7-20.rpm before posting my previous forum since I didn't get sendmail-cf with 8.13.8-2.el5 version. Do we need to install sendmail and sendmail-cf with same version.
I have listed the files available in /etc/mail folder on my previous thread. Apart from that I don't have sendmail-cf installed anywhere else. Please tell What I need to do now?
I still think your sendmail installation has issues and you need to install it using the package manager. Installing yum should not be a problem. What version of RH are you using and if you are using RHEL then why dont you talk to RH support. You are anyhow paying them for it.
I tried installing sendmail.8.14.4.tar.gz. I started with the command
cd sendmail
sh ./Build
It executed well by installing some files. Then I tried the following:
cd cf/cf
sh ./Build sendmail.cf
output
Using M4=/usr/bin/m4
make:***No rule to make target 'sendmail.cf'.stop
sh ./Build install-cf
output
Using M4=/usr/bin/m4
make:***No rule to make target 'sendmail.cf',needed by 'install-sendmail-cf'.stop
cd obj.Linux.2.6.18-8.el5xen.i686
make install
output
make:***No rule to make target 'install'.stop
yesterday I installed sendmail-cf-8.8.7-20. Today I removed this by using
rpm --erase sendmail-cf-8.8.7-20
Finally sendmail is not starting with the service sendmail start command.
On the terminal it is showing sendmail-8.13.8-2.el5 for the command rpm -qa | grep -i sendmail
I tried removing the sendmail using the command rpm -e sendmail-8.13.8-2.el5 and got following error:
error: Failed dependencies:
/usr/sbin/sendmail is needed by (installed) redhat-lsb-3.1-12.2.EL.i386
smtpdaemon is needed by (installed) fetchmail-6.3.6-1.el5.i386
smtpdaemon is needed by (installed) mdadm-2.5.4-3.el5.i386
smtpdaemon is needed by (installed) mutt-1.4.2.2-3.el5.i386
I was structed in the middle right now, since I was unable to continue installation and also unable to uninstall sendmail also.
My Linux version is Red Hat Enterprise Linux Server release 5 (Tikanga)
It would be better for you to install yum and use it as your package manager. This will solve a lot of dependency headaches. And if you are using registered RHEL why not call them for he support?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.