I'd like to do so that only certain From: addresses can send to an email address (mailing list) on an Ubuntu system running Postfix.

Understanding the Postfix the manuals are requires a lot of knowledge, so I'm hoping to get a complete recipe I can use. Currently this is what I have:

smtpd_recipient_restrictions =
  check_recipient_access hash:/etc/postfix/protected_destinations
smtpd_restriction_classes = insiders_only
insiders_only = check_sender_access hash:/etc/postfix/insiders, reject

protected.list@example.com insiders_only

allowed.user@example.com OK
another.allowed.user@example.com OK

This gives:

fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit

I am open to any suggestions. It doesn't have to be Postfix. It can be procmail or any other standard solution.

Note: the recipient is a mailing list, and thus does not have a user account on the system account. So any solution must work without an account.

Current mailing list implementation

protected.list@example.com user1@example.com, user2.example.com, ...
  • How is the mailing list implemented? Using dedicated mailing list software, or just a mail server alias that expands to a list of recipients?
    – user
    Jul 12 '13 at 21:28
  • @MichaelKjörling: See recent edit.
    – forthrin
    Jul 12 '13 at 21:41

Did you read and understand the error message? You should have something like

smtpd_recipient_restrictions =
  check_recipient_access hash:/etc/postfix/protected_destinations,

... which is your rule in front of the output from postconf -d on a random Debian box here.


Restricting send email address By default, users with Gmail accounts at your domain can send mail to and receive mail from any other email address. However, in some cases, you may want to restrict the email addresses your users can exchange mail with. For example, a school might want to allow its students to exchange mail with the faculty and other students, but not with people outside of the school.

Use the Restrict delivery setting to allow the sending or receiving of email messages only from addresses or domains that you specify. When you add a Restrict delivery setting, users cannot communicate with anyone, except those authorized.

  • 1
    I see that you're actually quoting from Google's official support. Next time, provide the actual reference, and use > block quote to quote it properly. Plagiarizing is unacceptable here.
    – Andrew T.
    Mar 30 '15 at 7:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.