This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation.

Difference between revisions of "Use POP3 on a remote catch-all mailbox for local delivery"

From Group-Office Groupware and CRM Documentation
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
You might already have a remote POP-3 mailbox that handles all your mail. When you setup Group-Office in your office it can be very useful to save the remote mail in local mailboxes so you don't have to buy a lot of diskspace at your mail provider and you get optimal speed when reading the mail.
 
You might already have a remote POP-3 mailbox that handles all your mail. When you setup Group-Office in your office it can be very useful to save the remote mail in local mailboxes so you don't have to buy a lot of diskspace at your mail provider and you get optimal speed when reading the mail.
For this setup we assume you have installed the Debian / Ubuntu package "groupoffice-mailserver" or you configured your mailserver manualy like described in the page [[Mailserver]].
+
For this setup we assume you have installed the Debian / Ubuntu package "groupoffice-mailserver" or you configured your mailserver manually like described in the page [[Mailserver]].
  
 
First setup yourdomain.com in Group-Office at the E-mail domains (postfixadmin) module. Configure all mailboxes.
 
First setup yourdomain.com in Group-Office at the E-mail domains (postfixadmin) module. Configure all mailboxes.
 +
 +
Note: Use the real domain and no fake domain on the group-office server. Otherwise the mail will loop infinitely. Fetchmail will try to deliver to the real domain.
  
 
After that install fetchmail:
 
After that install fetchmail:
Line 16: Line 18:
 
poll mailserverof.provider.com localdomains yourmaildomain.com
 
poll mailserverof.provider.com localdomains yourmaildomain.com
 
     envelope X-Envelope-To
 
     envelope X-Envelope-To
     user catchall@yourdomain.com with pass catchall to * here smtphost 127.0.0.1
+
     user catchallusernam@yourdomain.com with pass yourpassword to * here smtphost localhost
 +
limit 20480000 #Make sure the limit is set to the max message size of postfix. Otherwise it can result in fetchmail trying to get the message forever and waste resources!
 
</pre>
 
</pre>
  
Line 29: Line 32:
 
/etc/init.d/fetchmail start
 
/etc/init.d/fetchmail start
 
</pre>
 
</pre>
 +
 +
You should see some info in /var/log/mail.info.
 +
 +
You can find more information and configuration examples in the [http://fetchmail.berlios.de/fetchmail-man.html Fetchmail manual]

Latest revision as of 13:32, 31 January 2017

You might already have a remote POP-3 mailbox that handles all your mail. When you setup Group-Office in your office it can be very useful to save the remote mail in local mailboxes so you don't have to buy a lot of diskspace at your mail provider and you get optimal speed when reading the mail. For this setup we assume you have installed the Debian / Ubuntu package "groupoffice-mailserver" or you configured your mailserver manually like described in the page Mailserver.

First setup yourdomain.com in Group-Office at the E-mail domains (postfixadmin) module. Configure all mailboxes.

Note: Use the real domain and no fake domain on the group-office server. Otherwise the mail will loop infinitely. Fetchmail will try to deliver to the real domain.

After that install fetchmail:

apt-get install fetchmail

edit /etc/default/fetchmail and change:

START_DAEMON=yes

Create or edit /etc/fetchmailrc:

poll mailserverof.provider.com localdomains yourmaildomain.com
     envelope X-Envelope-To
     user catchallusernam@yourdomain.com with pass yourpassword to * here smtphost localhost
 limit 20480000 #Make sure the limit is set to the max message size of postfix. Otherwise it can result in fetchmail trying to get the message forever and waste resources!

Change the permissions:

chmod 0710 /etc/fetchmailrc
chown root:root /etc/fetchmailrc

Now start the deamon:

/etc/init.d/fetchmail start

You should see some info in /var/log/mail.info.

You can find more information and configuration examples in the Fetchmail manual