A. Schulze:
(braindump, I'll post an update tomorrow if I'm wrong...)
pcrefile:
/^(.+)\@(.+)$/ someuser+$1_at_$2@archive
transport_maps:
archive smtp_to_archive:
main.cf:
recipient_bcc_maps = pcre:/path/to/pcrefile
transport_maps = hash:/path/to/transport_maps
smtp_to_archive_destination_recipient_limit = 1
master.cf
smtp_to_archive unix - - - - - smtp
-o syslog_name=postfix/to_archive
On 19.10.17 17:01, A. Schulze wrote:
it's simpler.
you do not need a separate transport to enforce destination_recipient_limit=1
pcrefile:
/(.+)@(.+)/ someuser+${1}_at_${2}@archive
/(.*)/ someuser+${1}@archive
main.cf:
recipient_bcc_maps = pcre:/path/to/pcrefile
does it need pcre at all?
I thought simply having different destination domains in recipient_bcc_maps
(hash: style map) should be enough...
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Support bacteria - they're the only culture some people have.