Discussion:
postsuper -r ALL ignores virtual_alias_maps entries
(too old to reply)
Vasya Pupkin
2013-12-15 14:54:58 UTC
Permalink
Hello.

I am using pcre virtual_alias_maps, like this:

virtual_alias_maps = pcre:/etc/postfix/virtual_alias_maps

I had an entry in virtual_alias_maps like this:

/^([A-Za-z0-9%._-]+)@comain.tld$/ spam-***@mailinator.com

Today mailinator.com went down and I need to requeue all deffered mail somewhere else. So I changed entry in /etc/postfix/virtual_alias_maps to something like this:

/^([A-Za-z0-9%._-]+)@comain.tld$/ my-spam-***@mail.ru

Then I reloaded postfix configuration:

sudo service postfix reload

Then I tried to requeue all mail:

sudo postsuprt -r ALL

But for some crazy reason it keeps trying to deliver all mail to mailinator.com instrad of mail.ru. What am I doing wrong? Also, I tried to send new mail to ***@comain.tld and it went to my-spam-***@mail.ru as expected. Why does requeue ignore virtual_alias_maps entry and keeps trying to deliver mail to old destination?
Lemat
2013-12-23 11:04:41 UTC
Permalink
Post by Vasya Pupkin
Hello.
virtual_alias_maps = pcre:/etc/postfix/virtual_alias_maps
sudo service postfix reload
sudo postsuprt -r ALL
the "requeue" does not change the recipient. Which is already set to mailinator.com
Loading...