nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Sendmail multiple Hostname and IP (Second Sendmail Instance)

This is a discussion on Sendmail multiple Hostname and IP (Second Sendmail Instance) within the Mail Servers forums, part of the Mastering Servers category; Hi. I'am having an issue with my sendmail configuration and I can't seem to get it to work as I ...


Go Back   nixCraft Linux Forum > Mastering Servers > Mail Servers

Linux answers from nixCraft.


Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-07-2009, 07:35 PM
Senior Member
User
 
Join Date: Jul 2006
Posts: 146
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default Sendmail multiple Hostname and IP (Second Sendmail Instance)

Hi.

I'am having an issue with my sendmail configuration and I can't
seem to get it to work as I would like.
My sendmail machine has mulitple IP addresses / hostname.

The issue is that I would like to configure sendmail to return the
proper name in the 220 message based on the IP address(hostname) that
the client MTA is attached to.

But sendmail always uses the hostname of the machine itself!

I need the following:

"telnet domain1.com 25"

should return: "220 domain1.com ESMTP Sendmail 8.13.8/8.13.8"

while "telnet domain2.com 25"

should return "220 domain2.com ESMTP Sendmail 8.13.8/8.13.8"

***

Also the message should sent throught the concert IP. e.g. domain1.com 192.168.0.1 , domain2.com 192.168.0.2

If i try to change host with: define(`confDOMAIN_NAME',
`mail.maindomain.com')dnl

it will always return the same greeting string regadless to the actual
host (listen ip) contacted!

any help please.
Reply With Quote
  #2 (permalink)  
Old 12-07-2009, 08:00 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

This is not possible as all other domains are virtual domains. The only way to get around this by installing multiple sendmail servers.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 12-07-2009, 09:23 PM
Senior Member
User
 
Join Date: Jul 2006
Posts: 146
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default

Is it possible to have two sendmail instants ?
Reply With Quote
  #4 (permalink)  
Old 12-07-2009, 11:40 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
Originally Posted by asim.mcp View Post
Is it possible to have two sendmail instants ?
Yes, it is possible if you've two public IP address. See Running a second sendmail instance

Another easy option is to run each sendmail using virtualization software such as xen or jails under FreeBSD.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
domains , howto second sendmail instance , linux , second sendmail instance tutorial , sendmail


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Sendmail Server. nishith Mail Servers 0 27-03-2009 08:38 AM
postfix one user multiple instance irfan1234 Mail Servers 0 10-08-2008 04:53 PM
sendmail configuration snmateen Mail Servers 4 26-07-2008 05:11 AM
Sendmail Server!!!!!!!!!!!!!!! amsreeku Linux software 1 24-04-2008 05:32 PM
new for sendmail kasimani Linux software 2 23-07-2006 09:54 AM


All times are GMT +5.5. The time now is 03:33 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38