Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
sendmail configuration on redhat

sendmail configuration on redhat

2003-01-16       - By Jason Dale

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

Hi There !

Sendmail can handle POP3 and SMTP jobs quite nicely.

As far as I know , Sendmail by default will only listen for requests on your
local
Machine. You will need to edit your sendmail.mc file and specifically
enable sendmail to receive network requests as well. Try this : ( As root )

(These are the steps you would use with sendmail-8 (See http://ail-8.ora-code.com).12.5-7. If you use an
  earlier version of sendmail , there may be differences )

1) BACKUP your sendmail.mc file :

   #  cp  -i  /etc/mail/sendmail.mc    /etc/mail/sendmail.mc.`date '+%Y%m%d'`

   ( This will create a backup in the form of sendmail.mc.yyyymmdd to give the
      file a date as part of it's name )

2) Edit your sendmail.mc file and look for the line which reads :

   DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')  

3) Place a 'dnl' before this line so that it looks like this :

    dnl  DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

4) BACKUP your /etc/sendmail.cf file like this :

#  cp  -i  /etc/mail/sendmail.cf    /etc/mail/sendmail.cf.`date '+%Y%m%d'`

   The reason you are backing up the sendmail.cf file is that if anything
    goes wrong with the m4 command in step 5 , you will WIPE OUT your
    main configuration file !

5)  Run this command to regenerate the original sendmail.cf file :

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

6)  While not always necessary , I personally recommend that you restart
    the sendmail service :

#   service sendmail restart

Bear in mind that you will be needing to use the /etc/mail/access and /etc/mail
/access.db files in the near future to control who can relay through your mail
server to send mail to the outside world. Otherwise , your users will
get alot of '550 prohibited by administrator' bounces.

If you need any further assistance , let me know !

Regards , Jason Dale
   
 -- -- Original Message -- --
 From: Gentian Hila
 To: seawolf-list@(protected)
 Sent: Thursday, January 16, 2003 2:59 PM
 Subject: sendmail configuration on redhat


 As you can imagine i have installed fully RH 7.1 and wanted to configure
sendmail to act as full email server, which means SMTP and Pop3 server
altogether in the same machine (if that is possible) Sendmail is already
installed there, but it seems to work only for the local machine. I do not want
to compile again the whole sendmail.cf file since it is a huge work . Is there
any place where i can find some information just how to modify sendmail.cf file
in order to accomplish what i need (or at least to find a sendmail.mc file).

 I have read the Howto's on redhat site about sendmail but it doesn't include
something of how to implement everything in one machine.

 is it ok that i have installed all the packages of Redhat to make possible
for Sendmail to run or do i have to install redhat only as a server ?

 Any help would be appreciated.

 Genti





-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=3>Hi There !</FONT></DIV>
<DIV><FONT face=Arial size=3></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Sendmail can handle <FONT face=Arial>POP3 and SMTP jobs
quite nicely.</FONT>
<DIV><FONT size=2></FONT></FONT>&nbsp;</DIV></DIV>
<DIV><FONT face=Arial size=3>As far as I know , Sendmail by default will only
listen for requests on your local</FONT></DIV>
<DIV><FONT face=Arial>Machine. You will need to edit your sendmail.mc file and
specifically </FONT></DIV>
<DIV><FONT face=Arial>enable sendmail to receive network requests as well.
</FONT><FONT face=Arial>Try this : ( As root )</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp;(These are the steps you would use with
sendmail-8 (See http://ail-8.ora-code.com).12.5-7. If you use an </FONT></DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp; earlier version of sendmail , there may be
differences )</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>1) BACKUP your sendmail.mc file :</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp; cp&nbsp; -i
&nbsp;/etc/mail/sendmail.mc&nbsp;&nbsp;&nbsp; /etc/mail/sendmail.mc.`date
'+%Y%m%d'`</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp; ( This will create a backup in the
form
of sendmail.mc.yyyymmdd to give the </FONT></DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file a date as part
of it's name&nbsp;)</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>2) Edit your sendmail.mc file and look for the line which
reads :</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp;
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>3) Place a 'dnl' before this line so that it looks like
this :</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp;&nbsp; dnl&nbsp;
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>4) BACKUP your /etc/sendmail.cf file like this
:</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>#&nbsp; cp&nbsp; -i
&nbsp;/etc/mail/sendmail.cf&nbsp;&nbsp;&nbsp; /etc/mail/sendmail.cf.`date
'+%Y%m%d'`</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp; The reason you are backing up the
sendmail.cf file is that if anything</FONT></DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp;&nbsp; goes wrong with the m4 command
in
step 5 , you will WIPE OUT your</FONT></DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp;&nbsp; main configuration file
!</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>5)&nbsp; Run this command to regenerate the original
sendmail.cf file :</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>#&nbsp;&nbsp; m4&nbsp; /etc/mail/sendmail.mc&nbsp;
&gt;&nbsp; /etc/mail/sendmail.cf</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>6)&nbsp; While not always necessary , I personally
recommend that you restart </FONT></DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp;&nbsp; the sendmail service
:</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>#&nbsp;&nbsp; service sendmail restart</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Bear in mind that you will be needing to use the
/etc/mail/access and /etc/mail/access.db files in the near future to control
who
can relay through your mail server to send mail to the outside world. Otherwise
,&nbsp;your users will</FONT></DIV>
<DIV><FONT face=Arial>get alot of '550 prohibited by administrator' bounces.
</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>If you need any further assistance , let me know
!</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Regards , Jason Dale</FONT></DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
#000000 2px solid; MARGIN-RIGHT: 0px">
 <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV>
 <DIV
 style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
 <A title=gentian_hila@(protected) href="mailto:gentian_hila@(protected)">Gentian
 Hila</A> </DIV>
 <DIV style="FONT: 10pt arial"><B>To:</B> <A title=seawolf-list@(protected)
 href="mailto:seawolf-list@(protected)">seawolf-list@(protected)</A> </DIV>
 <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, January 16, 2003 2:59
 PM</DIV>
 <DIV style="FONT: 10pt arial"><B>Subject:</B> sendmail configuration on
 redhat</DIV>
 <DIV><BR></DIV>
 <P>As you can imagine i have installed fully RH 7.1 and wanted to configure
 sendmail to act as full email server, which means SMTP and Pop3 server
 altogether in the same machine (if that is possible)&nbsp;Sendmail is already
 installed there, but it seems to work only for the local machine. I do not
 want to compile again the whole sendmail.cf file since it is a huge&nbsp;work
 .&nbsp;Is there any place where i can find some information just how to
modify
 sendmail.cf file in order to accomplish what i need (or at least to find a
 sendmail.mc file).</P>
 <P>I have read the Howto's on redhat site about sendmail but it doesn't
 include something of how to implement everything in one machine.</P>
 <P>is it ok that i have installed all the packages of Redhat to make possible
 for Sendmail to run or do i have to install redhat only as a server ?</P>
 <P>Any help would be appreciated.&nbsp;</P>
 <P>Genti</P>
 <P><BR>
 <HR SIZE=1>
 Do you Yahoo!?<BR><A
 href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo!
Mail
 Plus</A> - Powerful. Affordable. <A
 href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up
 now</A></BLOCKQUOTE></BODY></HTML>