The command attribute in the `mail-service-notification` command refers to the
shell script installed into `/etc/icinga2/scripts/mail-notification.sh`.
-The macros specified in the `export_macros` array are exported as environment
+The macros specified in the `env` dictionary are exported as environment
variables and can be used in the notification script.
You can add all shared attributes to a `Notification` template which is inherited
The global configuration setting `enable_environment_macros` does not exist in
Icinga 2.
-Macros exported into the environment must be set using the `export_macros`
+Macros exported into the environment must be set using the `env`
attribute in command objects.
### <a id="differences-1x-2-runtime-macros"></a> Runtime Macros