1 |
J. Roeleveld a écrit : |
2 |
> On Wednesday 09 September 2009 14:49:37 Xavier Parizet wrote: |
3 |
>> J. Roeleveld a écrit : |
4 |
>>> On Wednesday 09 September 2009 14:19:45 Xavier Parizet wrote: |
5 |
>>>> J. Roeleveld a écrit : |
6 |
>>>>> Hi All, |
7 |
>>>>> |
8 |
>>>>> I know this is probably off-topic, but I'm hopefull someone on this |
9 |
>>>>> list knows how to do this. |
10 |
>>>>> |
11 |
>>>>> My current situation: |
12 |
>>>>> Postfix gets an email delivered for user X |
13 |
>>>>> Postfix passes this to cyrus (lmtp-transport) |
14 |
>>>>> if user X does not exist within cyrus, the email gets bounced. |
15 |
>>>>> |
16 |
>>>>> I would like this bounced email to be delivered to a seperate cyrus |
17 |
>>>>> email folder. |
18 |
>>>>> |
19 |
>>>>> I tried to find the answer on google, but all the solutions I found |
20 |
>>>>> either only work with the postfix local delivery agent (eg. not |
21 |
>>>>> compatible with cyrus) or requires a list to be maintained using all |
22 |
>>>>> the known email-boxes. |
23 |
>>>>> |
24 |
>>>>> I prefer a fall-back solution where an email directed at a user not |
25 |
>>>>> listed in either the alias table (stored in ldap) or not known to cyrus |
26 |
>>>>> is redirected to a specific cyrus mailbox. |
27 |
>>>> A solution could be doing a catch-all alias (see [1]) : |
28 |
>>>> if your domain is example.com, then add an alias mapping @example.com to |
29 |
>>>> oneaddress@×××××××.com either using virtual alias or |
30 |
>>>> /etc/postfix/aliases . |
31 |
>>>> |
32 |
>>>> HTH. |
33 |
>>>> |
34 |
>>>> [1] http://www.postfix.org/VIRTUAL_README.html |
35 |
>>> I did notice this option, but it would require me to duplicate the alias |
36 |
>>> table into a alias file. I tried setting a "@<domain>" entry in my |
37 |
>>> ldap-tree, but this did not work. |
38 |
>> If you use LDAP as a virtual backend, then [1] will then be a better place |
39 |
>> to look. Setting mailacceptinggeneralid ldap attribute to @<domain> seems |
40 |
>> to be the solution (if you use "standard" LDAP scheme). |
41 |
>> |
42 |
>> HTH. |
43 |
>> |
44 |
>> [1] http://www.postfix.org/LDAP_README.html#example_virtual |
45 |
> |
46 |
> I tried this, but when looking at the ldap logs, I notice that the 'domain' |
47 |
> part does not exist in the search string. |
48 |
> Eg. '%s' only shows the user, '%d' is empty, eg. query is ignored |
49 |
> |
50 |
> Does anyone know how I can force postfix to add the domain to the search query? |
51 |
|
52 |
Is mydomain parameter set in /etc/postfix/main.cf ? |
53 |
|
54 |
> Thanks, |
55 |
> |
56 |
> Joost |
57 |
> |
58 |
|
59 |
-- |
60 |
Xavier Parizet |
61 |
YaGB : http://gentooist.com |
62 |
GPG : C7DC B10E FC21 63BE |
63 |
B453 D239 F6E6 DF65 1569 91BF |