5

A question from a beginner Postfix admin. What is the exact difference between writing in main.cf:

smtpd_reject_unlisted_sender = yes

and

smtpd_sender_restrictions =
    reject_unlisted_sender

?

Is there a real difference in operation or is smtpd_reject_unlisted_sender just a way to enforce this restriction when some of rules listed in smtpd_sender_restrictions results in PERMIT ?

1 Answer 1

6

The first option apply to all local senders, the second permit to have a criteria like:

smtpd_sender_restrictions =
    check_sender_access hash:/etc/postfix/acl_unknown_permited
    reject_unlisted_sender

on file /etc/postfix/acl_unknown_permited

[email protected] permit

The 'permit' inside /etc/postfix/acl_unknown_permited make restriction process jump to smtpd_recipient_restriction without process reject_unlisted_sender. The right hand of file support a acl list, like:

[email protected] permit_mynetworks, reject

This create many possiblilities.

4
  • Is there anything smtpd_reject_unlisted_sender can do which smtpd_sender_restrictions can't? -- And I would really like to see the question answered... Jun 7, 2023 at 17:42
  • the first enable globally (this is commonly used) the sender validation from local domains, but in specific cases can be used as acl in smtpd restrictions. Jun 8, 2023 at 23:57
  • Neither did you answer OP's question, nor mine. Jun 9, 2023 at 0:34
  • The answer is "No". Jun 10, 2023 at 10:02

You must log in to answer this question.

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