Portál AbcLinuxu, 25. října 2025 17:09
Takze otazka: je potreba vytvaret zaznam jak v user tabulce tak i v tabulce virtual (pokud je pro zbytek domeny nastaven domenovy kos)?Ano.
# mysql-users.cf
user = user
password = password
dbname = mail
table = users
select_field = maildir
where_field = email
additional_conditions = and postfix = 'y'
hosts = unix:/var/run/mysqld/mysqld.sock
# mysql-virtual.cf
user = user
password = password
dbname = mail
table = virtual
select_field = destination
where_field = email
hosts = unix:/var/run/mysqld/mysqld.sock
#database dump
--
-- Table structure for table `users`
--
CREATE TABLE users (
id int(11) NOT NULL auto_increment,
email varchar(128) NOT NULL default '',
crypt varchar(128) NOT NULL default '',
name tinytext NOT NULL,
uid int(11) NOT NULL default '1000',
gid int(11) NOT NULL default '1000',
homedir tinytext NOT NULL,
maildir tinytext NOT NULL,
quota tinytext NOT NULL,
postfix enum('n','y') NOT NULL default 'y',
PRIMARY KEY (id),
UNIQUE KEY email (email)
) TYPE=InnoDB;
--
-- Table structure for table `virtual`
--
CREATE TABLE virtual (
id int(11) NOT NULL auto_increment,
email varchar(128) NOT NULL default '',
destination varchar(128) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=InnoDB;
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.