Changeset 3189
- Timestamp:
- 08/06/12 11:22:13 (10 months ago)
- Location:
- alternc/trunk
- Files:
-
- 3 edited
-
etc/alternc/templates/postfix/myalias.cf (modified) (1 diff)
-
install/alternc.install (modified) (1 diff)
-
install/mysql.sql (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/etc/alternc/templates/postfix/myalias.cf
r3142 r3189 7 7 hosts =%%dbhost%% 8 8 dbname = %%dbname%% 9 query = select concat( if(isnull(mailbox.id), '', concat(concat(address.address,'@',domaines.domaine), '\n')), recipient.recipients ) from recipient join address on address.id = recipient.address_id left outer join mailbox on mailbox.address_id = address.id join domaines on domaines.id = address.domain_id where concat(address.address,'@',domaines.domaine)='%s';9 query = select alias from alias_view where mail='%s'; 10 10 11 11 -
alternc/trunk/install/alternc.install
r3148 r3189 332 332 333 333 ####################################################################### 334 #populate alternc database with the mailname used by postfix to send mail for each vhost 335 # 336 mailname=`cat /etc/mailname` 337 mysql_query "update table variable SET value="$mailname" where name='mailname_bounce';" 338 339 ####################################################################### 334 340 # Save installed files to check them during next install 335 341 # -
alternc/trunk/install/mysql.sql
r3171 r3189 647 647 648 648 -- 649 -- Structure de la vue `dovecot -view`649 -- Structure de la vue `dovecot_view` 650 650 -- 651 651 … … 663 663 join `domaines` on((`domaines`.`id` = `address`.`domain_id`))); 664 664 665 -- 666 -- Structure de la vue `alias_view` 667 -- 668 669 CREATE OR REPLACE VIEW `alias_view` AS 670 select concat(`address`.`address`,'@',`domaines`.`domaine`) AS `mail`, 671 concat(if(isnull(`mailbox`.`id`),'',concat(concat(`address`.`address`,'@',`domaines`.`domaine`),'\n')),`recipient`.`recipients`) AS `alias` 672 from (((`recipient` join `address` on((`address`.`id` = `recipient`.`address_id`))) 673 left join `mailbox` on((`mailbox`.`address_id` = `address`.`id`))) 674 join `domaines` on((`domaines`.`id` = `address`.`domain_id`))) 675 union 676 select distinct concat(`m`.`login`,'@',`v`.`value`) AS `mail`, 677 `m`.`mail` AS `alias` 678 from ((`membres` `m` join `variable` `v`) join `domaines` `d`) 679 where (`v`.`name` = 'mailname_bounce');
Note: See TracChangeset
for help on using the changeset viewer.
