LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-04-2009, 04:08 PM   #1
andybrr
Member
 
Registered: Mar 2006
Posts: 54

Rep: Reputation: 15
Question Blocking mailfrom with postfix


Hi experts,

I am trying to create a rule with header checks in postfix but no successfull.

I would to like to block for example mail from: test@test.com
to any email in my domain.

How ?

Thanks
Anderson
 
Old 05-08-2009, 12:25 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
This is probably better done with check_sender_access than with header_checks, e.g.:
Code:
smtpd_recipient_restrictions = 
      permit_mynetworks 
      reject_unauth_destination
      check_sender_access hash:/etc/postfix/sender_access
sender_access:
Code:
baduser@example.com    REJECT
Then, run
Code:
postmap /etc/postfix/sender_access

Last edited by Berhanie; 05-08-2009 at 12:26 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking Common Webmail Addresses (Postfix) carlosinfl Linux - Server 6 09-24-2008 06:52 PM
Blocking mails from specific email addresses/domains in postfix jomy Linux - Networking 1 07-15-2008 08:32 PM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
fc4 iptables blocking yum and smtp (postfix) dtra Linux - Networking 1 04-30-2006 12:05 AM
Blocking JUnk Mails in postfix jomy Linux - Networking 1 12-29-2004 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration