View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-14-2011, 09:02 AM   #1
Registered: Nov 2010
Posts: 33

Rep: Reputation: 0
POSTFIX SMTP banner based on MX hostname (PostFix 2.3.3 on RHEL)

We have a couple of Amazon EC2 boxes running an email forwarding service using POSTFIX (And RHEL5.5). Everything works fine, except the SMTP banner is incorrect.
In I have
smtpd_banner = $myhostname Company Name SMTP server ($mail_name $mail_version)
This shows the SMTP Header as
220 ip-x-x-x-x.localdomain Company Name SMTP Server (Postfix/2.3.3)
(ip-x-x-x-x.localdomain being the hostname of the server inside Amazon EC2, I've removed the IP from the hostname for security)

The problem is, the server is currently uses two different DNS records for access;
Some of the domains have their MX records set to and some set to Is there any way to get the SMTP banner to show the correct record based on what the domain is set to?
(I.E. mail sent to would have the SMTP banner
220 Company Name SMTP Server (Postfix/2.3.3)
and mail sent to would have the banner
220 Company Name SMTP Server (Postfix/2.3.3)
Old 02-15-2011, 01:59 AM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
To my knowledge, it would only have one banner due to being the only mail server.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SMTP + Postfix fedoraman Linux - Server 1 10-12-2008 01:41 AM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
Postfix- What is Hostname?? Chiragrs Linux - Networking 1 05-11-2007 11:18 AM
Postfix -- Allowing SMTP Connections Based on Destination Domain zok Linux - Networking 1 02-28-2007 09:25 PM
Postfix Hostname DSoft Linux - Server 11 10-23-2006 01:43 PM

All times are GMT -5. The time now is 09:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration