yahesh / mailsync

script to sync a remote maildir to a local maildir via SFTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README:

1.) Copy all mailsync.* files to a location that can not be accessed remotely.
2.) Install https://github.com/yahesh/pushinfo/
3.) Install https://github.com/yahesh/unchroot/
4.) Execute: composer require phpseclib/phpseclib
5.) Configure mailsync.conf.phs and make sure that all paths are accessible.
6.) Configure mailsync.conf.example.phs and make sure that all paths are accessible.
7.) mailsync.phs is called this way: sudo php mailsync.phs <user> <server>
8.) mailsync.phs takes the configuration from mailsync.conf.<server>.phs
9.) Configure CRON to call mailsync.phs regularly:
    */5 * * * * root php /path/to/mailsync.phs <user> <server> >/dev/null 2>&1

About

script to sync a remote maildir to a local maildir via SFTP


Languages

Language:PHP 100.0%