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

Is it possible to configure a postfix (or any other mailprogram for linux) in this way that it is able to recieves/send mails from and to multiple internet mailserver and deliver those mails to local network.

The idea behind it is that I'll set up all my mailaccounts (gmail, hotmail, etc.. ) on my linux machine as a relay account and I send all my mails to this relay and he'll forward it to the corresponding internet server.
The same for recieving mail from the internet account.

Could anyone please point me to a tutorial or man page.
Thanks indeed

share|improve this question
up vote 1 down vote accepted

For sending mails from local network to multiple ISPs you should configure relaymaps This howto should be helpful.

For receiving mail you can use fetchmail, al natxo asenjo suggested.

share|improve this answer
thanks a lot, this was exactly what I was looking for – cb0 Feb 21 '10 at 23:00

so you want to pop mail from gmail/hotmail to your linux computer at home? Use fetchmail for that.

In order to have postfix relay mail in your home lan, consult the postfix docs: , specially the standard configuration examples:

Be advised that unless your isp has a very good reputation, if you try to be your own mail server you will be blocked by a lot of other mail servers. Use your isp smtp server to relay mail from your postfix server.

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.