Re: LDAP canonical_maps and domain rewriting

2013-03-20 Thread Fernando Maior
Patrick, You may want to give a try to JXplorer. It is Java-based and runs nicely. Also, you can change the forms used by it, customizing to your needs. Best regards. --- Fernando Maciel Souto Maior On Wed, Mar 20, 2013 at 2:52 PM, Patrick Lists < postfix-l...@puzzled.xs4all.nl> wrote: > Hi Fer

Re: LDAP canonical_maps and domain rewriting

2013-03-20 Thread Patrick Lists
Hi Fernando, On 03/20/2013 05:40 PM, Fernando Maior wrote: Patrick, I do not use canonical maps at all when using LDAP. I do not need it, because I just use mailForwardingAddress (actually an alias) to map the incoming email to the real mailbox. What I do: 1. Use the qmail.schema in OpenLDAP

Re: LDAP canonical_maps and domain rewriting

2013-03-20 Thread Fernando Maior
Patrick, I do not use canonical maps at all when using LDAP. I do not need it, because I just use mailForwardingAddress (actually an alias) to map the incoming email to the real mailbox. What I do: 1. Use the qmail.schema in OpenLDAP 2. Add objectClass: qmailUser to each user account 3.

Re: LDAP canonical_maps and domain rewriting

2013-03-19 Thread Viktor Dukhovni
On Tue, Mar 19, 2013 at 08:00:51PM +0100, Patrick Lists wrote: > On 03/19/2013 04:22 PM, Viktor Dukhovni wrote: > >Nothing unusual at all about canonical mapping, the only anomaly > >I'm making a fuss about is the underlying data model. It is OK to > >turn secondary addresses into primary, it is

Re: LDAP canonical_maps and domain rewriting

2013-03-19 Thread Patrick Lists
Hi Viktor, My apologies for getting your name wrong on the previous email. On 03/19/2013 04:22 PM, Viktor Dukhovni wrote: Nothing unusual at all about canonical mapping, the only anomaly I'm making a fuss about is the underlying data model. It is OK to turn secondary addresses into primary, i

Re: LDAP canonical_maps and domain rewriting

2013-03-19 Thread Viktor Dukhovni
On Tue, Mar 19, 2013 at 09:02:51AM -0300, Fernando Maior wrote: > All this seems to be something very different from what postfix and other > smtp usually does. So, may be the problem is with the concept, not with the > implementation. > > May I ask you why you need to change the domain name part

Re: LDAP canonical_maps and domain rewriting

2013-03-19 Thread Patrick Lists
Hi Fernando, On 03/19/2013 01:02 PM, Fernando Maior wrote: Hello, All this seems to be something very different from what postfix and other smtp usually does. So, may be the problem is with the concept, not with the implementation. May I ask you why you need to change the domain name part of t

Re: LDAP canonical_maps and domain rewriting

2013-03-19 Thread Fernando Maior
Hello, All this seems to be something very different from what postfix and other smtp usually does. So, may be the problem is with the concept, not with the implementation. May I ask you why you need to change the domain name part of the mail delivery address? Can you provide us with information

Re: LDAP canonical_maps and domain rewriting

2013-03-17 Thread Viktor Dukhovni
On Mon, Mar 18, 2013 at 02:34:05AM +0100, Patrick Lists wrote: > >How do you manage users who have multiple email addresses? You should > >avoid domain to domain rewrites, and for each user list all the > >valid addresses. Read: > > > > http://tools.ietf.org/html/draft-lachman-ldap-mail-routi

Re: LDAP canonical_maps and domain rewriting

2013-03-17 Thread Patrick Lists
On 03/17/2013 11:48 PM, Viktor Dukhovni wrote: [snip] Googling around I found a small postfix.schema and used the "maildrop" attribute which works fine using this This may not be the right choice. The schema that uses "maildrop" IIRC typically uses: mail: primary add

Re: LDAP canonical_maps and domain rewriting

2013-03-17 Thread Viktor Dukhovni
On Sun, Mar 17, 2013 at 11:12:00PM +0100, Patrick Lists wrote: > Hi Victor, > > On 03/17/2013 07:38 PM, Viktor Dukhovni wrote: > > > >Keep in mind that there are many different LDAP email schemas and > >yours may keep the additional email addresses of each user in an > >differently named attribut

Re: LDAP canonical_maps and domain rewriting

2013-03-17 Thread Patrick Lists
Hi Victor, On 03/17/2013 07:38 PM, Viktor Dukhovni wrote: [snip] You really should not do this. Instead take the high road: query_filter = mailDeliveryAddress=%s result = mail Will try that. Keep in mind that there are many different LDAP email schemas and yours may keep the

Re: LDAP canonical_maps and domain rewriting

2013-03-17 Thread Viktor Dukhovni
On Sun, Mar 17, 2013 at 11:31:31AM +0100, Patrick Lists wrote: > Hi Victor, > > On 03/16/2013 11:25 PM, Viktor Dukhovni wrote: > [snip] > >I've always avoided wildcard rewrites with LDAP, do the rewrite > >only with actual valid user addresses. > > Ok. > > >>@domainA.org @domainB.org > > > >I

Re: LDAP canonical_maps and domain rewriting

2013-03-17 Thread Patrick Lists
Hi Victor, On 03/16/2013 11:25 PM, Viktor Dukhovni wrote: [snip] I've always avoided wildcard rewrites with LDAP, do the rewrite only with actual valid user addresses. Ok. @domainA.org @domainB.org I don't recall whether "%d" works with "@domain" input keys. I would have guessed it does,

Re: LDAP canonical_maps and domain rewriting

2013-03-17 Thread Patrick Lists
Hi Fernando, On 03/16/2013 07:43 PM, Fernando Maior wrote: Hi Patrick, If you use the hash table, and issue the postmap command, what is the output? Here is the output: $ cat /etc/postfix/canonical @domainA.org@domainB.org $ postmap -q t...@domaina.org hash:/etc/postfix/canonical $ po

Re: LDAP canonical_maps and domain rewriting

2013-03-16 Thread Viktor Dukhovni
On Sat, Mar 16, 2013 at 06:19:45PM +0100, Patrick Lists wrote: > Venturing into postfix+openldap country I bumped into a challenge: > is it possible to use an LDAP table for canonical_maps to > generically rewrite domainA to domainB (so for all email addresses > @domainA.org)? It works fine when I

Re: LDAP canonical_maps and domain rewriting

2013-03-16 Thread Fernando Maior
Hi Patrick, If you use the hash table, and issue the postmap command, what is the output? Regards, --- Fernando Maciel Souto Maior On Sat, Mar 16, 2013 at 2:19 PM, Patrick Lists < postfix-l...@puzzled.xs4all.nl> wrote: > Hi all, > > Venturing into postfix+openldap country I bumped into a challe

LDAP canonical_maps and domain rewriting

2013-03-16 Thread Patrick Lists
Hi all, Venturing into postfix+openldap country I bumped into a challenge: is it possible to use an LDAP table for canonical_maps to generically rewrite domainA to domainB (so for all email addresses @domainA.org)? It works fine when I use this in a hash table: @domainA.org @domainB.org Bu

Re: Domain rewriting

2011-03-06 Thread Noel Jones
On 3/5/2011 11:43 PM, Nasser Heidari wrote: Hi, I've two Mail servers , one local server running on MS-Exchange and the other one is my external mail server that my MTA is postfix. I have setup Postfix as relay agent on Exchange, so all outgoing Emails is travels through Postfix. There are also t

RE: Domain rewriting

2011-03-06 Thread Nasser Heidari
ner-postfix-us...@postfix.org] On > Behalf Of Luigi Rosa > Sent: Sunday, March 06, 2011 10:49 > To: Postfix users > Subject: Re: Domain rewriting > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Nasser Heidari said the following on 06/03/11 06:43: > > >

Re: Domain rewriting

2011-03-05 Thread Luigi Rosa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nasser Heidari said the following on 06/03/11 06:43: > Now I want to rewrite All of my emails domain from test.local to > test.edu when they traveling to outside network. I have many similar installations: Exchange (often on Windows SBS) inside and P

Domain rewriting

2011-03-05 Thread Nasser Heidari
Hi, I've two Mail servers , one local server running on MS-Exchange and the other one is my external mail server that my MTA is postfix. I have setup Postfix as relay agent on Exchange, so all outgoing Emails is travels through Postfix. There are also two domains , one on the Exchange(test.local)