Tineeminee wrote:
Hi!
I am trying to block e-mail from certain sites entering out
network. The following is the configuration
which i did.
In /etc/mail/access
I have added the following entries
erocticmailers.com REJECT "Blocked site"
mailheaven.com REJECT "Blocked Site"
then I did
makemap hash /etc/mail/access < /etc/mail/access
Then i restarted sendmail :
service sendmail restart
First look in to the mail header are blocking the actual site from where mail is comming because these kind of site address are not xyz@eroticmailers.com as the username are generated randomly and site address is too long so yo will have to block the site from where it is comming and not eroticmailers.com that address can be found from the header
if not than while fetching mail i.e. while running fetchmail look for the address when the mail of that site is fetched
But i continue to get e-mails from this domain.Can somebody explain me how do I tackle this errror or
is there anything which I have missed?
Thanks in advance
Ram-C