Solved

Sendmail not working

Posted on 2004-04-13
4
6,810 Views
Last Modified: 2013-12-17
Hello,

I am trying to set up Sendmail on Linux 9.  It is installed correctly and running.  When I type

service sendmail status

I get

sendmail (pid 29918) is running...

I am trying to just connect to the server by doing a 'telnet localhost 25' and this is not working.  I get a:

Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

So if I stop and start sendmail I get this error:

ns1:/etc/mail # service sendmail stop
Shutting down sendmail: [  OK  ]
Shutting down sm-client: [FAILED]

ns1:/etc/mail # service sendmail start
Starting sendmail: 554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
[FAILED]
Starting sm-client: [  OK  ]

I am not sure what this message means.  Also, my /etc/mail/sendmail.cf is zero length.  Is this the problem?  If I try to do 'make -C /etc/mail' nothing changes, the file is still zero length.  Thanks.

0
Comment
Question by:ingenito
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 10820244
> Also, my /etc/mail/sendmail.cf is zero length

This is a problem. Try:

cd /etc/mail
touch sendmail.mc
make

and see if you have a non-zero length sendmail.cf. If sendmail.cf looks reasonable (somethin on the order of 55kb or so) execute:

killall sendmail
service sendmail start

However, if sendmail.cf is still zero length  I'd guess there's some problem with your sendmail.mc that is causing m4 to abort when trying to build sendmail.mc. To see what the error is execute:

cd /etc/mail
m4 sendmail.mc >sendmail.cf

and post the errors here.
0
 

Author Comment

by:ingenito
ID: 10823899
The file is still zedro length.  Here is the error:

ns1:/etc/mail # m4 ./sendmail.mc > ./sendmail2.cf
./sendmail.mc:10: m4: Cannot open /usr/share/sendmail-cf/m4/cf.m4: No such file or directory

I read something about needing sendmail-cf installed which it appears I do not.  Where can I dowload the code from?  Thanks.

0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 10825003
That probably means that you don't have the sendmail-cf package installed. The easy solution to that is to do 'up2date --install sendmail-cf'. Or you can install it from the RH 9 CD's if you haven't registered your system with RedHat Network.

Note that you really, really, want to bring your RH 9 system up to date w/respect to the RedHat security & bug fixes. Support for RedHat 9 ends at the end of this month, but updated from RedHat will be available until then. An alternative method of updating the system is via Yum, see http://linux.duke.edu/projects/yum/
0
 

Author Comment

by:ingenito
ID: 10842789
Thanks jlevie!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create an email address policy 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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

896 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

11 Experts available now in Live!

Get 1:1 Help Now