Woah! Don't use 0.0.0.0 for mynetworks. That means all hosts will be "trusted", and can relay mail. Most likely, you only need mynetworks to be setup as localhost. Normal "untrusted" host will still be allowed to connect to postfix and deliver mail for any host in your mydestination parameter.

If you need to receive email for @ip-addr, the ip-addr needs to be a part of mydestination, (not just a host that resolves to that ip).

Ben

Tony Vance wrote:

Hi everyone,

Thanks for the help so far. What do you recommend I use for my mydestination and mynetworks settings in /etc/postfix/main.cf? I want to be able to receive mail from outside BYU, but I don't want spammers to be able to use my server to spam the world. Here are my current settings:

mynetworks = 0.0.0.0/32

mydestination = $myhostname, localhost.$mydomain, $mydomain


Currently I can receive mail for [EMAIL PROTECTED] but not for [EMAIL PROTECTED] When mail is sent to [EMAIL PROTECTED] I get the message, "relaying not permited".


Any ideas?

Best,

Tony



____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list








____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to