LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-14-2011, 09:02 AM   #1
samarudge
Member
 
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 main.cf I have
Code:
smtpd_banner = $myhostname Company Name SMTP server ($mail_name $mail_version)
This shows the SMTP Header as
Code:
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;
mail-01.companywebsite.com
mx1.companywebsite.com
Some of the domains have their MX records set to mail-01.companywebsite.com and some set to mx1.companywebsite.com. 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 mail-01.companywebsite.com would have the SMTP banner
Code:
220 mail-01.companywebsite.com Company Name SMTP Server (Postfix/2.3.3)
and mail sent to mx1.companywebsite.com would have the banner
Code:
220 mx1.companywebsite.com Company Name SMTP Server (Postfix/2.3.3)
?)
-Sam
 
Old 02-15-2011, 01:59 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

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


Reply


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 04:43 PM.

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