diff --git a/README.md b/README.md index 335e0f1..f9d641b 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,10 @@ There are two addition: `email-tls-skip-verify` and `email-addr-to`. If you are ## Quick start ``` -wget https://github.com/cycloidio/cy-smtp/releases/download/v0.2.1/cy-smtp-v0.2.1-linux-amd64.tar.gz +wget https://github.com/cycloidio/cy-smtp/releases/download/v0.2.3/cy-smtp-v0.2.3-linux-amd64.tar.gz tar xf cy-smtp-v*-linux-amd64.tar.gz -./cy-smtp --config-file /opt/config.yml +export SMTP_FROM=$(grep email-addr-from config.yml | sed 's@"@@g;s@<@@g;s@>@@g' | sed -E 's/.* ([^ ]+@[^ ]+)/\1/') +export SMTP_RETURN=$(grep email-addr-return-path config.yml | sed 's/"//g' | awk '{print $2}') +./cy-smtp --config-file /opt/config.yml -f $SMTP_FROM -t $SMTP_RETURN ```