diff --git a/config/vufind/config.ini b/config/vufind/config.ini
index 8c0b77fc20ec29267683f1d749b6f578982b08bc..9b6660da687c2732831736eee0686655157ffc02 100644
--- a/config/vufind/config.ini
+++ b/config/vufind/config.ini
@@ -499,6 +499,8 @@ host            = localhost
 port            = 25
 ;username       = user
 ;password       = pass
+; The server name to report to the upstream mail server when sending mail.
+;name = vufind.myuniversity.edu
 ; If a login is required you can define which protocol to use for securing the
 ; connection. If no explicit protocol ('tls' or 'ssl') is configured, a protocol
 ; based on the configured port is chosen (587 -> tls, 487 -> ssl).
diff --git a/module/VuFind/src/VuFind/Mailer/Factory.php b/module/VuFind/src/VuFind/Mailer/Factory.php
index 3359da67c3f8b59973584bcae90839af5dbc0ef4..ac139c6d85821f14e5e399f9f9cb5c03a979ac1c 100644
--- a/module/VuFind/src/VuFind/Mailer/Factory.php
+++ b/module/VuFind/src/VuFind/Mailer/Factory.php
@@ -64,6 +64,9 @@ class Factory implements FactoryInterface
         $settings = [
             'host' => $config->Mail->host, 'port' => $config->Mail->port
         ];
+        if (isset($config->Mail->name)) {
+            $settings['name'] = $config->Mail->name;
+        }
         if (isset($config->Mail->username) && isset($config->Mail->password)) {
             $settings['connection_class'] = 'login';
             $settings['connection_config'] = [