well listen to me. I am giving you a perfect idea here.
I think you should tell sendmail to accept all emails that are destined to your domain but the user is unknown.
For example
By default when your sendmail receive message for
non-existent-user@YOUR-DOMAIN.COM then it says. Wellll the domain is sure mine and i accept messages for it but i don't know if "non-existent-user" exist on this server. So then sendmail bounces that message back to sender.
So what i am saying is that you need to make sendmail accept messages even if the user doesn't exist on your server, and then send those unknown user's emails to an account on your server named (lets say) "junkcatcher".
And then just write a simple bash script and run it every hour through cron job to delete all mails for "junkcatcher" user... HOWS THAT SOUND ???
ok now let me tell you how to achieve this goal
first in /etc/mail/sendmail.mc file put following
Quote:
define(`LUSER_RELAY',`local:junkcatcher')dnl
|
then after making sendmail.mc file. Restart sendmail
Thats it. Hope it helps you.
and yeah offcourse you need to make junkcatcher account first.
thats it ...
else if you can't do it
contact me
http://kingkashif.com
wooooo let me go to sleep now it's 4:45 AM