Forums

Resolved
0 votes
How to auto-forward outgoing mail ?

Preferably together with info of who has sent the mail.

I can't find anything in the horde webinterface for this.

It can also be described as 'auto bcc all outgoing mail from all users to a single user'
In Mail
Saturday, January 16 2010, 03:20 PM
Share this post:
Responses (3)
  • Accepted Answer

    Tuesday, October 29 2019, 01:13 PM - #Permalink
    Resolved
    0 votes
    Hi, Karel De Stomme ,

    Thank You Very much its working for me.
    But Its Only BCC to Only Internal Email Server.
    BCC not going to Yahooand Gmail.

    Please Help me its Possible.


    Thank You
    Lalatendu
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 17 2010, 10:04 PM - #Permalink
    Resolved
    0 votes
    Or you may want to consider the use of the mail aliases functionality. The aliases uses a generic name to access users mailbox, nice if you loose control over a mail box name (spam) easier to change an alias than to recreate a mailbox.
    I do not know if you can call this auto-forward since I see this as a user feature. The alias functionally is accessible from webconfig and could be used as if it was forwarding the mail to one or many boxes. The only draw back if you can call it a draw back is the login to the mail box must obviously be done using the mail box name not the alias name.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 17 2010, 08:23 PM - #Permalink
    Resolved
    1 votes
    Got it ... :

    Auto-forward the outgoing mail :
    Postfix V2.1 supports a "sender_bcc_maps" function which is a lookup table of sender addresses. If the sender address matches, the right hand side of the lookup table will be added as a BCC to the e-mail. So effectively, you could add each user you wanted to log mail for, in the left hand side of the table. In the right hand side of the table you would list the admin e-mail address you want to send the BCC'ed mail to, so for example:

    In /etc/postfix/main.cf add:

    s
    ender_bcc_maps = hash:/etc/postfix/sender_bcc


    Then edit or create /etc/postfix/sender_bcc in the following format:

    locuser1@vitdomain1.com admin@adminsdomain.com
    locuser2@vitdomain2.com admin@adminsdomain.com

    and run "postmap /etc/postfix/sender_bcc" and "postfix reload".

    Basically any mail sent through postfix, with an sender address of locuser1@vitdomain1.com or locuser2@vitdomain2.com would also be BCC'ed to admin@adminsdomain.com.



    Auto-forward the incoming mail :

    Postfix V2.1 supports a "recipient_bcc_maps" function which is a lookup table of sender addresses. If the sender address matches, the right hand side of the lookup table will be added as a BCC to the e-mail. So effectively, you could add each user you wanted to log mail for, in the left hand side of the table. In the right hand side of the table you would list the admin e-mail address you want to send the BCC'ed mail to, so for example:

    In /etc/postfix/main.cf add:



    recipient_bcc_maps = hash:/etc/postfix/recipient_bcc


    Then edit or create /etc/postfix/recipient_bcc in the following format:

    locuser1@vitdomain1.com admin@adminsdomain.com
    locuser2@vitdomain2.com admin@adminsdomain.com

    and run "postmap /etc/postfix/recipient_bcc" and "postfix reload".

    Basically any mail sent through postfix, with a recipient address of locuser1@vitdomain1.com or locuser2@vitdomain2.com would also be BCC'ed to admin@adminsdomain.com.


    This might be an interesting feature to add to the ClearOS mail setup gui.
    The reply is currently minimized Show
Your Reply