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 was looking for this but I can't find any thing. I want to permit one ip address to relay mails by my servers but only using one domain as sender. Can I ? If yes, how. I use postfix 2.9.4. Sorry my english and thanks for any answers.

share|improve this question
Can you clarify whether the domain is a destination or a source address relative to the server you're configuring? – Jeff Ferland Nov 30 '12 at 22:43
Yes, I have this domain in virtual_mailbox_domains, How I should to understood 'relative', I know this address, and I want to set server behavior that way that if this ip address try to send some email as fixed sender domain, I allow this. But all mail in this fixed domain I delivery localy – goffer Dec 2 '12 at 22:07

Yes you can do this with.You can specify a user to send mails from an Ip/Host by using sender dependent sasl authentication. Follow these links. And in other terms.

share|improve this answer

You could write a policy server to accomplish that. That process would receive both the client_address address and the sender specifying the information that you need to make that determination. The protocol that policy servers need to speak is quite simple.

share|improve this answer
Hello, Thank you for super fast answer, it is not stupid solution but i think that writing, implementation, maintenance separate policy server for 3 customers is little overkill. I hope that exists simplest solution. – goffer Nov 30 '12 at 23:37

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.