RedSquirrel,
I don't think you get it. If you don't want to relay, then you cannot send out of your box. Going to ANYWHERE other than the original mail server is seen as relaying! If a userA@server1 wants to mail userB@server2, then server1 must RELAY the message for the user from server1 TO server2.
If you take the time to look at the link I posted above, you'll see two settings that you must have in order to do what you want to do:
mynetworks and relay_domains
mynetworks tells postfix what networks are allowed to send mail from a server to other servers. For instance, if you put it like this:
mynetworks = 127.0.0.1/8
Then ONLY local accounts on that server are allowed to relay to any other server. This would stop the open relay that you're worried about.
Actually, that's the only setting you need. relay_domains is more used if you have a gateway server delivering mail to other downstream servers. You could still use it though. If you set it up as follows, it would be a second way of making sure that people outside the server could not use the server to relay mail:
relay_domains =
(just blank after the equal sign)
If you want to learn a LOT about Postfix setup and anti-spam/anti-virus setups, I suggest you visit
http://www.freespamfilter.org and also check out their forums. Pretty much everything I've learned about mail servers I've picked up from there.
I also highly recommend
http://www200.pair.com/mecham/spam/ , though the author of that site spends huge amounts of time on freespamfilter's forums.
Joe