Quantcast
Channel: iRedMail — iRedMail Support
Viewing all articles
Browse latest Browse all 12092

catch all mysql queries

$
0
0

======== Required information ====
- iRedMail version:  0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version:  Ubuntu 14.04.1 LTS
- Related log if you're reporting an issue:
====

I'm wondering if there's some error in the catch-all queries...
From the wiki we read that the `address` field of the `alias` table is in form of '@domain'.
But in two files it seems it should be just 'domain'...

File 1: /etc/postfix/mysql/catchall_maps.cf:

SELECT alias.goto
FROM alias,domain
WHERE alias.address='%d'
AND alias.address=domain.domain
AND alias.active=1
AND domain.active=1
AND domain.backupmx=0

IMHO instead of

alias.address='%d'

we should have

alias.address=CONCAT('@', '%d')

and instead of

alias.address=domain.domain

we should have

alias.address=CONCAT('@', domain.domain)


File 2: /etc/postfix/mysql/domain_alias_catchall_maps.cf:

SELECT alias.goto
FROM alias,alias_domain,domain
WHERE alias_domain.alias_domain='%d'
AND alias.address=alias_domain.target_domain
AND alias_domain.target_domain=domain.domain
AND alias.active=1
AND alias_domain.active=1

IMHO instead of

alias.address=alias_domain.target_domain

we should have

alias.address=CONCAT('@', alias_domain.target_domain)

I'm quite new to postfix, so I'm surely missing something, but I really don't understand what...

Thank you
Michele


Viewing all articles
Browse latest Browse all 12092

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>