[GRLUG] Forwarding email files from maildir

Grand Rapids Linux Users Group grlug at grlug.org
Mon May 18 09:22:21 EDT 2020


On Mon, 18 May 2020, Grand Rapids Linux Users Group wrote:

> To clarify how you'd do that:
>
> for x in /path/to/files/*; do
>   (
>    echo "HELO localhost"
>    echo "MAIL FROM: <sender at address>"
>    echo "RCPT TO: <recipient at address>"
>    echo "DATA"
>    cat ${x}
>    echo ""
>    echo "."
>  ) | sendmail -B
> done
>
Unfortunately, that is not really a good solution, as it sends the entire
raw message, including headers (typically at least twice as big as the
content), and, if the source was Outlook, a couple orders of magnitude of
encoded text.

	TFTR!

	Lee


More information about the grlug mailing list