exec { "postmap":
command => "postmap blah blah",
refreshonly => true
}

class XX {

...

file { "/etc/postfix/virtual":
...
...
notify => Exec["postmap"]
...
}
}