Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

Hi,

I use sendmail as MTA.

I've two different IPs of the same subnet on the same Interface e.g.:

eth0: 192.168.0.1/24 DNS name: smtp.example.com - All traffic out through this IP.
eth0:0: 192.168.0.2/24 smtp1.example.com

I want to route some of the emails through 192.168.0.2? as well as 192.168.0.1 will remain on the same interface. Any possibility??????

asked 10 Jun '10, 08:47

likeunix's gravatar image

likeunix
11
accept rate: 0%

edited 10 Jun '10, 14:30

jeremy's gravatar image

jeremy ♦♦
1.0k1516

I'm not sure that I understand the question here... could you clarify better?

(11 Jun '10, 09:10) pmarini



You can use the DaemonPortOptions directive in sendmail.cf to bind to a specific IP/Port combination.

--jeremy

link

answered 10 Jun '10, 14:25

jeremy's gravatar image

jeremy ♦♦
1.0k1516
accept rate: 37%

1

Actually if you're going to modify the sendmail config, you should be modifying sendmail.mc and rebuilding the sendmail.cf file with sendmail-cf

(14 Jul '10, 20:29) rfelsburg ♦

DNS round robin is an easy and effect way of distributing the mail load across multiple ip addresses.

Having two mx records for the hostname, and giving both an equal weight will distribute across both evenly, and if one is down attempt to deliver to the other.

-Rob

link

answered 14 Jul '10, 20:27

rfelsburg's gravatar image

rfelsburg ♦
6061618
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×2
×1

Asked: 10 Jun '10, 08:47

Seen: 1,431 times

Last updated: 24 Mar '11, 09:23

powered by OSQA