|
Home > Archive > Linux/Unix > August 2002 > .procmailrc
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| ruscorp 2002-08-14, 10:55 pm |
| Greeting Non-windows people,
It's nice to see not everyone has been brainwashed my Micro$oft, but anyway I have a question about .procmailrc.
I recently set it up on my bsd box to forward email from mydomain.com to other email addresses. (eg: webmaster@mydomain.com gets forwarded through .procmailrc to ImACool3r33tdud3@aol.com) now, how do I tell .procmailrc to automatically discard e-mails that come to some e-mail addresses like say sales@mydomain.com or help@mydomain.com? The problem really is I have spam coming to a certain email @mydomain.com so I just want all incoming mail to that address to be discarded automatically. | |
| Mr. Linux Guy 2002-08-15, 10:07 am |
| Edit /etc/mail/access.db to deny access to sendmail from spammers. Then use the filtering tools of procmail to ban domains that you dislike. If you have not already downloaded map-regex-2.8.tar, get it now at http://www.stud.uni-hannover.de/~jk/map-regex/ . Afterwards unpack the file:
% tar -xf map-regex-2.8.tar<ENTER>
This will create a directory map-regex-2.8 within your current working directory. Copy checkregex.m4 to the hack subdirectory within your cf directory. Then add the following two lines to your cf/generic-irix6.mc file:
define(`_CHECKREGEX_',1)dnl
HACK(checkregex,`(@.*[0-9]{2,}.*\.com|^[0-9]+<@|pussy|porn|xxx)')dnl
This REGEX pattern rejects addresses like:
`.com' domain contains at least two subsequent numbers (`@0123456.com', `@12domain.com', `domain12.com', `dom1234ain.com')
Username (part before `@') consists of only numbers (`0123456@mail.domain')
Address contains either `pussy', `porn' or `xxx'
You can change and/or adapt this pattern to your needs. This enhanced anti-spam configuration allows us to reduce the size of the junkmail database. If you apply the above mentioned pattern, you can start with this version of /etc/junkmail. This will allow more sophistocated banning of email rather than a blanket ban from certain domains. let me know if you run into trouble. | |
| ruscorp 2002-08-15, 10:34 am |
| Thanks for the help, but it's all greek to me. I don't need a big spam net because I have already pin-pointed the 2 addresses at my domain being spammed so therefore I would just like to just deny all e-mail from anyone to those addresses. I don't want any mail to be received at for example at joeblow@mydomain.com because I know that e-mail has been added to a list. | |
| Mr. Linux Guy 2002-08-15, 2:26 pm |
| Ok, do you have a /etc/mail/access.db file anywhere? Edit it and add the offending domain there. If you are running sendmail, you should have it somewhere. That will cake tare of your problem. | |
|
|
| ruscorp 2002-08-16, 5:23 pm |
| marathoner: Thanks, already been there though, no such luck. |
|
|
|
|