Using CC Custom mail filter recipe does not work with single recipient

Discussion in 'General' started by Azimuth, Sep 15, 2010.

  1. Azimuth

    Azimuth New Member

    When we have a mailbox that we want to receive a copy of messages to another recipient, we use CC rules to achieve this.
    here's an example: [email protected] should deliver a copy of the message to [email protected]
    so in the alerts mailbox under custom rules we put:
    cc "[email protected]"

    this rule does not work unless there are at least 2 recipients in the custom rules box. ie:
    cc "[email protected]"
    cc "[email protected]"

    has anyone experienced this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe its a problem with a missing newline at the end. If you have two recipients, do both recipients receive a copy or only the first one?
     
  3. Azimuth

    Azimuth New Member

    both receive a copy.
    I also assumed this and tested single recipient with extra returns at the end.
    additionally, adding the single recipient twice does not resolve the problem.
    The setup is a pretty standard Ubuntu 10.04 x64 with courier setup.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats strange indeed. You might want to take a look into the .mailfilter file for the user which is in /var/vmail/mailfilters/...... if there is anything that looks not normal when only one recipient is added. You can try to add a newline in that file manually as it might be that the newline at the end gets stripped out by ispconfig when the file gets written.
     
  5. Azimuth

    Azimuth New Member

    Very strange. the .Mailfilter files look pretty much the same.
    FYI extra blank lines are not filtered out by ISPCONFIG.
    I added a second recipient, then removed the second recipient and now it's working with single recipient.
     

Share This Page