Re: Avoid not authenticated forged mail
On 22/12/09 14:45, Adrian Minta wrote:
This is a good solution, combined with DKIM as Thomas suggested would be
perfect, Gmail is using it, so I could discard forged gmail addresses
Carlos Acedo wrote:
Once in a while I receive spam "from my own" mail address, many users
send mails to themselfs, so what I would like is to allow only
authenticated mail to be able to send mails to themselfs. Is that
Thank you in advance.
Create a file /etc/postfix/filters/sender_checks.pcre like this:
#check the From field
/^(.*)pangea\.org$/ 550 please login first
/^(.*)smothersrealty\.com$/ 554 known spammer domain
Edit smtpd_recipient_restrictions from /etc/postfix/main.cf like this:
#this is the LINE
Also make sure that mynetworks is more restrictive.