6 msgHow to reinstall postfix
9 msgcontent filter - Altermime
14 msgService with perl in argv

Postfix frontend on existing MySQL DB (routing ...
\ Simone Felici (28 Jun 2007)
. \ mouss (28 Jun 2007)
. . \ Simone Felici (28 Jun 2007)
. . . \ mouss (28 Jun 2007)
. . . . \ Simone Felici (28 Jun 2007)
. . . . . \ mouss (28 Jun 2007)
. . . . . . \ Simone Felici (29 Jun 2007)
. . . . . . . \ mouss (29 Jun 2007)
. . . . . . . . \ Simone Felici (29 Jun 2007)
. . . . . . . . . \ mouss (29 Jun 2007)
. . . . . . . . . . \ Simone Felici (29 Jun 2007)
. . . . . . . . . . . \ mouss (29 Jun 2007)
. . . . . . . . . . . . \ mouss (29 Jun 2007)
. . . . . . . . . . . . . \ Simone Felici (2 Jul 2007)
. . . . . . \ Simone Felici (29 Jun 2007)
. . . . . \ mouss (28 Jun 2007)

3 msgpostfix and mysql
5 msgpostfix do not send the raiables to maildrop
2 msgMasquerading
1 msgRelay and Domain masquerading
4 msgactive queue and courier maildrop
5 msgSASL2 - loose error message
5 msgSetting up an intranet mail server
2 msgsimple smtp outbound how-to
1 msgHow to determine relay domains through check_po...
3 msgmessage size limit per recipient
33 msgEmpty pflogsumm Reports
7 msgSend On Behalf Of A User?
6 msgmultiple content_filters
4 msgBlocked by policy mailin.rzone.de
7 msgBuild with support for both cyrus-sasl and dove...
14 msgcontent filter help
Subject:Re: Postfix frontend on existing MySQL DB (routing problems)
Group:Postfix-users
From:mouss
Date:29 Jun 2007


 
mouss wrote:
>
> Before you get mad, here is how a way to solev your problem:
>
> query = SELECT CONCAT('smtp:', next) FROM smtproutes where
> domain = '%d' and %u = IF(account = '', %u, account)

silly me, this is the same as OR. don't use it.

use this:
>
>
> query = SELECT CONCAT('smtp:', next) FROM smtproutes where
> domain = '%d' and
> (acount = '%u' or account = '')
> order by length(account) desc limit 1

an approach that doesn't require "advanced" sql statements is:

transport_maps =
proxy:mysql:/path/to/transport_users.cf
proxy:mysql:/path/to/transport_domains.cf

in transport_users, use the query with '%u' = account
in transport_domains, use the same query but with '%u' = ''




© 2004-2008 readlist.com