On Sun, 16 Oct 2011 08:31:30 +0200 mouss <mo...@ml.netoyen.net> wrote:
> Le 12/10/2011 12:01, J. Bakshi a écrit : > > [snip] > >> > >> set the restriction before permit i.e > >> > >>>>> smtpd_recipient_restrictions = > >>>>> check_recipient_access hash:/etc/postfix/restrictioinincoming, > >>>>> permit_mynetworks, > >>>>> permit_sasl_authenticated, > >> > >> > > > > Thanks, already solved it :-) > > > that's a bad idea. an error in the map will make you an open relay. for > this reason, the general advice is to > avoid using check_*_access before reject_unauth_destination > in smtpd_recipient_restrictions. > > assuming the default value of smtpd_delay_reject, you can simply move > that check_recipient_access to another restriction, for example: > > smtpd_helo_restriction = > check_recipient_access hash:/etc/postfix/restrictioinincoming > > > an alternative (that will also work for mail submitted via the sendmail > comand) is to use transport_maps: > > nore...@example.com error:... > > > Note that if you don't want to receive errors for such mail, then you > should use a "null sender" (MAIL FROM:<>). > > also, be sure to include informations for users to contact you if they > really need to (complain, unsubscribe, ... etc). Hello Mouss, I appreciate your advise. Many many thanks. In caes of nore...@example.com error:... how can I provide a notice to the users about whom to contact and how can I also configure "null sender" to avoid error mesg ? once again thanks for your great advise.