Hi,
How can I setup a sendmail to only relay mails sent to some recipients, and block any other mail ? I have a
list of "trusted" recipients, allowed to received mail ;
all other recipients (inside and outside my intranet)
should not receive any mail at all.
I tried to use the access.db mecanism :
trusted1@domain.org RELAY
trusted2@domain.org RELAY
I also tried :
to:trusted1@domain.org RELAY
to:trusted2@domain.org RELAY
it doesn't work in both cases ; seems that the default
behaviour is to *not* block mail. if wildcards could be
used, I would do something like :
to:trusted1@domain.org RELAY
to:trusted2@domain.org RELAY
* REJECT (or "ALL REJECT"
I guess wildcards cannot be used in access file. Does anybody know how to do such filtering with access file
(or any other way) ?
Any help is welcome
How can I setup a sendmail to only relay mails sent to some recipients, and block any other mail ? I have a
list of "trusted" recipients, allowed to received mail ;
all other recipients (inside and outside my intranet)
should not receive any mail at all.
I tried to use the access.db mecanism :
trusted1@domain.org RELAY
trusted2@domain.org RELAY
I also tried :
to:trusted1@domain.org RELAY
to:trusted2@domain.org RELAY
it doesn't work in both cases ; seems that the default
behaviour is to *not* block mail. if wildcards could be
used, I would do something like :
to:trusted1@domain.org RELAY
to:trusted2@domain.org RELAY
* REJECT (or "ALL REJECT"
I guess wildcards cannot be used in access file. Does anybody know how to do such filtering with access file
(or any other way) ?
Any help is welcome