Computer Forums

Computer Forums (http://www.geekboards.com/forums/index.php)
-   Building Websites (http://www.geekboards.com/forums/forumdisplay.php?f=3)
-   -   How to discard mail by any user in sendmail (http://www.geekboards.com/forums/showthread.php?t=817)

er_gaurav22 11-08-2007 02:33 PM

How to discard mail by any user in sendmail
 
Hi All,

i m discarding mail from jr*@* through /etc/mail/access

like this :-

vi /etc/mail/access

jr*@* DISCARD


But its not working.


so please help me how to discard mail from user starts from jr of every domain.

John 11-09-2007 01:20 AM

I have no experience with sendmail as I only use qmail on my servers. The following site might be useful, although I cannot say one way or the other whether or not it is a good or accurate solution. The site was last updated over 2 years ago: http://www.brandonhutchinson.com/del...ail_queue.html

On that page scroll down to the section titled "Removing mail by email address" - that script is for removing mail based on the address receiving it. Maybe you could modify the script to instead remove mail based on the sender.

I highly suggest testing this out on a development/testing server before running it on your production box.


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

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.