Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions extras/tables/table-mysql/table-mysql.5
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ host db.example.com
username postfix
password PostfixOutOpenSMTPDin
database postfix
query_alias SELECT destination FROM alias WHERE email=?;
query_credentials SELECT username, password FROM mailbox WHERE username=?;
query_domain SELECT domain FROM domain WHERE domain=?;
query_alias SELECT IF(goto=address, 'vmail', goto) from alias WHERE address=? AND active='1';
query_credentials SELECT username, password FROM mailbox WHERE username=? AND active='1';
query_domain SELECT domain FROM domain WHERE domain=? AND active='1';
.Ed
The rest of the config remains the same.

Expand Down
6 changes: 3 additions & 3 deletions extras/tables/table-postgres/table-postgres.5
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ accept from any for domain <domains> virtual <virtuals> deliver to mbox
.Ic Pa /etc/mail/postgres.conf
.Bd -literal -compact
conninfo host='db.example.com' user='postfix' password='PostfixOutOpenSMTPDin' dbname='postfix'
query_alias SELECT destination FROM alias WHERE email=$1;
query_credentials SELECT username, password FROM mailbox WHERE username=$1;
query_domain SELECT domain FROM domain WHERE domain=$1;
query_alias SELECT IF(goto=address, 'vmail', goto) from alias WHERE address=$1 AND active='1';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be SELECT CASE goto = address THEN 'vmail' else goto for postgres?

query_credentials SELECT username, password FROM mailbox WHERE username=$1 AND active='1';
query_domain SELECT domain FROM domain WHERE domain=$1 AND active='1';
.Ed
The rest of the config remains the same.

Expand Down