Hi,
I am using OpenSMTPD (6.0.2) on Debian Stretch and want to pass the delimiter
values via procmail to dovecot sieve.
My smtpd.conf:
pki server.pragmasec.nl certificate
"/etc/letsencrypt/live/pragmasec.nl/fullchain.pem"
pki server.pragmasec.nl key "/etc/letsencrypt/live/pragmasec.nl/privkey.pem"
listen on localhost
listen on ens3 port 25 tls pki server.pragmasec.nl hostname server.pragmasec.nl
auth-optional
listen on ens3 port 587 tls-require pki server.pragmasec.nl hostname
server.pragmasec.nl auth-optional
table vdomains file:/usr/local/etc/vdomains
table vusers file:/usr/local/etc/vusers
expire 7d
limit mta inet4
accept from any for domain <vdomains> virtual <vusers> deliver to mda
"/usr/bin/procmail -f -"
accept from local for any relay
My .procmailrc:
SHELL=/usr/local/bin/bash
VERBOSE=yes
DELIVER=/usr/lib/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT"
#DELIVER=/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -a %{rcpt}
LOGFILE=/var/log/procmail.log
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
#DROPPRIVS=yes
DEBUG=YES
#
### virus scanning
#
:0fw
| /usr/local/procmail2virustotal/checkvirus.py
:0
* ^X-Virus-Flag: YES
$DEFAULT/.Virus/new
:0 w
| $DELIVER
:0
$DEFAULT
The thing is, when I am using postfix and use '/usr/bin/procmail -p’ it proxies
the [email protected] nicely to procmail which then delivers it to
dovecot sieve and it finally filters the delimiter nicely.
If I change to OpenSMTPD and use the same procmail command the detail is cut of
by OpenSMTPD:
procmail: Assigning "DEFAULT=/home/mve/Maildir/"
procmail: Assigning "ORGMAIL=/home/mve/Maildir/"
procmail: Assigning "DEBUG=YES"
procmail: Executing "/usr/local/procmail2virustotal/checkvirus.py"
procmail: [12334] Mon Aug 28 11:47:43 2017
procmail: No match on "^X-Virus-Flag: YES"
procmail: Executing "/usr/lib/dovecot/dovecot-lda"
procmail: Assigning "LASTFOLDER=/usr/lib/dovecot/dovecot-lda"
procmail: Notified comsat: "mve@:/usr/lib/dovecot/dovecot-lda"
Subject: sd
Folder: /usr/lib/dovecot/dovecot-lda
Notice the comsat line where mve@ is passed and not mve+detail@ to dovecot
sieve.
My question: what kind of command do I have to use in smtpd.conf to pass these
values to procmail?
I’ve got it working with dovecot-lda directly by using: deliver to mda
"/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -a %{rcpt}” but when
changing this to deliver to mda “/usr/bin/procmail -f %{sender} -a %{rcpt}” it
does not work.
Also tried the -p option and -f - but all options seem not to pass the
user+detail@ to procmail when using OpenSMTPD.
Not saying this is because of OpenSMTPD and mostly my own config error but I am
just trying to figure out if someone got it working with procmail preserving
the user+detail@ with procmail.
Thanks for any help.
regards,
Michiel
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]