bob 001 a écrit :
> Thank you for the response.
> 
> After some more thoughts being an announce only list, how about
> something like this..
> 
> 1. Only specific email addresses are allowed to send email to announce-list.
>     E.g.-> only a...@gmail.com , b...@hotmail.com and c...@ymail.com can send
> email to mail ids on our server)
> 
> 2. Only specific email addresses can receive the email(s) from outside server.
>     E.g-> (only list-subscribe, list-unsubscribe, list-request can
> receive email from *anyone*)
> 
> Is there a way to configure above two independent scenarios in single
> instance of postfix? Is so, you mind sharing the exact steps? That
> would serve the purpose too.
> 


http://www.postfix.org/RESTRICTION_CLASS_README.html

something like

smtpd_restriction_classes =
        ...
        announce_class
        allowed_rcpt

smtpd_helo_restrictions =
        check_recipient_access hash:/etc/postfix/announce_rcpt

smtpd_sender_restrictions =
        check_recipient_access hash:/etc/postfix/allowed_rcpt
        reject

announce_class =
        check_sender_access hash:/etc/postfix/announce_sender
        reject

== announce_rcpt:
annou...@example.com    announce_class

== announce_sender:
a...@gmail.com  OK
...

== allowed_rcpt:
list-subscr...@example.com      OK
...

note that two different restrictions (helo and sender) are used. this is
because you want independent "controls". and
smtpd_recipient_restrictions isn't used here, because it already
contains many checks and it would be unwise to make it more complex.

for more infos, do read (and reread until you feel confortable):
        http://www.postfix.org/SMTPD_ACCESS_README.html
        http://www.postfix.org/RESTRICTION_CLASS_README.html

as well as the man page:
        http://www.postfix.org/access.5.html

More generally,
        http://www.postfix.org/documentation.html
is an excellent place.

> Sorry, above questions are rather spontaneous and haven't done much
> research. Hope, this appears to be really interesting question. If
> this works out, all announce-only lists people can use it w/o any need
> of maintaining very complex (and sometime to be paid for blacklists).
> 
> 
> - TIA
> Bob.
> 

Reply via email to