Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: wkdr3d on September 26, 2007, 09:14:06 PM

Title: Relay mails from outside ip range
Post by: wkdr3d on September 26, 2007, 09:14:06 PM
I hope someone can point me in the right direction i have a SME server 7.2 (fresh install) and i am using it to filter emails for spam/virus before passing them onto various exchange servers (a setup i have allready in production env) however for this site i need it to be able to relay emails from a range of outside IPS ex 88:208.*.* over normal smtp (some clients will not be able to support SSMTP).

What is the best way to approach and implement this.

many Thanks Keith
Title: Re: Relay mails from outside ip range
Post by: wkdr3d on September 27, 2007, 05:28:04 PM
Ok i think i have solved this one after many many hours of reading/testing

i have used the file /etc/e-smith/templates/var/service/qpsmtpd/config/relayclients/template-begin
and added the following

# Format is IP, or IP part with trailing dot
# e.g. "127.0.0.1", or "192.168."
xxx.yyy.zzz.
aaa.bbb.ccc.

to allow all ips in the range of xxx.yyy.zzz.* and aaa.bbb.ccc.* to relay without having to auth (The client owns all ips in them ranges)
I have tested the server for open relay at http://www.abuse.net and it passes ok

My question now is, is this safe? and is there a better/safer way to achieve the same thing?

i tried to use the method listed in http://forums.contribs.org/index.php?topic=32156.0
but i couldn't get this to work

Many Thanks Keith