LinuxQuestions.org
Help answer threads with 0 replies.
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, 10: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, 02:59 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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 02:41 AM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 01:21 PM
Postfix- What is Hostname?? Chiragrs Linux - Networking 1 05-11-2007 12:18 PM
Postfix -- Allowing SMTP Connections Based on Destination Domain zok Linux - Networking 1 02-28-2007 10:25 PM
Postfix Hostname DSoft Linux - Server 11 10-23-2006 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration