#1  
Old 21st December 2011, 04:14
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default /etc/postfix/virtual

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?

TIA
Reply With Quote
Sponsored Links
  #2  
Old 21st December 2011, 10:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 21st December 2011, 11:14
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Thanks you so much for the quick response

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 info@example.com 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).

TIA

Last edited by dgmufasa; 21st December 2011 at 11:18.
Reply With Quote
  #4  
Old 21st December 2011, 11:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

Quote:
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).
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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 21st December 2011, 16:50
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
 
Default

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?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to send, receive, and login to email. Using Roundcube, ISPConfig, Proxmox. djmixx07 Server Operation 23 29th March 2010 16:50
Mail Server wabz Installation/Configuration 3 4th August 2009 14:22
postfix config jmroth Installation/Configuration 6 18th September 2005 16:58


All times are GMT +2. The time now is 09:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.