3

I managed to set up my first Debian mail server using postfix and dovecot. I use roundcube to access my IMAP accounts which are defined by virtual users in a MySQL data base.

Everything works perfectly so far. What I want to do now is fetching mails from other servers (like hotmail for example) and distribute them to according virtual accounts.

Since I have absolutely no idea where to start here I thought I'd give it a try and just aks for a general direction.

Any help is much appreciated.

jwinkler
  • 33
  • 1
  • 3

1 Answers1

5

You want a tool like fetchmail or getmail. They pick up mail via POP/IMAP and insert them into the local mail system.

You use fetchmail with a config file, usually called .fetchmailrc like this:

poll mail.example.com protocol pop3:
     username "admin" password "dir3cti0n" is "squire" here;
     username "fore" password "0rd3r" is "foreman" here;

The is squire here does the mapping from the remote address to the local one.

(Example pulled from here)

LiveWireBT
  • 113
  • 1
  • 1
  • 7
Sven
  • 98,649
  • 14
  • 180
  • 226