Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Dave LaPorte on April 25, 2002, 01:44:20 AM

Title: Question on Receiving mail from additional domains
Post by: Dave LaPorte on April 25, 2002, 01:44:20 AM
Could someone help me with the following:

     I have e-smith 5.1 configured as a Gateway-Server on our
     lan ( two Nic's Lan/Internet connections ).  What I would
     like to do is this.

1.  I would like to have our domain hosted by another ISP.  That
     ISP would have a DNS Address record that would point to our
     local server.  Mail addressed for our domain  would then be
     delivered to our local machine ie: users would access their
     mail from a lan connection.

2.  I would like our users to be able to send mail from their local
     pc's  via the local e-smith server on our lan.


I have edited the following files:
 
      /var/spool/smtpd/etc/smtpd_check_rules
     ( here I added the following line:  
   
     allow:ALL:ALL:*.testdomain.com *@testdomain.com
     

and  

     /var/qmail/control/locals
    ( I just added our domain in this file )


I can now receive internet mail sent to a user at testdomain.com and send an email from a client ie: Outlook express 'using testdomain.com to another address on the net.

My question is this.

1.  Did I config this correctly?  I tried using templates, but there
     wasn't a template for smtpd_check_rules under
     /etc/e-smith/templates to copy to the templates-custom dir.


P.S.  Sorry for the newbee questions

Thanks

Dave LaPorte.
Title: Re: Question on Receiving mail from additional domains
Post by: Trevor B on April 25, 2002, 07:54:53 AM
The templates are in
/etc/e-smith/templates/var/spool/smtpd/etc/smtpd_check_rules/

but make sure that you create yours as a copy/addition in templates-custom

Trevor B

Dave LaPorte wrote:
>
> Could someone help me with the following:
>
>      I have e-smith 5.1 configured as a Gateway-Server on our
>      lan ( two Nic's Lan/Internet connections ).  What I would
>      like to do is this.
>
> 1.  I would like to have our domain hosted by another ISP.
> That
>      ISP would have a DNS Address record that would point to
> our
>      local server.  Mail addressed for our domain  would then
> be
>      delivered to our local machine ie: users would access
> their
>      mail from a lan connection.
>
> 2.  I would like our users to be able to send mail from their
> local
>      pc's  via the local e-smith server on our lan.
>
>
> I have edited the following files:
>  
>       /var/spool/smtpd/etc/smtpd_check_rules
>      ( here I added the following line:  
>    
>      allow:ALL:ALL:*.testdomain.com *@testdomain.com
>      
>
> and  
>
>      /var/qmail/control/locals
>     ( I just added our domain in this file )
>
>
> I can now receive internet mail sent to a user at
> testdomain.com and send an email from a client ie: Outlook
> express 'using testdomain.com to another address on the net.
>
> My question is this.
>
> 1.  Did I config this correctly?  I tried using templates,
> but there
>      wasn't a template for smtpd_check_rules under
>      /etc/e-smith/templates to copy to the templates-custom
> dir.
>
>
> P.S.  Sorry for the newbee questions
>
> Thanks
>
> Dave LaPorte.