Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Change an SMTP banner in the mail server’s own configuration: use Set-ReceiveConnector for Exchange, smtpd_banner in Postfix’s main.cf, or smtp_banner in Exim’s main configuration. The key difference is that Exchange’s replacement value must start with 220, Postfix supplies the status code before its setting, and Exim adds 220 automatically.

What the SMTP banner does

The SMTP banner is the server’s first response after a client opens a TCP connection. RFC 5321 says the receiver normally responds with 220 Service ready; the greeting normally begins with the server’s fully qualified domain name after that code. Mail systems see this greeting, so choose a public name deliberately rather than unintentionally exposing an internal server name or software version.

Choose the setting for your mail server

Server Where to change it Who supplies 220? Hostname and multiline notes
Exchange Receive Connector, using Set-ReceiveConnector You must include 220 at the start of -Banner. Set the public name or other intended text. Multiline behavior is not stated in the Microsoft guidance cited here.
Postfix main.cf, using smtpd_banner Postfix supplies the status code; the setting is the text following it. $myhostname must be the first text in the value. Multiline behavior is not stated in the Postfix guidance cited here.
Exim Exim main configuration, using smtp_banner Exim adds 220 automatically; do not put it in the option. The default includes the active hostname, Exim, version and time. Use \n between lines for a multiline greeting, but not at the end.

Change the banner in Exchange

In the Exchange Management Shell, replace the connector identity with the receive connector you intend to change. The value must begin with 220.

Set-ReceiveConnector -Identity "Default Frontend Mailbox01" -Banner "220 mail.example.com"

To restore the default banner for that connector, set the value to $null:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Set-ReceiveConnector -Identity "Default Frontend Mailbox01" -Banner $null

Microsoft identifies three reasons to customize the greeting: avoid revealing an internal Exchange name, present a domain for anti-spam or reverse-DNS banner checks, or show a receive-connector name to help troubleshooting.

Change the banner in Postfix

Set smtpd_banner in Postfix’s main.cf. The documented default is $myhostname ESMTP $mail_name; Postfix requires $myhostname at the start of the text.

smtpd_banner = $myhostname ESMTP $mail_name

Edit the value to the greeting you want while retaining $myhostname first. Validate the resulting Postfix configuration, then reload the service so new SMTP processes use the change. The banner text follows the 220 status code; do not add that code to the setting.

Change the banner in Exim

Set smtp_banner in Exim’s main configuration. Its documented default is $smtp_active_hostname ESMTP Exim $version_number $tod_full. Exim expands the string each time it is used and adds the 220 response code itself.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
smtp_banner = $smtp_active_hostname ESMTP

Choose the text appropriate for your installation; the example above omits the version and time fields present in the documented default. To make a greeting span multiple lines, put \n between the lines, not after the final line. Apply configuration changes using your Exim service’s normal reload procedure.

Quick Recap

Bestseller No. 1
The Exim SMTP Mail Server: Official guide to Release 4
The Exim SMTP Mail Server: Official guide to Release 4
New; Mint Condition; Dispatch same day for order received before 12 noon; Guaranteed packaging
$19.51
Bestseller No. 4
Rank #4
CoBak Server Book with 5 Pockets
  • 5 Pockets & 1 Pen Hook: Keep essentials neatly organized with 5 pockets for cash, cards, receipts, and guest checks, plus a pen holder for easy access.
  • Perfect Size for Aprons: Compact 5”x7” size fits comfortably in aprons without poking or bulging. Expandable design ensures easy handling, helping you stay professional and efficient.
  • Durable & Easy to Clean: Made from premium, cruelty-free PU leather that’s water-resistant and scratch-proof. Easy to clean, ensuring it stays looking great through busy shifts.
  • Stay Organized on the Go: Designed to keep everything securely in place, this server book helps you stay organized even during the busiest shifts, so you can focus on providing great service.
  • High Quality at an Affordable Price: A well-crafted server organizer that offers premium quality at a reasonable price, trusted by waitstaff for everyday use.
Rank #2
Forvencer Server Book, 2 Zipper Pocket, Server Books for Waitress
  • Upgraded Two Zipper Pockets: Forvencer server books feature two secure zipper pockets for better organization of coins, cash, and receipts, ensuring that everything you collect has a safe and secure place
  • Smart Storage & Quick Access: Designed with 8 multi-functional compartments, the right side includes a guest receipt pad, while the left has a money pocket, ticket pocket, and credit card slot. Two small clear pockets store bills, receipts, and other visible items. A stitched pen loop ensures you always have your favorite pen ready
  • High-quality & Easy to Clean: Crafted from high-quality PU leather with heavy-duty stitching, this server book is built to last. It resists tears, scratches, and its waterproof surface makes cleaning easy with just a damp cloth or a non-chlorine sanitizer
  • Perfect Fit for Your Apron: Measuring 5” x 8”, this compact organizer is slightly smaller than other models, making it ideal for bending or sitting while carrying in your server apron. It holds everything a waitress needs—a place for everything
  • What's Included: This server organizer comes with multiple open and zippered pockets to store money, receipts, tips, etc. Clear sleeves are perfect for keeping menus or special lists while serving. Available in a variety of colors, allowing you to express yourself even when in uniform
#1 Best Overall
The Exim SMTP Mail Server: Official guide to Release 4
  • New
  • Mint Condition
  • Dispatch same day for order received before 12 noon
  • Guaranteed packaging
  • No quibbles returns
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify the live SMTP greeting

  1. From a network location permitted to connect, connect to the actual hostname and port used by the listener. Inspect the first response line.
  2. Confirm that the line begins with 220 and contains the intended public name. Check that an internal hostname or software version is not exposed unless you chose to disclose it.
  3. Send EHLO and confirm the server returns its normal 250 capability response. RFC 5321 specifies that a client normally sends EHLO after the greeting and must send HELO or EHLO before a mail transaction.
  4. For Exchange, Microsoft’s Telnet verification method applies only to connectors that allow anonymous or Basic authentication. If that test cannot connect, verify using an authorized connection method appropriate to the connector’s authentication settings.

Common mistakes to avoid

  • Using the wrong 220 convention: include it in Exchange’s -Banner value, but do not include it in Postfix’s smtpd_banner or Exim’s smtp_banner.
  • Removing Postfix’s required hostname: $myhostname must remain at the beginning of the Postfix banner text.
  • Assuming a file edit proves the change: inspect the greeting on the live listener after applying the service-specific change.
  • Putting a final newline escape in Exim: Exim permits \n between greeting lines, not at the end.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.