Skip to content

jakobdalsgaard/mail-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mail-archiver

SMTP mimicking mail archiver daemon; implemented in Rust/Tokio for total and absolute awesomeness.

Unfinished mail-archive daemon, mimicking the SMTP protocol; useful for when mail archiving is needed in an existing mail infrastructure. Just have existing incoming and outgoing mailservers send all email to this daemon, and configure it with proper archiving paths.

Setting up the application is fairly easy. Check out the repository, and issue:

cargo build

The mail-archiver binary is now built; it basically supports the following command line arguments:

Usage: mail-archiver --config [YAML-CONFIG]

Options:
    -c, --config FILE   Yaml configuration file for mail-archiver
    -t, --template      print out a template configuration file and exit
    -h, --help          print this help

Currently it logs on stderr, colored, it reloads the servername and archivers configuration on signal USR1. The application has support for setgid/setuid to happen after TCP port has been acquired.

Application is totally untested. Use at your own risk.

Known problems, 2017-03-06:

  1. It does not parse "RCPT TO" email addresses correctly, it strips spaces and '<>' -- but does not follow the guidelines given here: https://cr.yp.to/smtp/address.html under the section 'How to read an encoded address'.

Previous flaws included, but is not limited to:

  1. Breaks hard when client drops connection; fixed in current commit.
  2. Waits for another line of input after client has entered "QUIT"

Please report if those symptoms re-merge.

Revision history:

v0.1.0 : First revision tagged; functionality is still limited, application is untested, but does not inheritedly break when chatting using telnet.

About

SMTP mimicking mail archiver daemon

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages