From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MlOfT-0000Vd-Il for garchives@archives.gentoo.org; Wed, 09 Sep 2009 15:01:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF629E0AD3; Wed, 9 Sep 2009 15:01:04 +0000 (UTC) Received: from smtpq2.tb.mail.iss.as9143.net (smtpq2.tb.mail.iss.as9143.net [212.54.42.165]) by pigeon.gentoo.org (Postfix) with ESMTP id B035CE0AD3 for ; Wed, 9 Sep 2009 15:01:04 +0000 (UTC) Received: from [212.54.42.143] (helo=smtp12.tb.mail.iss.as9143.net) by smtpq2.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1MlOfQ-00051r-BD for gentoo-user@lists.gentoo.org; Wed, 09 Sep 2009 17:01:04 +0200 Received: from 5353258a.cable.casema.nl ([83.83.37.138] helo=data.hosts.antarean.org) by smtp12.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1MlOfL-0007P4-C9 for gentoo-user@lists.gentoo.org; Wed, 09 Sep 2009 17:00:59 +0200 Received: from localhost (localhost [127.0.0.1]) by data.hosts.antarean.org (Postfix) with ESMTP id 0813F29070 for ; Wed, 9 Sep 2009 17:00:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at antarean.org Received: from data.hosts.antarean.org ([127.0.0.1]) by localhost (data.hosts.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 57Ya2IgjP5-m for ; Wed, 9 Sep 2009 17:00:58 +0200 (CEST) Received: from eve.localnet (eve.hosts.antarean.org [10.1.5.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.hosts.antarean.org (Postfix) with ESMTPS id E5E0115C5D for ; Wed, 9 Sep 2009 17:00:58 +0200 (CEST) From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Catch all mailbox Date: Wed, 9 Sep 2009 17:00:58 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.27-gentoo-r7; KDE/4.2.4; x86_64; ; ) References: <200909091354.33814.joost@antarean.org> <200909091650.21773.joost@antarean.org> <4AA7C21C.3020905@gentooist.com> In-Reply-To: <4AA7C21C.3020905@gentooist.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200909091700.58320.joost@antarean.org> X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1MlOfL-0007P4-C9 X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-2.599, vereist 5, autolearn=not spam, BAYES_00 -2.60) X-ZiggoSMTP-MailScanner-From: joost@antarean.org X-Spam-Status: No X-Archives-Salt: 38015ff2-3421-4ff2-9d65-a2b1911ead4d X-Archives-Hash: bd50e32a642c9045453f52268f161b4a On Wednesday 09 September 2009 16:56:28 Xavier Parizet wrote: > J. Roeleveld a =E9crit : > > On Wednesday 09 September 2009 14:49:37 Xavier Parizet wrote: > >> J. Roeleveld a =E9crit : > >>> On Wednesday 09 September 2009 14:19:45 Xavier Parizet wrote: > >>>> J. Roeleveld a =E9crit : > >>>>> Hi All, > >>>>> > >>>>> I know this is probably off-topic, but I'm hopefull someone on this > >>>>> list knows how to do this. > >>>>> > >>>>> My current situation: > >>>>> Postfix gets an email delivered for user X > >>>>> Postfix passes this to cyrus (lmtp-transport) > >>>>> if user X does not exist within cyrus, the email gets bounced. > >>>>> > >>>>> I would like this bounced email to be delivered to a seperate cyrus > >>>>> email folder. > >>>>> > >>>>> I tried to find the answer on google, but all the solutions I found > >>>>> either only work with the postfix local delivery agent (eg. not > >>>>> compatible with cyrus) or requires a list to be maintained using all > >>>>> the known email-boxes. > >>>>> > >>>>> I prefer a fall-back solution where an email directed at a user not > >>>>> listed in either the alias table (stored in ldap) or not known to > >>>>> cyrus is redirected to a specific cyrus mailbox. > >>>> > >>>> A solution could be doing a catch-all alias (see [1]) : > >>>> if your domain is example.com, then add an alias mapping @example.com > >>>> to oneaddress@example.com either using virtual alias or > >>>> /etc/postfix/aliases . > >>>> > >>>> HTH. > >>>> > >>>> [1] http://www.postfix.org/VIRTUAL_README.html > >>> > >>> I did notice this option, but it would require me to duplicate the > >>> alias table into a alias file. I tried setting a "@" entry in > >>> my ldap-tree, but this did not work. > >> > >> If you use LDAP as a virtual backend, then [1] will then be a better > >> place to look. Setting mailacceptinggeneralid ldap attribute to > >> @ seems to be the solution (if you use "standard" LDAP scheme). > >> > >> HTH. > >> > >> [1] http://www.postfix.org/LDAP_README.html#example_virtual > > > > I tried this, but when looking at the ldap logs, I notice that the > > 'domain' part does not exist in the search string. > > Eg. '%s' only shows the user, '%d' is empty, eg. query is ignored > > > > Does anyone know how I can force postfix to add the domain to the search > > query? > > Is mydomain parameter set in /etc/postfix/main.cf ? Yes, I believe this is necessary for postfix to actually accept emails? Or how else do I get this configured? Thanks, Joost