local_imap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
local_imap [2015/10/23 18:28] – [HTTPS for roundcube] breetai | 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 237: | 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 252: | 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 280: | 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 296: | 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 === |
local_imap.1445624886.txt.gz · Last modified: 2015/10/23 18:28 by breetai