pf2s3

command module
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2018 License: GPL-2.0 Imports: 13 Imported by: 0

README

Build Status

Postfix To S3

Ok, so I've been using this on my Raspberry Pi network for a while now, figure I'd put it here for public consumption. This is intended to be run as a Postfix delivery command. For example, if you have a address "upload@foo.com", then if you configure that alias to be upload@foo.com |"path/to/pf2s3 -b BUCKET-NAME -p PATH-IN-BUCKET " and have the needed aws credentials set via the $HOME/.aws/credentials` file for the user it will run as, then Postfix will send the message over standard in and the executable will upload it.

For the name of the object in s3 it will extract the Message-Id header it finds in the email. It will also extract the sender and recipient address and set them as the values of the tags "sender" and "recipient", respectively.

You will need to create the bucket prior to running this for the first time. Included in the repo is a simple test message.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL