Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've block a domain in sendmail access table. i.e:    REJECT

Now i want to allow above domain for I've tried this as below,    RELAY    REJECT

But it did not work. Is there any other way to allow a rejected domain for a single domain. In other words block for all but allow for

It works with RELAY.

As per below rule in sendmail access file, when a user from: to send email, It is being blocking by sendmail.    RELAY    REJECT

But I want to allow to send email to whatever it is blocked in access file for other domains/users. So that is why I first RELAY and then reject Its not working. is there any possibility to do as i want.

Is there not any way to do this?

share|improve this question
Any help in this regard? – User4283 Dec 14 '11 at 15:04

What you need is documented here:


Add " RELAY" to /etc/mail/access

echo " RELAY" >> /etc/mail/access

Then run;

makemap hash /etc/mail/access.db < /etc/mail/access
share|improve this answer
+1 for the makemap. It is not enough to edit the file. You have to run makemap next for the changes to take effect – adamo Dec 14 '11 at 6:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.