Articles in this section

Mail to specific address fails on Plesk: marked message to be discarded if not explicitly delivered (discard action)

Plesk for Linux mail

Applicable to:

  • Plesk for Linux

Symptoms

  • Email messages are not delivered to a specific email address on Plesk

  • One of the following messages show up in /var/log/maillog:

    hostname dovecot: service=lda, user=jdoe@example.com, ip=[]. sieve: msgid=20180923061540.Horde.zyLIfVJmZISHx3cXgJ9740t@webmail.example.com: marked message to be discarded if not explicitly delivered (discard action)

    hostname dovecot: service=lda, user=jdoe@example.com, ip=[]. sieve: msgid=069001d82be4$a3dc6ee0$eb954ca0$@webmail.example.com: reject action: rejected message from user1@example.net (reject)

  • There is a filter in webmail, or .sieve file with discard directives inside the mailbox directory

    # cat /var/qmail/mailnames/example.com/jdoe/.dovecot.sieve
    # rule:[Blockaddress]
    if header :contains "from" "user1@example.net"
    {
    discard;
    }

Cause

A custom filter (sieve rule), created from webmail, is blocking the emails coming from specific sender.

Resolution

Remove the discard rule in the webmail or command-line.

   
Webmail
   
  1. Log in to webmail

  2. Find the custom filter:

    • Roundcube: Settings > Filters
    • Horde: Mail > Filters
  3. Remove the rule

   
   
Command-Line
   
  1. Connect to the server via SSH

  2. Edit the sieve rule:

    • Roundcube:

      # vi /var/qmail/mailnames/example.com/jdoe/sieve/roundcube.sieve

    • Horde:

      # vi /var/qmail/mailnames/example.com/jdoe/sieve/ingo.sieve

  3. Remove the discard rule lines. For example:

    # rule:[.]
    if true
    {
    discard;
    }

  4. Save the changes

   
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.