Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 have multiple domains and I want to install postfix to send emails only. How can I set it up on my vps?

share|improve this question
This sounds quite like Postfix default behaviour. Sending emails is not restricted to specific domains. For remote queries you can setup a SASL authentication. – Calimo Sep 12 '12 at 15:31
By default I think postfix also receives, and delivers to local recipients the mails addressed to the configured domains. The wording in question is ambiguous, but I understood this is not wanted? Another detail is, how should the mails be sent, i.e. is there a relation, say, between user names and domains? – taneli Sep 19 '12 at 7:22

During the install process (sudo apt-get install postfix) it will ask you, in an ncurses text-mode GUI, to "select the mail server configuration type that best meets your needs". The correct answer here will be either "Internet site" if you want the machine to deliver mail directly, or "Satellite system" if you want it to relay all mail through a single smarthost instead.

Beyond that, you'll have to be more specific about what you want - should the machine listen for INCOMING smtp traffic, or will it only be relaying mail out from localhost? Should it accept unauthenticated SMTP, and if so, from whom? Should it accept authenticated SMTP traffic - only, or from all but a certain trusted range?

All these things are possible, but we need to know more about what you want to do.

share|improve this answer

Please consult the postfix documentation for details: man 5 postconf

For the sending of mails via smtp it is necessary that you configure at least:

  • mynetworks

    The list of "trusted" remote SMTP clients that have more privileges than "strangers".

Note: For the local delivery of virtual domains you have some more things to do.

share|improve this answer

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.