Gary Smith wrote:
/etc/postfix/custom/virtual
@bounces.domain.tld bmana...@bounces.domain.tld
Executed:
postmap virtual
postmap -q 'c...@bounces.domain.tld' hash:/etc/postfix/custom/virtual
postmap -q '@bounces.domain.tld' hash:/etc/postfix/custom/virtual
bmana...@bounces.domain.tld
Test with c...@bounces.domain.tld returned nothing. I would have expected it
to return bmana...@bounces.domain.tld.
This is normal. The postmap -q test tool does not perform a
"search order" as documented in various postfix functions.
Postmap -q performs the query specified and nothing else.
Postfix version is 2.5.5 under CentOS 5.3. I have yet to add these to the
/etc/postfix/main as I can even get the test query to work.
Purpose of this is that we send out a lot of email to subscribers and set a
return address like bounce-emailaddress=theirdomain....@bounces.domain.tld. We
had this working some time ago and migrated it to a new server about 10 months
ago and didn't realize that this one wasn't working.
Any ideas?
Seems using main.cf setting
recipient_delimiter = -
rather than a catch-all would be a better solution. That way
all mail addressed to bounc...@example.tld is delivered to
bou...@example.tld while preserving the original address.
-- Noel Jones