I have been looking for this but I can't find anything. 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.
How to configure postfix to permit relaying from some ip address but only using one domain as sender
-
Can you clarify whether the domain is a destination or a source address relative to the server you're configuring?– Jeff FerlandNov 30, 2012 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– gofferDec 2, 2012 at 22:07
2 Answers
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. http://www.postfix.org/SASL_README.html#client_sasl_sender And in other terms. http://www.cyberciti.biz/faq/postfix-multiple-isp-accounts-smarthost-smtp-client/
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.
-
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.– gofferNov 30, 2012 at 23:37