smeserver-mini-qmail/root/etc/e-smith/templates-user/.qmail-junkmail/10deliver_to_junkmail
Jean-Philippe Pialasse 89566576f1 * Tue Dec 03 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.1-1.sme
- initial release of smeserver-mini-qmail from former smeserver-qmail
  . only for final delivery or forward behind qpsmtpd and postfix
  . set /var/qmail/control/qmqpservers server file
  . set junkmail delivery to dovecot-lda
  . we only need configs idhost, qmqpservers, me, defaultdomain, plusdomain, rcpthosts
  . removing controls badrcptto,helohost,smtproutes,rcpthosts,badmailfrom,databytes,bouncefrom,
  bouncehost,concurrencylocal,concurrencyremote,doublebouncehost,doublebounceto,envnoathost
  . removing /var/qmail/users
  . removing alias
  . cleaning actions scripts (TODO: move pseudonym-cleanup to smeserver-email)
2024-12-09 23:37:37 -05:00

4 lines
256 B
Plaintext

| [ -d ./Maildir/.junkmail/ ] || /var/qmail/bin/maildirmake ./Maildir/.junkmail/
| /var/qmail/bin/preline -f /usr/libexec/dovecot/dovecot-lda -a "$RECIPIENT" -d "$USER" -m "junkmail" ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;
./Maildir/.junkmail/