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 1MlRZP-0000lb-VE for garchives@archives.gentoo.org; Wed, 09 Sep 2009 18:07:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9F53E0ABB; Wed, 9 Sep 2009 18:07:02 +0000 (UTC) Received: from mx1.xen.linuxant.fr (mx1.linuxant.fr [87.98.143.218]) by pigeon.gentoo.org (Postfix) with ESMTP id 81FFFE0ABB for ; Wed, 9 Sep 2009 18:07:02 +0000 (UTC) Received: from [192.168.1.3] (93-136-251-100.adsl.net.t-com.hr [93.136.251.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: xavier) by mx1.linuxant.fr (Postfix) with ESMTPSA id BB5D42A092 for ; Wed, 9 Sep 2009 20:06:52 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mx1.linuxant.fr BB5D42A092 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gentooist.com; s=DKIM; t=1252519614; bh=RiJCKk6D0umIp9sCLjs8QaSUMpo8EhCNaetekHlaKtg=; l=3779; h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject:References: In-Reply-To:Content-Type; b=daOkwSzUgY/4G1BFLwgfhDg8OLYYCkXyua4jM7xAM17j49TBDklFlnUoV5Sg0GdUQ RtSSx3ehUgCxVOnVMtKdBgXgb3wg1A40978i1CiItHw7KnEDorD0knPojkUntWH1Ju D453qZ+v2MDVU3CWAmIL9qYyUc0pQ8I0iswnxdPY= X-DomainKeys: Sendmail DomainKeys Filter v1.0.2 mx1.linuxant.fr BB5D42A092 DomainKey-Signature: a=rsa-sha1; s=DomainKey; d=gentooist.com; c=nofws; q=dns; h=message-id:date:from:reply-to:user-agent:mime-version:to: subject:references:in-reply-to:x-enigmail-version:content-type; b=PM4XLQXY7AU+qL+mxZIwqEMnxS91XgHP8GBFznNPzN5TjzHDlZ/I/DSgX7V4d7sTP ZwjyQ8hshBxzmS0c95bMljv0qothzvNNLu3kDbs+CDtk6axe6m6urNAfWTnAXKXIVbb ENz0kjfeuYpXgkS8qP5VNeT/x8kkrHef02gG8fA= Message-ID: <4AA7EEB2.60408@gentooist.com> Date: Wed, 09 Sep 2009 20:06:42 +0200 From: Xavier Parizet User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Catch all mailbox References: <200909091354.33814.joost@antarean.org> <200909091650.21773.joost@antarean.org> <4AA7C21C.3020905@gentooist.com> <200909091700.58320.joost@antarean.org> In-Reply-To: <200909091700.58320.joost@antarean.org> X-Enigmail-Version: 0.96.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDA0C3434B7D8E6156EE37988" X-Archives-Salt: 4d59be04-b03b-4beb-89a8-6ce4ac9bd9f2 X-Archives-Hash: 2cbb91dc128681ba806e9cd84a311400 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDA0C3434B7D8E6156EE37988 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable J. Roeleveld a =C3=A9crit : > On Wednesday 09 September 2009 16:56:28 Xavier Parizet wrote: >> J. Roeleveld a =C3=A9crit : >>> On Wednesday 09 September 2009 14:49:37 Xavier Parizet wrote: >>>> J. Roeleveld a =C3=A9crit : >>>>> On Wednesday 09 September 2009 14:19:45 Xavier Parizet wrote: >>>>>> J. Roeleveld a =C3=A9crit : >>>>>>> Hi All, >>>>>>> >>>>>>> I know this is probably off-topic, but I'm hopefull someone on th= is >>>>>>> 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 cyr= us >>>>>>> email folder. >>>>>>> >>>>>>> I tried to find the answer on google, but all the solutions I fou= nd >>>>>>> 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 n= ot >>>>>>> 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 schem= e). >>>> >>>> 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 sea= rch >>> query? >> Is mydomain parameter set in /etc/postfix/main.cf ? >=20 > Yes, I believe this is necessary for postfix to actually accept emails?= I don't think so. > Or how else do I get this configured? You can see if it is configured by doing a postconf -n . If it's not, the= n issue a postconf -e mydomain=3D. For more information, ma= n postconf. Posting your postconf -n output and your ldap.cf file can also help. HTH. >=20 > Thanks, >=20 > Joost=20 --=20 Xavier Parizet YaGB : http://gentooist.com GPG : C7DC B10E FC21 63BE B453 D239 F6E6 DF65 1569 91BF --------------enigDA0C3434B7D8E6156EE37988 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqn7roACgkQ9ubfZRVpkb/Y0ACeIkqB7Ky1EIrNFkdVwxNzKskn 1UEAnAgq3QSO85k0oXx2SdENpJfFMUQO =T2xn -----END PGP SIGNATURE----- --------------enigDA0C3434B7D8E6156EE37988--