Welcome, Guest
Please Login or Register.
Lost Password?
Re:A problem was found with your Postfix virtual maps (1 viewing)
Post Reply

TOPIC: Re:A problem was found with your Postfix virtual maps

#12033
roszman (User)
Posts: 1
graphgraph
A problem was found with your Postfix virtual maps 2008/04/29 04:10  
first post so hi everyone

prb:
A problem was found with your Postfix virtual maps : No map sources were found in the Postfix configuration

so i've configured postfix like in this howto. And it seems to workin i can send and recive messages, create virtual domains, users etc.

in webmin>servers>postfix>mail aliases i've setup "Alias databases used by the local delivery agent" to "proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf" the same like virtual_alias_maps in postfix main.cf

i've tried to reinstall virtualmin, webmin but it didnt help. I can not reinstall it like in this thread.

can anyone help me with this prb
rgds and sorry for my english
  The administrator has disabled public write access.
#12051
Joe (Admin)
Posts: 4117
graph
Re:A problem was found with your Postfix virtual maps 2008/04/29 14:57  
Urgh. Don't use MySQL maps.

Postfix just needs the following:

virtual_alias_maps = hash:/etc/postfix/virtual
  The administrator has disabled public write access.
#15267
confusedstingray (User)
Posts: 4
graphgraph
Re:A problem was found with your Postfix virtual maps 2008/07/31 04:53  
ok I'm new to this as well but, my system is working
why change it if is working.

if i change "proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf" in postfix main.cf

to

virtual_alias_maps = hash:/etc/postfix/virtual

would this mess up my email address I have already created in Mysql
don't my email users loosing mail.
just being cautious,
  The administrator has disabled public write access.
#15270
andreychek (Moderator)
Posts: 636
graphgraph
Re:A problem was found with your Postfix virtual maps 2008/07/31 06:04  
Howdy,

Yeah, unless you see all your aliases currently listed in /etc/postfix/virtual, things will definitely break if you changed your virtual_alias_maps like you mentioned above.

You of course could migrate it from MySQL to the virtual file, but I'm not aware of a quick and easy way to do that.
-Eric
  The administrator has disabled public write access.
#15315
confusedstingray (User)
Posts: 4
graphgraph
Re:A problem was found with your Postfix virtual maps 2008/08/01 08:58  
is it possible to make a symbolic link to Mysql from virtual
  The administrator has disabled public write access.
#15316
confusedstingray (User)
Posts: 4
graphgraph
Re:A problem was found with your Postfix virtual maps 2008/08/01 08:59  
is it possible to make a symbolic link to Mysql from virtual
  The administrator has disabled public write access.
#15317
confusedstingray (User)
Posts: 4
graphgraph
Re:A problem was found with your Postfix virtual maps 2008/08/01 08:59  
is it possible to make a symbolic link to Mysql from virtual
  The administrator has disabled public write access.
#15319
andreychek (Moderator)
Posts: 636
graphgraph
Re:A problem was found with your Postfix virtual maps 2008/08/01 09:22  
Unfortunately, the MySQL database isn't akin to how the virtual file would work, it's not as straight forward as just being able to link from one to the other.

It's possible that Joe may have a trick up his sleeve for how to handle this, but barring that the only way I'm aware of to solve this would be to manually add all the addresses you have in MySQL to the virtual file (yes, I'm aware of how much that sucks ;-)
-Eric
  The administrator has disabled public write access.
#15320
Joe (Admin)
Posts: 4117
graph
Re:A problem was found with your Postfix virtual maps 2008/08/01 09:42  
I'm sure it's easily scriptable, but there is no standard schema (de facto or RFC-based) for users in MySQL...which is one of the many reasons I consider putting system users into MySQL a really bad idea (I like being able to use standard tools, and users in MySQL is not a standard tools kinda solution).

But, a few minutes with the MySQL command line tool, or Perl or PHP or Python or Ruby (or any language with a reasonable MySQL interface) you should be able to whip something up. Just pull out the list of users and feed it into Virtualmin's create-mail function, like so:

virtualmin create-user --domain domain.tld --user username --pass password

Since I don't know the schema in your MySQL users table, I can't begin to guess what the exact incantation would be to pull out the data you need.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.