PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > changing the outgoing ip address
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

changing the outgoing ip address

Réponse
 
LinkBack Outils de la discussion
Vieux 29/04/2007, 22h45   #1
michael.grant@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut changing the outgoing ip address

I have a machine which is multi-homed on 2 different IP addresses. I
would like sendmail to listen for connections on both interfaces, but
only send outgoing mail on the second interface.

Can someone tell me how I can configure sendmail's ip address for
outgoing mail to do this?

Michael Grant

  Réponse avec citation
Vieux 30/04/2007, 13h20   #2
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: changing the outgoing ip address

In article <1177879522.581117.116290@e65g2000hsc.googlegroups .com>
"michael.grant@gmail.com" <michael.grant@gmail.com> writes:
>I have a machine which is multi-homed on 2 different IP addresses. I
>would like sendmail to listen for connections on both interfaces, but
>only send outgoing mail on the second interface.


If it's really multi-homed, i.e. it has interfaces on different
networks, that's something that your TCP/IP stack should take care of,
specifically the routing logic. You just need to make sure the route
used for "outgoing" mail (typically the default route) is through the
desired interface, and the stack will choose the corresponding IP
address as source address for connections using that route.

>Can someone tell me how I can configure sendmail's ip address for
>outgoing mail to do this?


You can hardwire it via CLIENT_OPTIONS, see cf/README and doc/op/op.* -
but then that address will be used for *all* connections originated by
sendmail, which is generally not appropriate for a truly multi-homed
system.

--Per Hedeland
per@hedeland.org
  Réponse avec citation
Vieux 30/04/2007, 14h14   #3
jmaimon@ttec.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: changing the outgoing ip address

On Apr 30, 7:20 am, p...@hedeland.org (Per Hedeland) wrote:
> In article <1177879522.581117.116...@e65g2000hsc.googlegroups .com>
>
> "michael.gr...@gmail.com" <michael.gr...@gmail.com> writes:
> >I have a machine which is multi-homed on 2 different IP addresses. I
> >would like sendmail to listen for connections on both interfaces, but
> >only send outgoing mail on the second interface.

>
> If it's really multi-homed, i.e. it has interfaces on different
> networks, that's something that your TCP/IP stack should take care of,
> specifically the routing logic. You just need to make sure the route
> used for "outgoing" mail (typically the default route) is through the
> desired interface, and the stack will choose the corresponding IP
> address as source address for connections using that route.
>
> >Can someone tell me how I can configure sendmail's ip address for
> >outgoing mail to do this?

>
> You can hardwire it via CLIENT_OPTIONS, see cf/README and doc/op/op.* -
> but then that address will be used for *all* connections originated by
> sendmail, which is generally not appropriate for a truly multi-homed
> system.
>
> --Per Hedeland
> p...@hedeland.org


Perhaps you can experiment like suggested here

http://groups.google.com/group/comp....020c0cb?hl=en&

  Réponse avec citation
Vieux 30/04/2007, 16h22   #4
Grant Taylor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: changing the outgoing ip address

Per Hedeland wrote:
> You can hardwire it via CLIENT_OPTIONS, see cf/README and doc/op/op.*
> - but then that address will be used for *all* connections originated
> by sendmail, which is generally not appropriate for a truly
> multi-homed system.


I wonder if the option to instruct Sendmail to use the inbound interface
as the outbound interface would suffice the OP?



Grant. . . .

  Réponse avec citation
Vieux 10/05/2007, 07h07   #5
-
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: changing the outgoing ip address

Grant Taylor wrote:
> Per Hedeland wrote:
> > You can hardwire it via CLIENT_OPTIONS, see cf/README and doc/op/op.*
> > - but then that address will be used for *all* connections originated
> > by sendmail, which is generally not appropriate for a truly
> > multi-homed system.

>
> I wonder if the option to instruct Sendmail to use the inbound interface
> as the outbound interface would suffice the OP?


Here it is: DAEMON_OPTIONS('... Modifier=b ') Seems to work for
me. However, I'm not certain that's what he wants to do. I use it so
that I can have a single sendmail process serve multiple virtual hosts
that each have their own IP address(es).

However, that brings me to a question about the feature - and perhaps
a bug or design oversight with this feature:

1) I've noticed that mail that comes in via the loopback interface
gets bound to it and therefore can never leave the host. 127.0.0.1
or ::1 should probably not be bound to the mail in any case.

2) I've also noticed that mail that comes in via an IPv6 address and
gets routed back out (due to forwarding or list expansion) still is
bound to the IPv6 address (as expected). However, should the new
destination be IPv4 only (i.e. not IPv6 capable), the mail then sits
in the queue for days then eventually expires. I'm surprised that "no
IPv6 route to destination" doesn't generate a bounce/error message
back to the sender or the local postmaster.

For case #2, has anyone written (or considered) a modification to
allow mail to be bound to a DOMAIN (host-)name? That way, virtual
hosting is preserved and an allowance for a change in address family
exists (e.g. the most common case will be for a name that has both
IPv4 and IPv6 addresses defined in DNS, but maybe other address family
combinations will be permitted in the future).

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h03.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14235 seconds with 13 queries