Store email from stdin to a mailping incoming maildir
mailping-store
mailping-store reads an email from standard input and writes it into a maildir chosen according to following logic:
\h'-04' 1.\h'+02'If EXTENSION is not set, select Maildir.
\h'-04' 2.\h'+02'If EXTENSION is set, ensure its value is safe to use, and select EXTENSION/incoming.
mailping-store is usually run from a .forward file, and thus the filenames above are relative to the home directory of the account in question.
Normally, mailping-store is used to ease the setup of new circuits to probe from mailping-cron. This is done with a system account mailping using <mailping@yourhost.example.com> as the from address, and <mailping+circuitname@yourhost.example.com> (or some remote address aliased to that) as the to address. In fact, these are the default values for from and to, so you can just skip creating those configuration files.
This allows adding new test circuits without any changes to the email configuration.
/var/lib/mailping/state/circuit/incoming
Maildir to store the email to.
/var/lib/mailping/state/Maildir/
Maildir to store the email to, if no extension was given.
MAILPING_STATEDIR
Override the location of the state directory. Circuit states are stored in the state subdirectory of this directory, in subdirectories named after the circuit name. Default: /var/lib/mailping
EXTENSION
Name of the current circuit to store the mail for.
Copyright © 2004 Havoc Consulting