Operating System - HP-UX
1870811 Members
3163 Online
110560 Solutions
New Discussion

Filter email using sendmail

 

Filter email using sendmail

Firstly ,i have used access.db to block the email in sendmail. it is working fine. But the sendmail only block the user from sending email not blocking to the email listed. Here is the detail.
#cat access
[email protected] REJECT

#telnet localhost 25
~
mail from: [email protected]
550 5.7.1 [email protected]... Access denied
mail from : [email protected]
250 2.1.0 [email protected]... Sender ok
rcpt to : [email protected]
250 2.1.5 [email protected]... Recipient ok
rcpt to :[email protected]
250 2.1.5 [email protected]... Recipient ok

I'm only unable to send from the email. But,
I'm still able to send to the email. Please help if i miss anything.
thanks
5 REPLIES 5
Steven Schweda
Honored Contributor

Re: Filter email using sendmail

> [...] sendmail

Sendmail version? HP-UX version?

I'm not a serious sendmail user, so I know
nothing, but as I read:

http://www.sendmail.org/m4/anti_spam.html

I see:

[...]
An ``access'' database can be created to
accept or reject mail from selected domains.
[...]

Note: "from".

> rcpt to : [email protected]
> 250 2.1.5 [email protected]... Recipient ok

I assume that you don't run gmail.com, so why
do you care if someone sends a message to an
address in that domain? Is there some actual
problem which you are trying to solve?

Re: Filter email using sendmail

Steven,
basically what i want to do is same as this link.
http://www.sendmail.org/m4/anti_spam.html#access_db_fine

I have insert FEATURE(access_db,`hash -T -o /etc/mail/access')dnl in the sendmail.mc
and restart the sendmail. After i create my access file. i compile using makemap command.
My access file lokes like this.
To:[email protected] REJECT

Please help to verify what i'm missing.
Thanks

Re: Filter email using sendmail

Hi all,
anyone have any idea about this?
Or i wrongly explain my question here..
Please help. thanks
VK2COT
Honored Contributor

Re: Filter email using sendmail

Hello,

a) What does this test show:

# sendmail -bt
> /map access [email protected]

b) And this test:

# sendmail -bt

> check_rcpt [email protected]

If they do not show rejection, than your
sendmail configuration or the access map
is not used properly.

Cheers,

VK2COT
VK2COT - Dusan Baljevic

Re: Filter email using sendmail

No, it didn't reject the email.