OT: Sendmail Outbound config

Peter Farrow peter at farrows.org
Mon May 17 13:45:02 IST 2010


On 16/05/2010 23:44, Paulo Roncon wrote:
> Hello friends
>
> This is a bit OT but anyway:
> -I need to config a sendmail as an outbound MTA (with MailScanner). How can I block all mail except outbound mails that come from an IP ou Domain?
> I dont want to be a open relay
>
> thanks!--
> 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!
>
>    
Its quicker to answer this questions rather than telling you to RTFM, 
but really you should do your homework before submitting generic 
questions as Hugo has so rightly pointed out, but I will save you the 
trouble and get you started:

Sendmail has the following file which controls its relaying behavious

on Centos/Redhat/fedora and probably others its in

/etc/mail

find the file called "access" in this directory and add a line like this:


ip.address.in.here                RELAY

and/or a line like this:

mydomain.co.uk                  RELAY

For example if the network ip address of your lan was 192.168.1.0

use, (note the host specific part of the IP is omitted):

192.168.1                        RELAY

Then either restart sendmail on RedHat distis or from the /etc/mail/ 
directory type "make" and hit return to rebuild the access.db file.

Also Sendmail won't be an open relay by default, and usually only 
listens on the loopback interface until you modify sendmail.mc to change 
this behaviour.

Sendmail is the industry standard, most widely used MTA, and you can 
pretty much do anything with it, its pretty easy to get to grips with 
once you dive in and have a go!

Regards

Pete



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20100517/967ea11e/attachment.html


More information about the MailScanner mailing list