On Mon, 5 Mar 2001, gary wrote:
> Dear all,
>
> Sorry for been asking the same question, cause I still suffer with mail
> spam...
>
> I been trying on config file in /etc/mail/access or deny.... I tried to
> reject or/and relay by ip or domain name, but looked like whatever setting
> that I did, doesn't take any affect???
>
> as for access file, I did
> -my access file contain
> # by default we allow relaying from localhost...
> localhost.localdomain RELAY
> localhost RELAY
> 127.0.0.1 RELAY
> [EMAIL PROTECTED] 550 Spammers shan't see sunlight here
> 168.13.192.101 REJECT
> umc.aspiren.com REJECT
>
> -makemap hash /etc/mail/access < /etc/mail/access
>
> -/etc/rc.d/init.d/sendmail restart
>
> -then do a testing from [EMAIL PROTECTED] email acc, which outgoing smpt
> pointing to it
>
> but???
>
> Is there anything that I missed out for my config??? Please advise.....
>
> Many thanks for all help....
>
> rdgs,
> gary
>
>
Gary,
Try putting the rule for [EMAIL PROTECTED] at the top of the
rule list. I am no expert, but I think that the first match found is
used, so if the mail is comming from a host that is allowed to relay,
and that rule is found first, then the message is accepted.
I know the format of your rule will work for messages comming from
outside your network, as I have rules using the same format that I know
work.
I am not sure about your network rules, as I use a different form to
reject networks. for example, to reject 216.240.130.0 through
216.240.130.255, I use:
216.240.130 550 No Spam allowed.
I hope this helps. You may also find the docs at
http://www.moongroup.com/pages.php?page=docs helpfull.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list