Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

abc.com    REJECT

Now i want to allow above domain for xyz.com. I've tried this as below,

xyz.com    RELAY
abc.com    REJECT

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

It works with xyz.com RELAY.

As per below rule in sendmail access file, when a user from: any@xyz.com to any@abc.com send email, It is being blocking by sendmail.

xyz.com    RELAY
abc.com    REJECT

But I want to allow xyz.com to send email to abc.com whatever it is blocked in access file for other domains/users. So that is why I first RELAY xyz.com and then reject abc.com. 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

1 Answer 1

What you need is documented here: http://www.sendmail.org/tips/relaying

Essentially:

Add "xyz.com RELAY" to /etc/mail/access

echo "xyz.com 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

 
discard

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.