>
>From: Christopher Adams <adam...@gmail.com>
>To: Postfix users <postfix-users@postfix.org>
>Sent: Tue, December 8, 2009 5:00:37 AM
>Subject: Re: header_checks not working correctly
>
>Okay, no more ignorant posts. I will give you all that I have based on the 
>protocol as spelled out.
>
>1. Summary of the problem: attempting to ban an email address using a hash map 
>does not work. The message is delivered anyway. 
>
>2. Error messages: none
>
>3. Logging: Maillog shows that the message was delivered.

Show the log messages stating as such.

Show the full contents of your header_check file, so we can see your syntax.

>
>4. Output from postconf - n:
>
>alias_database = hash:/etc/postfix/aliases
>alias_maps = hash:/etc/postfix/aliases,     
>hash:/usr/local/mailman/data/aliases
>>command_directory = /usr/sbin
>config_directory = /etc/postfix
>daemon_directory = /usr/libexec/postfix
>debug_peer_level = 2
>default_privs = nobody
>default_verp_delimiters = +=
>html_directory = no
>mail_owner = postfix
>>mail_spool_directory = /var/spool/mail
>mailq_path = /usr/bin/mailq.postfix
>manpage_directory = /usr/share/man
>message_size_limit = 2097152
>mydestination = $myhostname, localhost.$mydomain, localhost.localdomain, 
>listsmart.$mydomain, swiki.$mydomain
>>myhostname = listsmart.osl.state.or.us
>mynetworks = 159.121.122.0/24, 127.0.0.0/8
>mynetworks_style = subnet
>>newaliases_path = /usr/bin/newaliases
>queue_directory = /var/spool/postfix
>readme_directory = /usr/share/doc/postfix-2.0.16/README_FILES
>recipient_delimiter = +
>sample_directory = /usr/share/doc/postfix-2.0.16/samples
>>sendmail_path = /usr/sbin/sendmail.postfix
>setgid_group = postdrop
>smtpd_recipient_restrictions = permit_sasl_authenticated,        
>permit_mynetworks,        reject_unauth_destination,   reject_rbl_client 
>bl.spamcop.net,   reject_rbl_client dnsbl.sorbs.net,   reject_rbl_client 
>cbl.abuseat.org,   reject_rbl_client ix.dnsbl.manitu.net,   
>reject_invalid_hostname,   reject_non_fqdn_hostname,   reject_non_fqdn_sender, 
>  reject_non_fqdn_recipient,   reject_unknown_sender_domain,   
>reject_unknown_recipient_domain,   permit
>>smtpd_sender_restrictions = check_sender_access 
>>hash:/etc/postfix/sender_blacklist
>transport_maps = hash:/etc/postfix/transport
>unknown_local_recipient_reject_code = 450
>
>5. Output from postfinger: link in DEBUG document doesn't allow me accss.
>
>So, there you have it. Thanks to anyone who is interested in assisting. 
>
>
>On Mon, Dec 7, 2009 at 5:42 PM, Wietse Venema <wie...@porcupine.org> wrote:
>
>Christopher Adams:
>>
>>> Thank you for your helpful reply.
>>>>>
>>>>> So, now I have this in main.cf:
>>>>>
>>>>> smtpd_sender_restrictions =
>>>>>                check_sender_access hash:/etc/postfix/sender_blacklist
>>>>>
>>>>> I have a file sender_blacklist:
>>>>>
>>>>> m...@somplace.org/ REJECT
>>>>>
>>>>> I issued the command 'postmap hash:/etc/postfix/sender_blacklist'
>>>>>
>>>>> I issued the command: 'postfix reload'
>>>>>
>>>>> If I send from the address m...@somplace.org, it is not rejected.
>>>>>
>>
>>Now is a good time to stop posting fragments, and follow
>>>>the instructions in the mailing list welcome message.
>>
>>>>        Wietse
>>
>>>>TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail
>>
>>>>TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html
>>
>>>>Thank you for using Postfix.
>>
>
>
>-- 
>Christopher Adams
>adam...@gmail.com
>


      

Reply via email to