local_imap
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
local_imap [2015/05/16 14:35] – external edit 127.0.0.1 | local_imap [2016/03/27 14:37] (current) – [Local Dovecot IMAP server] breetai | ||
---|---|---|---|
Line 36: | Line 36: | ||
< | < | ||
- | apt-get | + | apt-get |
</ | </ | ||
Standard settings don't allow dovecot to manage /var/mail/ and it goes bonkers because of that. It shows this with the following error in / | Standard settings don't allow dovecot to manage /var/mail/ and it goes bonkers because of that. It shows this with the following error in / | ||
Line 104: | Line 104: | ||
==== Local Roundcube server ==== | ==== Local Roundcube server ==== | ||
- | Debian just decided to drop Roundcube from ' | + | Debian just decided to drop Roundcube from ' |
+ | (**Update 2015-10-23**: | ||
- | Manually pulled the roundcube packages from Debian Unstable. Went for th Sqlite edition. also got -plugins and -plugins-extra. Try to install them all using "dpkg -i ...." and see how it goes. | + | Manually pulled the roundcube packages from Debian Unstable. Went for the Sqlite edition. also got -plugins and -plugins-extra. Try to install them all using "dpkg -i ...." and see how it goes. |
roundcube-sqlite3: | roundcube-sqlite3: | ||
Line 197: | Line 198: | ||
imapcopy --host1 imap.xs4all.nl --user1 jhaand --host2 localhost --user2 jhaand | imapcopy --host1 imap.xs4all.nl --user1 jhaand --host2 localhost --user2 jhaand | ||
</ | </ | ||
- | And them we [[http:// | + | And them we [[http:// |
< | < | ||
Line 236: | Line 237: | ||
==== Configure fetchmail to deliver mail to local users ==== | ==== Configure fetchmail to deliver mail to local users ==== | ||
Currently I run fetchmail as a local user. Every time I open a shell, the login script checks if I'm already running fetchmail. If it isn't, then fetchmail is started. This needs to be reconfigured to a global fetchmail configuration that also delivers for the new user. | Currently I run fetchmail as a local user. Every time I open a shell, the login script checks if I'm already running fetchmail. If it isn't, then fetchmail is started. This needs to be reconfigured to a global fetchmail configuration that also delivers for the new user. | ||
+ | **Update 2015-10-23** Procmail makes much more sense to use. Because the local exim server doesn' | ||
1 First disable the local E-mail for the local user. | 1 First disable the local E-mail for the local user. | ||
- | | + | |
- | | + | |
4 Enable fetchmail service via / | 4 Enable fetchmail service via / | ||
| | ||
Line 251: | Line 253: | ||
fi | fi | ||
</ | </ | ||
+ | |||
+ | === Global procmailrc === | ||
+ | This should just remain a back to basics procmailrc. Deliver all the mail in the user's mailbox. | ||
+ | It looks like this: | ||
+ | < | ||
+ | MAILDIR=/ | ||
+ | DEFAULT=$MAILDIR/ | ||
+ | LOGFILE=/ | ||
+ | VERBOSE=on | ||
+ | </ | ||
+ | |||
+ | Check that all the directories exist and the individual mail files have user and group owners as " | ||
+ | |||
=== Global fetchmailrc === | === Global fetchmailrc === | ||
- | Now lets create a new global / | + | Now lets create a new global / |
< | < | ||
# / | # / | ||
Line 279: | Line 294: | ||
poll pop.xs4all.nl protocol POP3: | poll pop.xs4all.nl protocol POP3: | ||
envelope | envelope | ||
- | aka xs4all.nl | + | user " |
- | user " | + | mda '/ |
- | user " | + | |
+ | poll pop.xs4all.nl protocol POP3: | ||
+ | envelope | ||
+ | user " | ||
+ | mda "/ | ||
</ | </ | ||
The with *envelope* is needed to prevent warnings from syslog. It identifies which header fetchmail should use to feed it to the local mail server. | The with *envelope* is needed to prevent warnings from syslog. It identifies which header fetchmail should use to feed it to the local mail server. | ||
- | The second value with *aka* proved more tricky. All the mail was delivered | + | The *mda* command tells fetchmail to use procmail and tell procmail to deliver it to the local user. also don' |
- | With the new user it didn't work that great. Now all the 160+ mails were delivered | + | |
+ | Also addressing multiple users was quite difficult. A lot of tutorials use either the multiple users per single drop and don' | ||
Make sure that the daemon starts with the following setup for / | Make sure that the daemon starts with the following setup for / | ||
Line 295: | Line 315: | ||
=== Test run === | === Test run === | ||
- | The test run didn't pan out that well. It's better to just start the daemon in regular mode. But having acute logging open of / | + | The test run didn't pan out that well. It's better to just start the daemon in regular mode. But having acute logging open of / |
=== Enable fetchmail globally === | === Enable fetchmail globally === | ||
Line 309: | Line 329: | ||
It should be possible to wipe all the mail folders using the IMAP protocol from a command line tool. Still need to figure out how. | It should be possible to wipe all the mail folders using the IMAP protocol from a command line tool. Still need to figure out how. | ||
+ | |||
===== Enabe encrypted remote IMAP ===== | ===== Enabe encrypted remote IMAP ===== |
local_imap.1431786901.txt.gz · Last modified: 2015/10/23 18:11 (external edit)