> >> HI All, >> >> How can I allow e-mails to be sent from my website to external users >> (like GMail) but not be an open-relay to spammers? >> > > By default Postfix will deliver mail to it's intended destination (GMail, AOL, > etc.). but will accept mail only from IP addresses in "mynetworks". > > I believe mynetworks (defined in main.cf) defaults to localhost, although it > could be different on your distribution, so you should verify it's actual > setting. > > http://www.postfix.org/postconf.5.html#mynetworks > > Allowing trusted outside users without becoming an open relay takes a little > more work. The most reliable method I've tried is SASL Authentication: > > http://www.postfix.org/postconf.5.html#permit_sasl_authenticated
Sorry, I replied without fully reading the message. What you're looking for requires that your email interface (webmail, forms, etc) only accept mail from authenticated users. This would typically be a function of your website, not postifx. The sending application would then need to authenticate with Postfix, or be part of MyNetworks. What, specifically is sending mail? Terry -- CNY Support, LLC Web. Database. Business http://www.cnysupport.com