In article <[EMAIL PROTECTED]> you wrote:
> Yes, you should be able to do this with a transport_maps entry 
> and a regexp (or pcre) smtp_generic_maps.

Thank you; however:

> # main.cf
> transport_maps = hash:/etc/postfix/transport
> smtp_generic_maps = regexp:/etc/postfix/generic.regexp

I have this:
   transport_maps=hash:/etc/postfix/transport
   smtp_generic_maps = hash:/etc/postfix/generic, 
regexp:/etc/postfix/generic_regexp

(I do some canonicalization)

> # transport
> through-smart-host  smtp:[smart-host]
> .through-smart-host  smtp:[smart.host]

and this:
   .smart          smtp:[smtp.provider.ch]

> # generic.regexp

and this:

/^(.*)\.smart$/ $1

and I just tested it:
   # postmap -fq [EMAIL PROTECTED] regexp:/etc/postfix/generic_regexp
   [EMAIL PROTECTED]

and double verified:
   # postconf | grep generic_regex
   smtp_generic_maps = hash:/etc/postfix/generic, 
regexp:/etc/postfix/generic_regexp

and, unfortunately:

   asterix:/etc/postfix# mail [EMAIL PROTECTED]
   Subject: testing
   end
   .
   Cc: 

gives:
Aug 29 17:00:27 innocent postfix/smtp[19137]: 27948EF45A:
to=<[EMAIL PROTECTED]>, relay=smtp.provider.ch[212.74.179.186]:25,
delay=0.22, delays=0.06/0.01/0.08/0.07, dsn=2.0.0, status=sent (250
2.0.0 Ok: queued as 46247240C5)

(and of course this fails).

Any idea ?

Reply via email to