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

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

2 Answers 2

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/

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

 
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.