Linux / UNIX Tech Support Forum
This is a discussion on Sendmail block email based on Body / Words within the Mail Servers forums, part of the Mastering Servers category; Hi. I'm using sendmail. I want to block mails contain a single word in access file e.g., example* REJECT sendmail ...
|
Register free or login to your existing account and remove all advertisements. |
|
|||||||
| Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi.
I'm using sendmail. I want to block mails contain a single word in access file e.g., example* REJECT sendmail block full email example@example REJECT ... this works in access file but example* REJECT does not work.. any help please.. Regards Asim |
| Sponsored Links | ||
|
|
|
||||
|
The access database defines what host(s) or IP addresses have access to the local mail server and what kind of access they have. So you cannnot use the same. You may need to use Procmail to filter how email based upon its body. Configure MTA to use procmail and add something as follows to your $HOME/.procmailrc
Code:
:0B example * /dev/null
__________________
Vivek Gite Linux Evangelist Last edited by nixcraft; 04-17-2009 at 11:03 AM. Reason: .procmailrc example added |
![]() |
| Tags |
| email , email filtering , procmail , sendmail , sendmail filtering |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sendmail catch all email | ephdia | Mail Servers | 0 | 03-09-2009 04:29 PM |
| How to Block Spam Mails in Sendmail | ppnair | Mail Servers | 3 | 08-28-2008 01:06 AM |
| how to send mail body with multiple attachments | amankhurana | Shell scripting | 1 | 04-07-2008 02:44 AM |
| How to send mail body with multiple attachments | amankhurana | Shell scripting | 0 | 04-02-2008 11:34 AM |
| Sendmail control incoming email to accept, deny, or relay | jerry | All about FreeBSD/OpenBSD/NetBSD | 1 | 06-22-2006 02:39 PM |