sender_bcc_maps with MYSQL

Discussion in 'Server Operation' started by zanoello, Sep 30, 2010.

  1. zanoello

    zanoello New Member

    Hi. I'm from Brazil and I have read this tutorial:

    http://www.howtoforge.com/virtual-u...ourier-mysql-squirrelmail-fedora-12-x86_64-p6

    It's so good, I've done it in my MTA. It's working fine.

    I have just a question that I think you can help me.

    There's a table and a connection called FORWARDINGS to alias of e-mails.

    I want to make BCC with my postfix using sender_bcc_maps=

    I've already make mysql base and a php code to insert and edit entries. Duplicating the existing forwardings

    but I don't know how to configure postfix to read mysql and do BCC.

    What do I put here?
    sender_bcc_maps=
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I guess something like
    Code:
    sender_bcc_maps = mysql:/etc/postfix/mysql-virtual_sender_bcc_maps.cf
    should work, and then something like

    Code:
    user = mail_admin
    password = mail_admin_password
    dbname = mail
    query = SELECT email FROM sender_bcc_maps
    hosts = 127.0.0.1
    in /etc/postfix/mysql-virtual_sender_bcc_maps.cf.
     
  3. zanoello

    zanoello New Member

    It works.

    Thaks. It's working fine.
     

Share This Page