Re: disabling certain users from receiving external e-mail messages




Steve Ackman wrote:
To rephrase: I want to have some users to be able to receive messages
that are local, and only a specific set of users be able to receive
messages from any other hosts.

I want to do it in a way so that from the outside world these users do
not exist:

----- The following addresses had permanent fatal errors -----
<user@domain>
(reason: 550 5.1.1 <user@domain>... User unknown)

----- Transcript of session follows -----
... while talking to domain.:
DATA
<<< 550 5.1.1 <user@domain>... User unknown
550 5.1.1 <user@domain>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)

Put the appropriate entry into your access file. It'll
most likely be at /etc/mail/access.

The first few lines of that file will give you the location
of the pertinent README file. There'll also probably be a
few example lines.

Thanks, but I was not able to find a good combination of entries!
What I really would like to have in the access file is something like:

FROM:(not(mydomain)) TO:user REJECT

I tried

user REJECT (but also user@mydomain or TO:user@mydomain)
FROM:mydomain TO: user@mydomain OK

but that rejected both local and outside messgaes to user. Any hint?

Paolo

.



Relevant Pages

  • Re: access db: blocking entire domain [no PTR-A loop : FEATURE(`anfi/rsdnsbl)]
    ... Once upon a time, Jim McCullars said: ... the access file and some hosts in some.domain were still able to send mail. ... I knew that if sendmail detected discrepancies between the A records and the ...
    (comp.mail.sendmail)
  • Re: [SLE] how do i stop this smtp access
    ... Because i have poeple that i know that uses the hosts.. ... used a friend's computer there and changed some sendmail rules to allow ... people from *.tw kept on trying to use my email server... ... >Why don't you use the access file to deny access from these hosts, ...
    (SuSE)
  • Re: [SLE] how do i stop this smtp access
    ... Why don't you use the access file to deny access from these hosts, ... or even better, firewall rules? ... Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ...
    (SuSE)