<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Postfix%3A_Block_Sender_%28en%29</id>
	<title>Postfix: Block Sender (en) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Postfix%3A_Block_Sender_%28en%29"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Postfix:_Block_Sender_(en)&amp;action=history"/>
	<updated>2026-04-20T16:13:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Postfix:_Block_Sender_(en)&amp;diff=71384&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot; cd /etc/postfix  vi sender_access  Enter the addresses you want to block:   user@abadboy.com        REJECT  myfriend@example.com    OK  junk@spam.com           REJECT  market...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Postfix:_Block_Sender_(en)&amp;diff=71384&amp;oldid=prev"/>
		<updated>2025-01-03T23:44:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; cd /etc/postfix  vi sender_access  Enter the addresses you want to block:   user@abadboy.com        REJECT  myfriend@example.com    OK  junk@spam.com           REJECT  market...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; cd /etc/postfix&lt;br /&gt;
 vi sender_access&lt;br /&gt;
&lt;br /&gt;
Enter the addresses you want to block:&lt;br /&gt;
&lt;br /&gt;
 user@abadboy.com        REJECT&lt;br /&gt;
 myfriend@example.com    OK&lt;br /&gt;
 junk@spam.com           REJECT&lt;br /&gt;
 marketing@              REJECT&lt;br /&gt;
 theboss@                OK&lt;br /&gt;
 deals.marketing.com     REJECT&lt;br /&gt;
 somedomain.com          OK&lt;br /&gt;
&lt;br /&gt;
Save &amp;amp; close file. Run postmap to create the database:&lt;br /&gt;
&lt;br /&gt;
 postmap hash:sender_access&lt;br /&gt;
&lt;br /&gt;
Edit main.cf &amp;amp; add:&lt;br /&gt;
&lt;br /&gt;
 smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access&lt;br /&gt;
&lt;br /&gt;
Restart postfix:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/postfix restart&lt;br /&gt;
&lt;br /&gt;
You can also use spamassassin to blacklist email addresses. Just add to your own spamassassin configuration or to the /etc/mail/spamassassin/local.cf file:&lt;br /&gt;
&lt;br /&gt;
 vi /etc/mail/spamassassin/local.cf&lt;br /&gt;
&lt;br /&gt;
Append blacklist as follows:&lt;br /&gt;
&lt;br /&gt;
 blacklist_from user@abadboy.com&lt;br /&gt;
&lt;br /&gt;
Save and close the file. Restart spamassassin:&lt;br /&gt;
&lt;br /&gt;
 /etc/init.d/spamassassin restart&lt;br /&gt;
&lt;br /&gt;
Spamassassin will mark mail as SPAM instead of rejecting it.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
* http://www.cyberciti.biz/faq/howto-blacklist-reject-sender-email-address/&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>