Link to home
Start Free TrialLog in
Avatar of PappP
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?
Avatar of Cyclops3590
Cyclops3590
Flag of United States of America image

please post main.cf, I need to know what your restrictions are.
Avatar of PappP
PappP

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?
ASKER CERTIFIED SOLUTION
Avatar of Cyclops3590
Cyclops3590
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PappP

ASKER

OK I agree 100%.