[Dovecot-de] Dovecot Experiment

David Huecking (gmx.net) d.huecking at gmx.net
Fr Jan 23 22:29:51 CET 2015


Moin,

ich lasse mit fetchmail eine kleine Anzahl von Postfächern, POP3 und
IMAP, von verschiedenen Servern abholen und lokal in einen lokalen IMAP
(ein Cyrus weil läuft einmal und ich bin faul) ablegen.
Die externen Postfächer haben halt nur einen Haupt-Ordner, während der
lokale IMAP mittels sieve die Mails in Unterverzeichnisse auch einsortiert.
Fetchmail läuft auf der gleichen Maschine, wie der lokale IMAP.

Die fetchmailrc sieht etwa so aus:
--- 8< ---
set postmaster "david at provider1.de"
set bouncemail
set properties ""

poll mail.provider1.de with proto POP3 uidl
       user 'dahue' there with password 'Geheim1' is david here options
ssl keep warnings 3600
    antispam 571 550 501 554

poll pop.provider2.de with proto POP3 uidl
       user 'abc0815' there with password 'Geheim2' is david here
options ssl warnings 3600
    antispam 571 550 501 554

poll pop.provider3.de with proto POP3 uidl
       user '1010234' there with password 'Geheim3' is david here
options ssl keep warnings 3600
    antispam 571 550 501 554

poll imap.provider4.com with proto imap
       user 'd.huecking at provider4.com' there with password 'Geheim4' is
david here options ssl keep warnings 3600
    antispam 571 550 501 554

poll pop3.provider5.de with proto POP3 uidl
       user 'd.huecking' there with password 'Geheim5' is david here
options ssl warnings 3600
    antispam 571 550 501 554

poll pop.mail.provider6.de with proto POP3 uidl
       user 'd.huecking at provider6.de' there with password 'Geheim6' is
david here options ssl keep warnings 3600
    antispam 571 550 501 554

poll server.meinedomain.net with proto POP3 uidl
       user 'david at meineemails.de' there with password 'Geheim7' is
david here options ssl keep warnings 3600
    antispam 571 550 501 554

--- >8 ---


In den MUAs habe dann verschiedene Absender-Adressen eingerichtet, die
dann entsprechend auswähle, wenn ich Mails versende.


Das Krönchen des Setup ist dann noch, dass ich mit offlineimap über
einen SSH-Tunnel den lokalen IMAP noch auf mein Notebook in einen dort
lokalen (Dovecot) IMAP Server synchronisiere.

Den IMAP Port tunneln:
sudo ssh -f -N -L 10143:localhost:143 remoteuser at imap.remoteserver.tld

Den SMTP-Port tunneln:
sudo autossh -f -N -L 10143:localhost:143
remoteuser at imap.remoteserver.tld -L 10025:localhost:25
remoteuser at smtp.remoteserver.tld


Und die ~/.offlineimaprc
--- 8< ---
[general]
metadata = ~/.offlineimap.IMAP
accounts = MyImap
maxsyncaccounts = 1
ignore-readonly = no
ui = Blinkenlights

[Account MyImap]
localrepository = LocalMyImap
remoterepository = RemoteMyImap
autorefresh = 60

[Repository LocalMyImap]
type = IMAP
remotehost = localhost
remoteport = 143
maxconnections = 5
remoteuser = mylocallogin
remotepass = SuperGeheim
holdconnectionopen = yes
keepalive = 60

[Repository RemoteMyImap]
type = IMAP
remotehost = localhost
remoteport = 10143
remoteuser = myremotelogin
remotepass = NochGeheimer
maxconnections = 5
holdconnectionopen = yes
keepalive = 60
--- >8 ---


So wird offlineimap alle 60 Minuten mit fünf Threads parallel die
imap-Postfächer LocalMyImap und RemoteMyImap synchronisieren und dies
über das Blinkenlights Interface schön darstellen.



Aber was meinst Du mit:
> Wobei ich von den 5 Domains nur auf eine Zugriff habe.


Am 21.01.2015 um 08:23 schrieb Günther J. Niederwimmer:
> Hallo,
> 
> Da ja auch einige Profis für Dovecot (EMailserver) dabei sind,, hätte ich da 
> mal einen Frage.
> 
> Ich würde gerne einen zentralen EMailServer haben, für Sicherungen und 
> Aufbewahrungsfristen.
> 
> Wobei ich von den 5 Domains nur auf eine Zugriff habe.
> 
> Die Postfächer auf den verschiedenen Anbietern sind auf IMAP umgestellt 
> worden.
> 
> Jetzt ist die Frage kann ich die verschiedenen Postfächer einsammeln 
> (fetchmail) und die in einen Zentralen Dovecot verwalten?
> 
> Damit wenigstens meine Leute den Vorteil von IMAP haben.
> 
> Wird ein "grausiges" Projekt aber,,,,
> 
> 
> Auf eine Antwort hoffend, 
> 

-- 
--
Eat, sleep and go running, ;-)
David Huecking.

Encrypted eMail welcome!
GnuPG/ PGP-Key: 0x57809216. Fingerprint:
3DF2 CBE0 DFAA 4164 02C2  4E2A E005 8DF7 5780 9216



Mehr Informationen über die Mailingliste Dovecot