Mailscanner gateway using sendmail (are thererulesforindividualdomains)

Kit Wong Kit at simplysites.co.uk
Mon Jan 14 12:55:40 GMT 2008



-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Randal,
Phil
Sent: 14 January 2008 12:44
To: MailScanner discussion
Subject: RE: Mailscanner gateway using sendmail (are
thererulesforindividualdomains)

Oh, sorry.

Easily done by specifying the server to relay to in
/etc/mail/mailertable

To relay mail for mydomain.com and its subdomains to the host at
10.1.2.3 you'd have

mydomain.com	[10.1.2.3]
.mydomain.com	[10.1.2.3]

You need the usual stuff in /etc/mail/access to accept mail for those
domains too.

Cheers,

Phil

--
Phil Randal
Network Engineer
Herefordshire Council
Hereford, UK  

> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info 
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> Of Kit Wong
> Sent: 14 January 2008 12:17
> To: MailScanner discussion
> Subject: RE: Mailscanner gateway using sendmail (are there 
> rulesforindividualdomains)
> 
> Might be crossed wired here. I want to be able to tell
> mailscanner/sendmail to scan all incoming but rather than put it into
> the mail box on the server is to relay it on to an ip address 
> that will
> have exchange waiting. I want to be able to say which emails (domain)
> and which ip address to relay to.
> 
> Thanks
> 
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> Of Randal,
> Phil
> Sent: 14 January 2008 11:54
> To: MailScanner discussion
> Subject: RE: Mailscanner gateway using sendmail (are there rules
> forindividualdomains)
> 
> In /etc/MailScanner/MailScanner.conf
> 
>   Use SpamAssassin = %rules-dir%/spamassassin.rules
> 
> which would contain:
> 
> From:           127.0.0.1               no
> To:		    example.com     	    yes
> FromOrTo:       default                 no
> 
> This would run spamassassin on incoming mails for example.com.
> 
> Similar rulesets would be needed to control MailScanner's
> filename/filetype and phishing handling.
> 
> Cheers,
> 
> Phil
> 
> --
> Phil Randal
> Network Engineer
> Herefordshire Council
> Hereford, UK  
> 
> > -----Original Message-----
> > From: mailscanner-bounces at lists.mailscanner.info 
> > [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> > Of Kit Wong
> > Sent: 14 January 2008 11:29
> > To: MailScanner discussion
> > Subject: Mailscanner gateway using sendmail (are there rules 
> > for individualdomains)
> > 
> > 
> > Hi All
> > 
> > I found this article
> > http://wiki.mailscanner.info/doku.php?id=documentation:configu
> > ration:mta
> > :sendmail:how_to:setup_a_gateway
> > I have sendmail and mailscanner on a bluequartz (centos 5). 
> > Its working
> > great. 
> > 
> > I need to be able to use the excellent spam filtering ability of
> > mailscanner before mail is relayed to an exchange server on 
> a fixed ip
> > address . I only want to do this for a few domains. Is it 
> > possible. The
> > above article hints that it can be done, but not sure if its 
> > domain name
> > specific or all mail on that server.
> > 
> > Thanks in advanced
> > -- 
> > MailScanner mailing list
> > mailscanner at lists.mailscanner.info
> > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> > 
> > Before posting, read http://wiki.mailscanner.info/posting
> > 
> > Support MailScanner development - buy the book off the website! 
> > 
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 
> Before posting, read http://wiki.mailscanner.info/posting
> 
> Support MailScanner development - buy the book off the website! 
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 
> Before posting, read http://wiki.mailscanner.info/posting
> 
> Support MailScanner development - buy the book off the website! 
> 
-- 
This is what it says
Set your MailScanner box(es) to be MX(s) for the domain (i.e. available
to the outside world), running MailScanner.
A Windows box running Exchange on an IP address not available to the
outside world (in our case 192.168.10.5)
On the MailScanner box, there is a file called /etc/mail/mailertable. It
put the following line in it:
ourdomain.co.uk smtp:[192.168.10.5]
(The brackets tell sendmail to bypass DNS resolution.) 

Add the domain name to /etc/mail/relay-domains
This tells sendmail to push the mail off to the Exchange server, but
crucially, it does this AFTER MailScanner has done its work.


More information about the MailScanner mailing list