if ("$h_to:, $h_cc:, $h_bcc" contains "domain.com") then unseen deliver "dd@com.pl" endif if $sender_address: contains "domain.com" then unseen deliver "dd@com.pl" endif