[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Setting up SMTP?

Shane Presley wrote:


I just installed Fedora, and installed Big Brother for network
monitoring.  This is my first time setting up linux, so sorry for a
newbie question.

I need the server to have SMTP running, so that users in our network
can send e-mails to the server, which will fire off a script to deal
with the e-mail. For example an admin wants to acknowledge an alert,
he sends mail to bb mylinuxbox mydomain com

Initially SMTP wasn't running on my box.  So I just ran
/etc/rc3.d/S80sendmail start.  Okay now sendmail appears to be
running.  ps -aef | grep sendmail shows

root      1725     1  0 Oct25 ?        00:00:00 sendmail: accepting connections
smmsp     1734     1  0 Oct25 ?        00:00:00 sendmail: Queue
runner 01:00:00 for /var/spool/clientmqueue

But if I telnet to port 25 on my system, I get connection refused. There is no firewall.

I assume I need to change something in my sendmail config?  I read the
Red Hat Linux Reference Guide and I couldn't really figure out what I
need to change.  I was a little concerned about this section:

dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

Change this to:

DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl (note the first character that appears to be a quote is a grave accent which is the unshifted tilde key)
After saving the file, type in:
make -C /etc/mail

This will rebuild the sendmail.cf file.
BTW, this is at the top of the sendmail.mc file and was confirmed by my local *NIX guru.

But I'm not sure if I should comment that out. Also I tried to build a
new sendmail.cf file and got this error:

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

This is correct. The m4 program cannot rebuild the mail files.

James McKenzie

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]