LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2016, 08:20 PM   #1
tandeejay
LQ Newbie
 
Registered: Sep 2015
Location: Brisbane, Australia
Distribution: Fedora 22
Posts: 5

Rep: Reputation: Disabled
postfix - how do I drop emails from external sources to a specific address.


We have a problem where the email address root@<my.domain> has some how got onto a list that spammers like to send their emails to.

we have an alias to re-direct root@<my.domain> to our unix team's email address so everyone has been getting these emails.

What I want to know is if it is possible to block all emails sent to root@<my.domain> unless it comes from one of our servers.

That is, there is no case when that email address should ever be used by an external party, so I would like to drop all emails to that address that our servers haven't sent.

SNMP relay is running postfix, amavis and clamav.
 
Old 07-29-2016, 03:01 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
http://www.postfix.org/RESTRICTION_CLASS_README.html

The suggestions there are easily passed by address spoofing.

Adding this to .procmailrc for the end recipient should help.
Code:
:0
* ^Received: from.*unknown
/dev/null
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Emails from postfix to external address display sender as 'user@mail.example.net' YellowApple Slackware 5 07-12-2013 04:25 AM
[SOLVED] Postfix/Dovecot: Can't receive external eMails, but I can send to an external address Sebi94 Linux - Server 2 07-05-2013 02:07 PM
How to block some specific an emails using Postfix? angel115 Linux - Software 1 04-18-2008 04:52 PM
Postfix: drop relay access denied emails zaheer99 Linux - Server 1 01-17-2008 04:45 AM
Drop pings from specific IP address GUIPenguin Linux - Networking 10 10-13-2004 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:06 PM.

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