On Fri, Nov 20, 2009 at 05:04:44PM -0200, Jeronimo wrote:

> Hi,
> 
> I always think that only hosts in mynetworks can do relay on my server,
> but...
> I created the following rule
> 
> smtpd_recipient_restrictions =
>     check_sender_access hash:/etc/postfix/dominios_permitidos,
>     reject

This is a disasterously bad idea and turns you into an open relay.

> and put this on the dominios_permitidos map
> meudominio.com.br OK

DO NOT do this. Restore "smtpd_recipient_restrictions" to its correct
default value, and then start a new thread where you describe what
problem motivated you do do this.

> If I remove this last three lines the relay becomes close.
> Anyone knows how to restrict relay and only accept MAIL FROM my domain?

Set "mynetworks" correctly. Do NOTHING else. Postfix works correctly by
default. What caused you to change the recipient restrictions?

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to