* Sat Oct 11 2025 Brian Read <brianr@koozali.org> 11.0.0-5.sme
- Add Dovecot Sieve generation and application [SME: 13232]
This commit is contained in:
@@ -18,15 +18,12 @@
|
||||
if ($EmailForward eq 'forward');
|
||||
}
|
||||
|
||||
if ($qmail{FilterType})
|
||||
{
|
||||
return '| /usr/bin/procmail ~/.procmailrc ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;'
|
||||
if ($qmail{FilterType} eq 'procmail');
|
||||
|
||||
return '| /usr/bin/maildrop ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;'
|
||||
if ($qmail{FilterType} eq 'maildrop' );
|
||||
}
|
||||
|
||||
return '# Procmail/Maildrop disabled for all users'
|
||||
}
|
||||
if ($qmail{FilterType})
|
||||
{
|
||||
return '| /usr/bin/procmail ~/.procmailrc ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' if ($qmail{FilterType} eq 'procmail');
|
||||
return '| /usr/bin/maildrop ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' if ($qmail{FilterType} eq 'maildrop');
|
||||
return '| /var/qmail/bin/preline -f /usr/libexec/dovecot/dovecot-lda -a "$RECIPIENT" -d "$USER" ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' if ($qmail{FilterType} eq 'sieve');
|
||||
}
|
||||
return '# Procmail/Maildrop/sieve disabled for all users'
|
||||
}
|
||||
}
|
||||
@@ -22,15 +22,12 @@
|
||||
if ($EmailForward eq 'forward');
|
||||
}
|
||||
|
||||
if ($qmail{FilterType})
|
||||
{
|
||||
return '| /usr/bin/procmail ~/.procmailrc ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;'
|
||||
if ($qmail{FilterType} eq 'procmail');
|
||||
|
||||
return '| /usr/bin/maildrop ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;'
|
||||
if ($qmail{FilterType} eq 'maildrop' );
|
||||
}
|
||||
|
||||
return '# Procmail/Maildrop disabled for all users'
|
||||
if ($qmail{FilterType})
|
||||
{
|
||||
return '| /usr/bin/procmail ~/.procmailrc ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' if ($qmail{FilterType} eq 'procmail');
|
||||
return '| /usr/bin/maildrop ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' if ($qmail{FilterType} eq 'maildrop');
|
||||
return '| /var/qmail/bin/preline -f /usr/libexec/dovecot/dovecot-lda -a "$RECIPIENT" -d "$USER" ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' if ($qmail{FilterType} eq 'sieve');
|
||||
}
|
||||
return '# Procmail/Maildrop/Sieve disabled for all users'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user