How do I activate sieve mail filtering in ISPConfig?

Discussion in 'Installation/Configuration' started by Glucz, Jan 25, 2021.

  1. Glucz

    Glucz New Member

    I want to use the "Send copy to" feature in the user Mailbox. I fill out the same field and I can see the
    redirect :copy "xxxx";
    in
    /var/vmail/xxx/yyy/.ispconfig-before.sieve

    However when I actually send email to this address, the email is not copied. It is only delivered to the original address account.
    How does this work? Do I have to log into the original address account in webmail to activate the forwarding or should it work automatically? Do I have to enable or install a package to get this going?

    Thanks
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Can you share the content of your mail.log when the email comes in? (Carefull not to cut off any lines that could be related)
     
  3. Glucz

    Glucz New Member

    I switched it on and off and removed it (saved) and inserted it again (saved), but it seems to be ignored. This is a 2-year-old installation from the 3.0-3.1 times when this might have been broken according to some posts. The installation is kept fully updated.


    Here is the log. I removed IP's and domains but not fully, to make the pattern identifiable.


    Jan 25 21:35:32 panel1 postfix/smtpd[12990]: connect from panel.emailsxxxx[87.229.xxxxx]
    Jan 25 21:35:32 panel1 postfix/smtpd[12990]: NOQUEUE: filter: RCPT from panel.emailsxxxx[87.229.xxxxx]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<panel.emailsxxxx>
    Jan 25 21:35:32 panel1 postfix/smtpd[12990]: NOQUEUE: filter: RCPT from panel.emailsxxxx[87.229.xxxxx]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10024; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<panel.emailsxxxx>
    Jan 25 21:35:32 panel1 postfix/smtpd[12990]: 4BAD68203C6: client=panel.emailsxxxx[87.229.xxxxx]
    Jan 25 21:35:32 panel1 postfix/cleanup[1802]: 4BAD68203C6: message-id=<[email protected]>
    Jan 25 21:35:32 panel1 postfix/qmgr[13484]: 4BAD68203C6: from=<[email protected]>, size=1344, nrcpt=1 (queue active)
    Jan 25 21:35:32 panel1 postfix/smtpd[12990]: disconnect from panel.emailsxxxx[87.229.xxxxx] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
    Jan 25 21:35:34 panel1 postfix/smtpd[1809]: connect from localhost[127.0.0.1]
    Jan 25 21:35:34 panel1 postfix/smtpd[1809]: E3C3182A2E4: client=localhost[127.0.0.1]
    Jan 25 21:35:34 panel1 postfix/cleanup[1802]: E3C3182A2E4: message-id=<[email protected]>
    Jan 25 21:35:34 panel1 postfix/smtpd[1809]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
    Jan 25 21:35:34 panel1 postfix/qmgr[13484]: E3C3182A2E4: from=<[email protected]>, size=1803, nrcpt=1 (queue active)
    Jan 25 21:35:34 panel1 amavis[16186]: (16186-05) Passed CLEAN {RelayedInbound}, [87.229.xxxxx]:56550 [78.131.95.54] <[email protected]> -> <[email protected]>, Queue-ID: 4BAD68203C6, Message-ID: <[email protected]>, mail_id: 7Cfpa3eOQ9DW, Hits: -1.9, size: 1344, queued_as: E3C3182A2E4, 2605 ms
    Jan 25 21:35:34 panel1 postfix/smtp[1803]: 4BAD68203C6: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.7, delays=0.1/0.01/0/2.6, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E3C3182A2E4)
    Jan 25 21:35:34 panel1 postfix/qmgr[13484]: 4BAD68203C6: removed
    Jan 25 21:35:34 panel1 dovecot: lda([email protected]): msgid=<[email protected]>: saved mail to INBOX
    Jan 25 21:35:34 panel1 postfix/pipe[1810]: E3C3182A2E4: to=<[email protected]>, relay=dovecot, delay=0.05, delays=0.01/0.01/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service)
    Jan 25 21:35:34 panel1 postfix/qmgr[13484]: E3C3182A2E4: removed
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    What version of ISPConfig are you using now, 3.2.2? And what OS is this on?

    At this point (when it hits dovecot), a new message should be injected into postfix, which doesn't show in your logs. If you're on a recent ISPConfig version you would expect to see lmtp delivery, not via deliver, so I'd guess your system is outdated, or did not get reconfigured properly, or possibly you're running an OS where it didn't detect lmtp.

    Under Server Config > Mail, verify your Mailfilter Syntax is set to Sieve. Then run the installer and reconfigure services.
     

Share This Page