PappP
asked on
Postfix to receive mail from all Internet
Hi All,
I have configured postfix on our server and it works fine on our local network. We can send & recieve, even POP3 without any problem.
However, for testing reasons I sent e-mails from outside addresses, but they are not being delivered. The log sais "Relay access is denied". I read all kinds of HOWTOs and manuals, but can't get this work.
If I set "mynetwork_style = subnet" then all mail coming from the Internet will be dropped because of "relay access is denied". If I open my postfix to the whole word by setting "mynetwork" to a stupid something that filters nothing out, then I will be the relay station of the entire world's, which I obviously do not want to be.
So, how do I make it to receive mail that comes for our domain names, and drop all the rest?
I have configured postfix on our server and it works fine on our local network. We can send & recieve, even POP3 without any problem.
However, for testing reasons I sent e-mails from outside addresses, but they are not being delivered. The log sais "Relay access is denied". I read all kinds of HOWTOs and manuals, but can't get this work.
If I set "mynetwork_style = subnet" then all mail coming from the Internet will be dropped because of "relay access is denied". If I open my postfix to the whole word by setting "mynetwork" to a stupid something that filters nothing out, then I will be the relay station of the entire world's, which I obviously do not want to be.
So, how do I make it to receive mail that comes for our domain names, and drop all the rest?
please post main.cf, I need to know what your restrictions are.
ASKER
Cyclops3590,
I got this shorted out. It was a real dumb mistake on my part: I put the www to mydestinations in the main config file (ie. instead of foo.com I wrote www.foo.com). I corrected this and now it works fine.
There is one problem though, still worth the 175 points. I got 35-40 hits each minute, asking for e-mail relay. Postfix correctly denies that, but at the same time fills up the syslog to the point where it grows out of control. So the question is: how to prevent the "Relay access denied" messages from being logged?
I got this shorted out. It was a real dumb mistake on my part: I put the www to mydestinations in the main config file (ie. instead of foo.com I wrote www.foo.com). I corrected this and now it works fine.
There is one problem though, still worth the 175 points. I got 35-40 hits each minute, asking for e-mail relay. Postfix correctly denies that, but at the same time fills up the syslog to the point where it grows out of control. So the question is: how to prevent the "Relay access denied" messages from being logged?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK I agree 100%.