* Marcio Vogel Merlone dos Santos <marcio.merl...@a1.ind.br>: > On 25-03-2010 05:41, Ralf Hildebrandt wrote: > >* Frank Bonnet<f.bon...@esiee.fr>: > >>I have one domain, say domain.com and I want to reject emails > >>that pretend to be sent from domain.com > >>but are NOT into our IP range say 123.123.0.0/16 > >http://www.arschkrebs.de/postfix/postfix_incoming.shtm > > Hi Ralf, > > It seemed so simple and efficient I couldn't resist to implement. It > worked as expected at first, but some apparently random legitimate > messages get refused by that rule. Can you help me? I use postfix > 2.5.1-2ubuntu1.2 on a Ubuntu 8.10 LTS box with pam_ldap (if that > matters). > > Strip from main.cf, I did it with /etc/postfix/fakea1: > > smtpd_recipient_restrictions = > permit_mynetworks > reject_unauth_destination > check_sender_access hash:/etc/postfix/freemail_access > check_recipient_access hash:/etc/postfix/rfc, > check_recipient_access pcre:/etc/postfix/inativos_pcre, > hash:/etc/postfix/inativos > check_sender_access pcre:/etc/postfix/access_pcre, > hash:/etc/postfix/access, > hash:/etc/postfix/fakea1 > check_client_access hash:/etc/postfix/access, > cidr:/etc/postfix/cidr
These don't do what you think :) YOu need to write: > check_recipient_access pcre:/etc/postfix/inativos_pcre, > check_recipient_access hash:/etc/postfix/inativos > check_sender_access pcre:/etc/postfix/access_pcre, > check_sender_access hash:/etc/postfix/access, > check_Sender_Access hash:/etc/postfix/fakea1 > check_client_access hash:/etc/postfix/access, > CHECK_CLIENT_access cidr:/etc/postfix/cidr -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de