Git Product home page Git Product logo

forward-mail's Introduction

forward-mail

基于javamail的简单邮件转发工具,支持pop3协议与smtp协议,配合crontab定时使用

部署方式

  • 安装最新的maven

  • 编译并生成jar文件:mvn package

  • 在某个服务器上自己的用户下建立一个目录,例如: /home/username/forward-mail

  • 建立一个子目录用于存放日志文件,例如:/home/username/forward-mail/log

  • 利用ftp等方式将编译好的jar文件放入服务器上你的目录中

  • 编写一个启动shell文件(例如forward-mail.sh):

sh /home/username/.bash_profile
java -jar /home/username/forward-mail/forward-mail-0.1.jar 132.228.56.206 132.228.56.136 username password [email protected] /home/username/for
ward-mail/log/
  • 给shell文件可运行:chmod +x forward-mail.sh

  • 编写一个crontab任务(例如每30分钟运行一次): crontab -e进入编辑状态

*/30 * * * * /home/username/forward-mail/forward-mail.sh >> /home/username/forward-mail/log/run.log

forward-mail's People

Contributors

courage-zen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.