Gary Smith wrote:
/etc/postfix/custom/virtual
@bounces.domain.tld [email protected]
Executed:
postmap virtual
postmap -q '[email protected]' hash:/etc/postfix/custom/virtual
postmap -q '@bounces.domain.tld' hash:/etc/postfix/custom/virtual
[email protected]
Test with [email protected] returned nothing. I would have expected it
to return [email protected].
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 [email protected]. 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 [email protected] is delivered to
[email protected] while preserving the original address.
-- Noel Jones