LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   POSTFIX how to block/delete mail from sender... (https://www.linuxquestions.org/questions/linux-newbie-8/postfix-how-to-block-delete-mail-from-sender-129954/)

hct224 12-29-2003 10:04 PM

POSTFIX how to block/delete mail from sender...
 
Hi,
I recently receive a lot of junk mail from these two email address:
Blupill@cw69.com
hallegrene@sm66.com

My question is: can I setup postfix auto delete all mail from these 2 address? If yes, how to do that?

Thanks

iainr 12-30-2003 06:19 AM

One way is to use procmail as a backend mail processor to postfix, then tell procmail to delete all mail from these two accounts.

ugob 12-30-2003 07:30 AM

This can help you out

http://archives.neohapsis.com/archiv...2-09/1719.html

DavidPhillips 12-30-2003 12:53 PM

cat regexp_table

/^From: "MS / REJECT
/^From: "microsoft/ REJECT
/^From: "Microsoft/ REJECT

/^Blupill@cw69.com/ REJECT
/^hallegrene@sm66.com/ REJECT

main.cf

header_checks =
regexp:/etc/postfix/regexp_table
pcre:/etc/postfix/regexp_table

JulianTosh 10-04-2009 02:33 AM

I'm recently frequently getting bad traffic to/from the same user such as

to: user@example.com
from: user@example.com


Is it possible to reject an email based on a sender AND recipient? From what I've got from the man page, the decisions are only based on one line at a time.

If that's the case, what are my options?

DavidPhillips 12-29-2009 10:11 PM

See the regexp_table examples above.

It shows the contents of the file.

To: can also be used.


The main.cf file is where you define the file to use for header checks.


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