  | | | sendmail configuration on redhat | sendmail configuration on redhat 2003-01-16 - By Jason Dale
Back 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
-- -- 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=2> <DIV><FONT face=Arial size=3>Hi There !</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial><FONT size=3>Sendmail can handle <FONT face=Arial>POP3 and SMTP jobs quite nicely.</FONT> </FONT> <DIV></FONT> </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 size=3>Machine. You will need to edit your sendmail.mc file and specifically </FONT></DIV> <DIV><FONT size=3><FONT face=Arial>enable sendmail to receive network requests as well. </FONT><FONT face=Arial>Try this : ( As root )</FONT></FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3> (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 size=3> earlier version of sendmail , there may be differences )</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3>1) BACKUP your sendmail.mc file :</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3> # cp -i /etc/mail/sendmail.mc /etc/mail/sendmail.mc.`date '+%Y%m%d'`</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3> ( This will create a backup in the form of sendmail.mc.yyyymmdd to give the </FONT></DIV> <DIV><FONT face=Arial size=3> file a date as part of it's name )</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3>2) Edit your sendmail.mc file and look for the line which reads :</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3> DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA') </FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3>3) Place a 'dnl' before this line so that it looks like this :</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3> dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3>4) BACKUP your /etc/sendmail.cf file like this :</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3># cp -i /etc/mail/sendmail.cf /etc/mail/sendmail.cf.`date '+%Y%m%d'`</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3> The reason you are backing up the sendmail.cf file is that if anything</FONT></DIV> <DIV><FONT face=Arial size=3> goes wrong with the m4 command in step 5 , you will WIPE OUT your</FONT></DIV> <DIV><FONT face=Arial size=3> main configuration file !</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3>5) Run this command to regenerate the original sendmail.cf file :</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3># m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3>6) While not always necessary , I personally recommend that you restart </FONT></DIV> <DIV><FONT face=Arial size=3> the sendmail service :</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3># service sendmail restart</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3>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</FONT></DIV> <DIV><FONT face=Arial size=3>get alot of '550 prohibited by administrator' bounces. </FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3>If you need any further assistance , let me know !</FONT></DIV> <DIV><FONT face=Arial size=3></FONT> </DIV> <DIV><FONT face=Arial size=3>Regards , Jason Dale</FONT></DIV> <DIV><FONT face=Arial> </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) 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).</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. </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></FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></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) 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).</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. </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>
|
|
 |