mpop/msmtp/procmail autoresponder to encrypted mail

This commit is contained in:
lesion 2018-08-09 16:48:47 +02:00
parent 56a29562d1
commit fdfba24a4f
No known key found for this signature in database
GPG Key ID: 352918250B012177
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,16 @@
defaults
tls on
tls_starttls on
tls_certcheck on
delivery mda "/usr/bin/procmail -f '%F' -d $USER"
auth on
account anna
host ssl0.ovh.net
user anna@fugadalcontrollo.org
password *********
tls_trust_file /etc/ssl/certs/ca-certificates.crt
keep on
only_new

View File

@ -0,0 +1,13 @@
account default
tls on
tls_starttls off
tls_certcheck on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
host ssl0.ovh.net
port 465
protocol smtp
auth on
from anna@fugadalcontrollo.org
user anna@fugadalcontrollo.org
password *******

View File

@ -0,0 +1,19 @@
SHELL=/bin/sh
LOGFILE=$HOME/.procmail.log
LOG=""
VERBOSE=yes
MAILDIR=$HOME/Maildir
DEFAULT=Maildir/
:0c:
* ^TO_anna@fugadalcontrollo.org
{
PGP_OK=`gpg --decrypt --auto-key-retrieve 1>/dev/null && echo 1`
:0
* ? test -n "$PGP_OK"
| (formail -rI"From: anna@fugadalcontrollo.org" -I "Subject: [fugadalcontrollo] Grande, grazie della mail") | msmtp -a default -t
:0
| (formail -rI"From: anna@fugadalcontrollo.org" -I "Subject: [fugadalcontrollo] No! Così ci beccano") | msmtp -a default -t
}