I have setup Postfix but am having trouble with the setup.
Whenever I used to send emails to the server, it reject my mails saying 'Relaying Denied', so I changed the following in main.cf
:
mynetworks = 0.0.0.0/0
mynetworks_style = subnet
I can now send email and it works, but MX tests say that it is an open relay (obviously unintended).
How can I resolve this? I obviously want anybody to be able to email my domain, but I'm unsure of the configuration.
I know I can change the mynetworks
, but then doesn't this restrict who CAN email to the server?