0

My SMTP server is being abused because external adresses can send emails to adresses like [email protected], [email protected] etc...

I would like to restrict the usage of those adresses only by internal users ( could be from network ) that have the same domain name like [email protected].

With these restriction external user like [email protected] couldn't send emails to [email protected] but [email protected] could. And [email protected] could send an email to [email protected].

I hope that it is clear enough... I realy don't know how to implement that in Postfix.

1
  • I would like to resume it as : How to restrict alias usage for only internal users in postfix
    – KaAzZ
    Oct 4, 2017 at 12:58

1 Answer 1

1

I finally found an answer :

I has to add an access file in my postfix main.cf file

/etc/postfix/main.cf:
    smtpd_recipient_restrictions =
        ...
        check_recipient_access hash:/etc/postfix/access

/etc/postfix/access:
        [email protected]   permit_mynetworks,reject
        [email protected] permit_mynetworks,reject

postmap the access file, restart Postfix and that's it !

Found here : http://www.postfix.org/RESTRICTION_CLASS_README.html#internal

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .