LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Auto reply with postfix and procmail . my setting dosnt's work.? (https://www.linuxquestions.org/questions/linux-software-2/auto-reply-with-postfix-and-procmail-my-setting-dosnts-work-498155/)

combilli 11-03-2006 12:26 AM

Auto reply with postfix and procmail . my setting dosnt's work.?
 
I'm using Postfix and Spamassassin.

I'm trying to make an auto-reply mail to mail sender when spamassassin mark the mail as spam mail

I've been searching for time. And I found that I have to do ths by creating a .procmailrc in user's home directory.

I"ve tried 2 actions
first I delete the spam mail by follow code and it works.(I found this code from internet)

:0
*^X-Spam-Status: Yes
/dev/null


then, I try to use the following code for auto reply.(which I found in the same site)

:0
*^X-Spam-Status: Yes
|( formail -rI"This is known as a junk mail"; \
echo "Your mail has been administratively rejected."; \
echo "It was NOT received." \
) | $SENDMAIL -oi -t



But the autoreply script dosent work..
Is the code wrong or I need to set something?
(I'm not sure is that code only work for sendmail but not postfix?)

farslayer 11-03-2006 09:16 AM

Why would you want to autoreply to spam ? there are sevreal reasons NOT to do this.. And I really can't think of any GOOD resons to respond to it..

1. replying to a SPAM Message may verify your emai laddress to the Spammers so you start getting MORE SPAM

2. The From addressess on Most SPAM messages are invalid so replying to these messages will fill up your queue, The messages will sit in your mail queue until they finally time out and are dropped.

3. if you recieve 50,000 spam messages a day and reply to them all, you are doubling the load the SPAM puts on your mail server. Why would you want to double something that is bad to begin with ?

Do yourself a favor and mark or throw away spam, NEVER waste your time or computing resources responding to it.


All times are GMT -5. The time now is 10:49 AM.