Discussion in 'Installation/Configuration' started by dgmufasa, Dec 21, 2011.

  1. dgmufasa

    dgmufasa New Member

    Hello all,

    It was my understanding that when one creates an alias for a mailbox, the information is placed in: /etc/postfix/virtual

    I did not see it there.

    where does this go in the case of ISPConfig 3?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The file /etc/postfix/virtual is not used on a ispconfig 3 server. ISPConfig 3 uses a mysql based postfix configuration, aliases exist only as records in the mysql database and postfux reads them from there.
  3. dgmufasa

    dgmufasa New Member

    Thanks you so much for the quick response :D

    How does one go about doing a query (in particular, for an alias)?

    Basically, the need to do a query for an alias (to see where the actual email address where a mail should go to). I found this online: http://www.postfix.org/DATABASE_README.html
    I also found this: http://www.postfix.org/mysql_table.5.html

    I also saw something like this as a way of querying(?):
    postmap -q [email protected] hash:/etc/postfix/virtual

    Given that the information is in the DB, how does one use a postfix utility to query it? The idea was to avoid doing direct queries against the DB (for performance reasons).

    Last edited: Dec 21, 2011
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You can do direct queries against the database, postfix utilities would do the same anyway. There are noperformance problems as the queries are cached in RAM, so a few hundred queries per second are no problem at all on current hardware.
  5. dgmufasa

    dgmufasa New Member

    OK and understood.

    Out of curiosity, is there a way to use the postfix querying mechanism by using

    postmap -q "string" mysql:/etc/postfix/filename
    postmap -q - mysql:/etc/postfix/filename

    or other equivalent?

Share This Page