On Wed, 2004-12-29 at 14:34, redhat linux wrote:
> --- Sudev Barar <[EMAIL PROTECTED]> wrote:
> > By default red-hat sendmail does not allow relaying
> > for other machines.
> > You need to rebuild sendmail.mc by adding :
> > DAEMON_OPTIONS(`Port=smtp,Addr=xxx.xxx.xxx.xxx,
> > Name=MTA')dnl
> >  where xxx.xxx.xxx.xxx is machine from where
> > relaying is to occur.
> > 
> > Then run m4 macro to build new sendmail.cf by giving
> > command:
> > #m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
> > 
> > restart service sendmail....
> > HTH
> > -- 
> > Sudev Barar
> > Learning Linux
> Thanks sir
> as u have said i "added" 
> DAEMON_OPTIONS(`Port=smtp,Addr=xxx.xxx.xxx.xxx,
> Name=MTA')dnl
> 
> I am still learning how to configure sendmail..so my
> query now is that the sendmail.mc file says 
> 
> dnl # The following causes sendmail to only listen on
> the IPv4 loopback address
> dnl # 127.0.0.1 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=127.0.0.1,Name=MTA')dnl
> 
> so i commented the entry and made a new one which
> contains the ip of my machine......means the answer
> that you have said. This is been done before the query
> i made in the forum.
> 
> so the mails to 127.0.0.1 is not getting relayed, now
> question is "Is it necessary to have a smtp port 25
> open for localhost, irrespective of whether we have
> different smtp server or not?
> 
> i hope you got what my query is
> thanks...

Sudeep,
You need to have both lines....127.0.0.1 and xxx.xxx.xxx.xxx(your IP)
Read Howto at sendmail.org for detailed help.
-- 
Sudev Barar
Learning Linux


_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to