I think I found a bug, since I just did a clean install and migrate my old customers from 12.0 to Onyx. So I will follow the bug format and explain what I did to fix it.
Plesk Onyx, Version 17.0.17 Update #7, CentOS Linux 7.2.1511 (Core), x86_64
PROBLEM DESCRIPTION: I had a few mailbox with redirect settings into roundcube, at the time using it with postfix + dovecot, when a email arrives matching that filter it throws a error trying to do a forwarding, with the next message:
STEPS TO REPRODUCE: Login with any account into roundcube, create a filter with any condition you could match for test and set the action to redirect to another mailbox outside the server.
ACTUAL RESULT: The mail never arrives to the actual mailbox and is not redirected either, with the error displayed before.
EXPECTED RESULT: Get the email which matched the sieve filter into another mailbox
ANY ADDITIONAL INFORMATION: None
PROBLEM
There was permission errors with sendmail and selinux which wasnt allowing me redirect those emails.
SOLUTION
I just run the following code to fix the problem as a quickfix, maybe not the best way.
Plesk Onyx, Version 17.0.17 Update #7, CentOS Linux 7.2.1511 (Core), x86_64
PROBLEM DESCRIPTION: I had a few mailbox with redirect settings into roundcube, at the time using it with postfix + dovecot, when a email arrives matching that filter it throws a error trying to do a forwarding, with the next message:
Code:
Nov 25 06:23:31 athenas journal: plesk sendmail[32192]: Unable to change ownership of mail file `/usr/local/psa/handlers/spool/messageaZRnm6' (1): Operation not permitted
Nov 25 06:23:31 athenas dovecot: service=lda, [email protected], ip=[]. Error: Sendmail process terminated abnormally, exit status 70
Nov 25 06:23:31 athenas dovecot: service=lda, [email protected], ip=[]. Error: sieve: msgid=<[email protected]>: failed to redirect message to <[email protected]>: Failed to execute sendmail (temporary failure)
Nov 25 06:23:31 athenas dovecot: service=lda, [email protected], ip=[]. Error: sieve: Execution of script /var/qmail/mailnames/xxxx.xxx.xx/xxx/.dovecot.sieve was aborted due to temporary failure (user logfile /var/qmail/mailnames/xxxx.xxx.xx/xxx/.dovecot.sieve.log may reveal additional details)
Nov 25 06:23:31 athenas postfix/pipe[32184]: C22818541773: to=<[email protected]>, relay=plesk_virtual, delay=6226, delays=6226/0.02/0/0.06, dsn=4.3.0, status=deferred (temporary failure. Command output: plesk sendmail[32192]: Unable to change ownership of mail file `/usr/local/psa/handlers/spool/messageaZRnm6' (1): Operation not permitted 4.2.1 Message can not be delivered at this time )
STEPS TO REPRODUCE: Login with any account into roundcube, create a filter with any condition you could match for test and set the action to redirect to another mailbox outside the server.
ACTUAL RESULT: The mail never arrives to the actual mailbox and is not redirected either, with the error displayed before.
EXPECTED RESULT: Get the email which matched the sieve filter into another mailbox
ANY ADDITIONAL INFORMATION: None
PROBLEM
There was permission errors with sendmail and selinux which wasnt allowing me redirect those emails.
SOLUTION
I just run the following code to fix the problem as a quickfix, maybe not the best way.
Code:
# cat /var/log/audit/audit.log|grep "denied"|grep "sendmail"|audit2allow -M sendmail-custom
# semodule -i sendmail-custom.pp