mail forward AND keep a copy?

Discussion in 'Installation/Configuration' started by Turgut Kalfaoglu, Jan 15, 2025.

  1. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    How do we get to forward an email and keep a copy on the server?
    A user complained that after migration his emails were not coming locally to the server, but only going to the forward (a gmail account).
    So I deleted his email account and recreated it. I selected "Send copy to :" and put the gmail mail address there.
    "Enable receiving" is selected.. but the test emails I send only go to the gmail and not stored locally.
    what else do I need to do?
    many thanks, -t
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You must enable the 'Copy during delivery' checkbox.
     
  3. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    Many thanks. The problem is still continuing. However when postfix is starting it's issuing a:
    Code:
    Jan 15 18:32:32 latte postfix/tlsmgr[24917]: warning: request to update table btree:/etc/postfix/smtpd_tls_session_cache in non-postfix directory  /etc/postfix 
    Jan 15 18:32:32 latte postfix/tlsmgr[24917]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
    Jan 15 18:32:32 latte postfix/tlsmgr[24917]: warning: request to update table btree:/etc/postfix/smtp_tls_session_cache in non-postfix directory  /etc/postfix
    Jan 15 18:32:32 latte postfix/tlsmgr[24917]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
    

    Should I do a chown of /etc/postfix?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Check that the sieve file contains the redirect now. Example:

    /var/vmail/domain.com/user/.ispconfig-before.sieve

    There should be a line to send a copy like:

    Code:
    # Send a copy of email to
    redirect :copy "[email protected]";
    You can try to see if the command:

    postfix set-permissions

    fixes this.
     
    Turgut Kalfaoglu likes this.

Share This Page