$customerEmail = $order->getData('customer_email');
if (preg_match("/@marketplace.amazon.it$/", $customerEmail)) {
// do something
}
LE based on commnent
if you want to check if the email is one of marketplace.amazon.it OR marketplace.amazon.de then this is the code:
$customerEmail = $order->getData('customer_email');
$needles = ['@marketplace.amazon.it', '@marketplace.amazon.de'];
foreach ($needles as $needle) {
if (preg_match("/{$needle}$/", $customerEmail)) {
// do something
}
}