Skip to content

Commit 9d62039

Browse files
committed
* Better explanation in SQL/iredmail.pg.sql.
* Add two screenshot images, and displayed in README.md.
1 parent 64e08fa commit 9d62039

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ Currently Natively Supporting:
66

77
By Default The `DomainBook` is enabled for all users. All other books will have to be configured prior to use.
88

9+
# Screenshots
10+
11+
Compose new email:
12+
13+
![](./screenshots/compose.png)
14+
15+
Address Book view:
16+
17+
![](./screenshots/address.book.png)
18+
919
#License#
1020

1121
This software adheres to the MIT License, please see LICENSE File!

SQL/iredmail.pg.sql

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
--
22
-- Notes:
33
--
4-
-- * if you're running RHEL/CentOS 6 or 7, don't forget to uncomment lines
5-
-- under `Required by RHEL/CentOS X` to create dblink function.
4+
-- * Don't forget to uncomment lines under `Required by PostgreSQL x` to
5+
-- create dblink function, If you're running PostgreSQL 8.x, you can find
6+
-- `dblink.sql` in package 'postgresql-contrib'.
67
--
78
-- * of course you should replace `xxx` in below sample SQL command by the
89
-- real SQL username/password/database name.
910
--
10-
-- * it's better to use SQL user `vmail` which has read-only permission to
11-
-- `vmail` database. Don't use `vmailadmin` or `postgres` user.
11+
-- * it's better to use a SQL user who has read-only permission on the
12+
-- source database. On iRedMail server, please use `vmail` user, do NOT
13+
-- use `vmailadmin` or `postgres` user.
1214

1315
--
1416
-- Known issue on iRedMail server:
@@ -20,18 +22,18 @@
2022
-- fixes this issue.
2123

2224
--
23-
-- Required by RHEL/CentOS 6.
25+
-- Required by PostgreSQL 8.x (RHEL/CentOS 6)
2426
--
2527
-- CREATE LANGUAGE plpgsql;
2628
-- \i /usr/share/pgsql/contrib/dblink.sql;
2729

2830
--
29-
-- Required by RHEL/CentOS 7
31+
-- Required by PostgreSQL 9.x (RHEL/CentOS 7, Debian 7, Ubuntu 14.04, ...)
3032
--
3133
-- CREATE EXTENSION dblink;
3234

33-
CREATE VIEW global_addressbook AS
35+
CREATE VIEW global_addressbooks AS
3436
SELECT * FROM dblink('host=127.0.0.1 port=5432 user=vmail password=xxx dbname=vmail', 'SELECT extract(epoch FROM created), name, username, domain FROM mailbox WHERE active=1')
3537
AS global_addressbook ("ID" BIGINT, name VARCHAR(255), email VARCHAR(255), domain VARCHAR(255));
3638

37-
ALTER TABLE global_addressbook OWNER TO roundcube;
39+
ALTER TABLE global_addressbooks OWNER TO roundcube;

screenshots/address.book.png

112 KB
Loading

screenshots/compose.png

108 KB
Loading

0 commit comments

Comments
 (0)