On 04 Aug 2014, at 19:25, Andre Luiz Paiz <andre.p...@iqm.unicamp.br> wrote:
> I´m receiving some e-mails coming from outside with the FROM pointing to my > local domain. This causes confusion on my antispam tools. > Ex: I received an e-mail from the internet with webmas...@iqm.unicamp.br > (which is my domain) as FROM. How can I make postfix to accept incoming > e-mails from mydomain (iqm.unicamp.br) only if they are sended from my smtp > mail servers? > > I do not use virtual domains. Single domain only. > CentOS 6.5 with postfix 2.6.6 You seem to have a rather extensive SPF record; == $ dig +short txt iqm.unicamp.br "v=spf1 ip4:143.106.51.0/24 ip4:143.106.113.190 ip4:143.106.10.1 ip4:143.106.10.154 ip4:206.112.78.3 ip4:143.106.10.12 ip4:143.106.10.159 ip4:143.106.161.133 ip4:186.202.4.42 a:faunus.unicamp.br a:pq.cnpq.br a:uranus.scholarone.com -all" == I'd suggest you use that? You've already declared which servers are allowed to send, so you could use that to weed out any forgeries coming in from the outside. Remember to do the SPF check after permitting SASL clients, if you have any; http://www.postfix.org/postconf.5.html#permit_sasl_authenticated Mvg, Joni