Hello the list..

 

I'm asking your support for a problem we are facing using Postfix server
configuration.

 

We are trying to setup an internal CRM Solution, that has to manage mail
returns depending type of message.

We have actually 2 sorts of email types : 

bounce.xxxxx-xxxx-x...@mydomain.tld that can be also @anydomain.anytld (we
have several communication methods and domains)

return.xxxxx-xxxx-x...@mydomain.tlmd (same as above).

 

Both addresses must pipe to a script in order to 

-          cope bounces and remove know clients from our CRM database

-          Send mail returns to the right person linked to the CRM Database
(and moreover undertake CRM actions)

 

I have a transport regex : transportregex

 

/bounce.*@*/    bounceh:

/return.*@*/    bouncer:

 

Called in main.cf : 

transport_maps = regexp:/etc/postfix/transportregex

 

And corresponding pipes in master.cf

bounceh   unix  -       n       n       -       -      pipe

  flags=DRhu user=www-data argv=/usr/bin/php
/home/samba/test/get_bounces.php

bouncer   unix  -       n       n       -       -      pipe

  flags=DRhu user=www-data argv=/usr/bin/php /home/samba/test/get_return.php

 

Yet when I send a mail to the transport (SMTP mails outside the server, not
locally which weirdly seems to work), I always get the following return : 

550 5.1.1 <bounce.xxxxx-xxxx-x...@domain.tld>:     Recipient address
rejected: User unknown in local recipient table

 

Ok remembering old training courses, alias_maps or virtual_alias_maps is the
source of problem..

 

So my question is following. 

How do I do to add a general configuration that will accept on this server
any mail received on the 2 given formats (without restrictions on the domain
used : We have 35 used domains and I don't wish to cope the table manually)

 

Thanks for your kind support while I continue to read the archives where I
have not yet found answer to my problem..

 

Yours

 

T. de LASSAT

 

 

Reply via email to