https://github.com/oetiker/popruxi
a perl based POP3 proxy with UIDL mapping abilities
https://github.com/oetiker/popruxi
Last synced: 3 months ago
JSON representation
a perl based POP3 proxy with UIDL mapping abilities
- Host: GitHub
- URL: https://github.com/oetiker/popruxi
- Owner: oetiker
- License: gpl-3.0
- Created: 2014-03-06T16:59:58.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-17T13:11:05.000Z (almost 10 years ago)
- Last Synced: 2025-01-22T09:42:13.458Z (4 months ago)
- Language: Perl
- Size: 397 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
Popruxi
=======
POP3 proxy with uid mapping abilityUse Case
--------
When migrating POP accounts from one server to another one, the unique IDs
of the POP messages do normally change. For people who use their POP
accounts with 'leave on server' active this will cause all existing messages
to suddenly appear a second time in thier inbox.The reason for this is, that POP clients use the command UIDL to retreive a
list of unique ids for all the messages stored on the server. By comparing
this list with the list for the messages already received, they decide which
messages they have to download from the POP server.When switching server products, the UIDL command will normally return all
new unique ids for the existing messages.With Popruxi the list of UIDs can be synced from the old server. The POP
proxy service will then on the fly replace the unique ids from the new
server with ids from the old server.Installation
------------$ cd /opt
$ git clone https://github.com/oetiker/popruxi
$ cd popruxi
$ ./setup/build-perl-modules.shUsage
-----First you have to sync the accounts you have migrated
$ ./bin/uidmatcher.pl --olduser xxx --oldserver old.xxx.yyy --oldpass=sf83j \
--newserver new.xxx.yyy --newuser xxx --newpass asfoilkjhasf \
--dbfile /opt/popruxi/uidmap.db
Second you can run the pop proxy server$ ./bin/popruxi.pl --server new.xxx.yyy --dbfile /opt/popruxi/uidmap.db
Deployment
----------### RHEL
An init.d and sysconfig configuration file is located in setup/rhel
$ cp setup/rhel/rc.d/init.d/popruxi /etc/rc.d/init.d/
$ chmod 755 /etc/rc.d/init.d/popruxi
$ cp setup/rhel/sysconfig/popruxi /etc/sysconfig/
$ cp setup/rhel/logrotate.d/popruxi /etc/logrotate.d/$ chkconfig --add popruxi
$ service popruxi restart