Conditional Bounce

Hi,
I wonder if anyone has hared on a good way to do a conditional bounce. Basically, I want to be able to specify "from" blacklist email addresses, if any mail originating from the specified address arrives on a users email then it bounces the mail back. If an mail comes from any non specified list then it arrives fine.
So if a address is on the blacklist it can not email to a specific local email. The issue is I do not want to block it for the whole server but just if this address tries to reach a specific alias. If it does not work by Alias then I would also go with domain.

Any ideas, tips or advice would be very welcome.
I use RHEL + Sendmail + Spamassassin + ClamAV and Procmail
ThomasPartnerAsked:
Who is Participating?
 
jar3817Connect With a Mentor Commented:
the access file will reject the mail for all users, not just one. I haven't heard of any software designed specifically to do this, but you could do it with some programming in conjunction with the Mimedefang milter for sendmail.

How useful is rejecting by sender anyway nowadays? Spam never comes from the same address for more than about 5 minutes at a time.
0
 
ckhsu1977Commented:
Try with /etc/mail/access
See http://www.sendmail.org/m4/anti_spam.html for more detail.
0
 
ThomasPartnerAuthor Commented:
Thanks for the info. This was mainly for a user that has a specific address email him which we wanted to stop but not system wide. I will search a bit deeper into Mimedefang to see if this would work.
0
All Courses

From novice to tech pro — start learning today.