Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Catch all mailbox "J. Roeleveld" <joost@××××××××.org>