Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    postfix allow one domain recipient

    Hi All,

    i have this problem:

    with my postfix i want that all client that connect to postfix, all mail can be send to a only domain, example:

    in file i have add this rule:

    smtpd_recipient_restrictions = permit_mynetworks, hash:/etc/postfix/send_recipient_restriction, reject

    and in the send_recipient_restriction file:

    /gmail\.com$/ OK ## replaced the domain with original one ##
    /./ REJECT

    with postmap i have generated db file and restart postfix, but this rule is not applicable. where I wrong?


  2. #2
    I have resolv with:

    insert in the file this roule:

    smtpd_recipient_restrictions = reject_unknown_recipient_domain hash:/etc/postfix/recipent_domain, reject

    create file /etc/postfix/recipent_domain and write in only the domain that you want accept exemple: OK

    write and run:

    postmap /etc/postfix/recipent_domain

    and last restart postfix.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts