----------------------------------------------------------------------------
Animesh Nerurkar <[EMAIL PROTECTED]> has offered some elaborate guidelines
on how to switchover from GoaTelecom to Sancharnet. Maybe BSNL could utilise
these Copylefted instructions on their website (after giving due credit to
the writer, that is Animesh). Feedback and corrections/suggestions are
welcome, as usual. We learn by sharing! FN
----------------------------------------------------------------------------

Answers (they can only be implemented by root):
1] wvdial:
Stupid Mode = 1

old_phone: 172222
new_phone: 172233

old_login_name: [EMAIL PROTECTED]
new_login_name: your_new_login
------------------- topic ends ----------------

2] ppp:
use pppconfig and set the authentication method to "PAP"

edit the file /etc/ppp/options and insert the options;
auth
passive

remove the options;
noauth
------------------- topic ends ----------------

3] resolve.conf
edit the file /etc/resolve.conf and change it as follows;

nameserver 192.168.0.1  # Only if you have your own DNS
                        # Use your own DNS IP here
                        # This is my DNS' IP
nameserver 61.1.96.65   # SancharNet's Primary DNS
nameserver 61.1.128.5   # SancharNet's Secondary DNS
nameserver 61.0.0.5     # SancharNet's Backup DNS

nameserver 61.1.72.30   # Goatelecom's Primary DNS
nameserver 61.1.72.28   # Goatelecom's Secondary DNS

4] exim:
old exim code:

######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################

# These rewriters make sure the mail messages appear to have originated
# from the real mail-reading host.

 ^(?i)(root|postmaster|mailer-daemon)@homeland [EMAIL PROTECTED] Ffr
 [EMAIL PROTECTED] [EMAIL PROTECTED] Ffr
 ^(?i)(root|postmaster|mailer-daemon)@localhost [EMAIL PROTECTED] Ffr
 [EMAIL PROTECTED] [EMAIL PROTECTED] Ffr
 [EMAIL PROTECTED] [EMAIL PROTECTED] Ffr

Note: change the goatelecom.com to sancharnet.in as shown above.
and for Gods sake replace the name "homeland" with your own machine's name. 
"homeland" is the name of my gateway :)
------------------- topic ends ----------------

######################################################################
#                      ROUTERS CONFIGURATION                         #
#            Specifies how remote addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#  A remote address is passed to each in turn until it is accepted.  #
######################################################################

# old settings:
smarthost:
      driver = domainlist
   transport = remote_smtp
  route_list = "* mailsvr.goatelecom.com byname"
#  route_list = "* mailsvr.goatelecom.com bydns_a"

remove these lines or comment them out and replace with the following:

smarthost:
      driver = domainlist
   transport = remote_smtp
  route_list = "* smra.sancharnet.in byname"
#  route_list = "* smra.sancharnet.in bydns_a"

This works if you know how to get exim to authenticate itself to sancharnet 
using auth_smtp.
--OR--
This works if you DONT know how to get exim to authenticate itself to 
sancharnet, replace with the following:

#
# The self option tells exim to continue looking at additional
# routers if the MX for a domain points at the local host.

lookuphost:
   driver = lookuphost
     self = fail_soft
transport = remote_smtp

# if primary_hostname is sancharnet.in
sancharnet_in:
  condition = "${if match{$primary_hostname}}"
    domains = "sancharnet.in"
     driver = domainlist
  transport = remote_smtp
 route_list = "* smra.sancharnet.in byname"
# route_list = "* smra.sancharnet.in bydns_a"

# if primary_hostname is mailandnews.com
mailandnews_com:
  condition = "${if match{$primary_hostname}}"
    domains = "mailandnews.com"
     driver = domainlist
  transport = remote_smtp
 route_list = "* mailandnews.com byname"
# route_list = "* mailandnews.com bydns_a"

# if primary_hostname is symonds.net
symonds_net:
  condition = "${if match{$primary_hostname}}"
    domains = "symonds.net"
     driver = domainlist
  transport = remote_smtp
 route_list = "* postoffice.symonds.net byname"
# route_list = "* postoffice.symonds.net bydns_a"

# if primary_hostname is goatelecom.com
goatelecom_com:
  condition = "${if match{$primary_hostname}}"
    domains = "goatelecom.com"
     driver = domainlist
  transport = remote_smtp
 route_list = "* mailsvr.goatelecom.com byname"
 #route_list = "* mailsvr.goatelecom.com bydns_a"

#
# End of Special cases here - keep to a bare minimum

# Note: if you use the above mail servers, put these lines in, if not, you 
are strongly advised to remove the lines for that server.

# Currently we punt to local director's for further processing
self:
   driver = lookuphost
     self = local
transport = remote_smtp
------------------- topic ends ----------------

Notes:

1] I use Debian Woody and stock software that came with it. I use Kmail, 
exim, pdnsd, wvdial and fetchmail. They work fine for me with the above 
setting changes.

2] The fancy exim workaround above is not the recommended method. The method
described above checks the headers of each mail I send out and uses the
approporiate mailserver as the MX server. If I can get exim to authenticate
to Sancharnet's MX server, I'd be able to send all my mail via 
Sancharnet's server itself and that would be faster. I use this because I 
haven't yet figured out how to get exim to authenticate itself to 
Sancharnet's MX.

Cheers
Animesh

::::::::::::::::::::::::::::::::::[END OF FILE]::::::::::::::::::::::::::


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to