1823359 Members
2559 Online
109654 Solutions
New Discussion юеВ

access file syntax

 
SOLVED
Go to solution
Maaz
Valued Contributor

access file syntax

/etc/mail/access

its works fine
blacklist.org REJECT
i.e if i mail from pc1.blacklist.org, I cant, becuase Access is Denied. OK

but it doest
*.blacklist.org REJECT
i.e if i mail from pc1.blacklist.org, I can successfuly mail... ?

Regards
Maaz


4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: access file syntax

Shalom Maaz,

Access list does not use OS style wild cards.

It doesn't know what to do about the asterisc.

blacklist.org REJECT

works

from:blacklist.org REJECT
or
from:@blacklist.org REJECT

works

There is a lot of magic you can do with the access list.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vitaly Karasik_1
Honored Contributor

Re: access file syntax

blacklist.org REJECT

"match any host or subdomain under the specified domain. (If FEATURE(relay_hosts_only) is set, only the first form works.) " [from http://www.sendmail.org/tips/relaying.html].

so the only one thing you should do it's "turn down" relay_hosts_only flag.
Alexander Chuzhoy
Honored Contributor

Re: access file syntax

if you'd like explicitly allow e-mail from
pc1.blacklist.org,while blocking everything else within blacklist.org, place the following in your access file:

blacklist.org REJECT
pc1.blacklist.org OK
Maaz
Valued Contributor

Re: access file syntax

Millions of Thanks Dear Mr SEP, Vitaly Karasik, and Alexander Chuzhoy for help and explanation ;)

Regards
Maaz