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 > mailing.postfix.users > Bind to a specific interface for outgoing SMTP sessions
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Bind to a specific interface for outgoing SMTP sessions

Réponse
 
LinkBack Outils de la discussion
Vieux 14/04/2006, 13h16   #1 (permalink)
Jeffrey Overman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Bind to a specific interface for outgoing SMTP sessions

Hi,

Is it possible to bind to a specific interface for outgoing SMTP sessions?
I've got one real interface with 3 aliases configured for it. I'd like to use
one of those aliases as the interface which is used for sending mail out.

Can this be done with postfix? I know how to do it with sendmail and exim,
but that won't get me far as I'm using postfix at the moment

Thanx,

--
Jeffrey Overman

Everybody needs to believe in something, I believe I'll have another beer...

  Réponse avec citation
Vieux 14/04/2006, 16h30   #2 (permalink)
Greg Hackney
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bind to a specific interface for outgoing SMTP sessions

Jeffrey Overman wrote:
> Hi,
>
> Is it possible to bind to a specific interface for outgoing SMTP sessions?
> I've got one real interface with 3 aliases configured for it. I'd like to use
> one of those aliases as the interface which is used for sending mail out.
>
> Can this be done with postfix? I know how to do it with sendmail and exim,
> but that won't get me far as I'm using postfix at the moment
>
> Thanx,
>



Some relevant configs in main.cf:

inet_interfaces - contols which IP addresses that Postfix listens on.

smtp_bind_address - specifies which IP address to send email from.

myhostname - sets the Postfix name for the mail server

--
Greg
  Réponse avec citation
Vieux 15/04/2006, 10h06   #3 (permalink)
Jeffrey Overman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bind to a specific interface for outgoing SMTP sessions

On Fri, 14 Apr 2006 15:30:16 +0000, Greg Hackney wrote:

> Jeffrey Overman wrote:
>> Hi,
>>
>> Is it possible to bind to a specific interface for outgoing SMTP sessions?
>> I've got one real interface with 3 aliases configured for it. I'd like to use
>> one of those aliases as the interface which is used for sending mail out.
>>
>> Can this be done with postfix? I know how to do it with sendmail and exim,
>> but that won't get me far as I'm using postfix at the moment
>>
>> Thanx,
>>

>
>
> Some relevant configs in main.cf:
>
> inet_interfaces - contols which IP addresses that Postfix listens on.
>
> smtp_bind_address - specifies which IP address to send email from.
>
> myhostname - sets the Postfix name for the mail server7


The smtp_bind_address did the trick. Thanx! The only strange thing is
that when I do a 'postconf -d' and grep for the option, it doesn't have
the IP address I configured associated with it. But when I look at the
logs of another MTA under my control, I can see that the SMTP session is
bound to the right IP address.

Greetz,

--
Jeffrey Overman

Everybody needs to believe in something, I believe I'll have another beer...

  Réponse avec citation
Vieux 15/04/2006, 10h57   #4 (permalink)
Jeffrey Overman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Bind to a specific interface for outgoing SMTP sessions

On Sat, 15 Apr 2006 11:06:00 +0200, Jeffrey Overman wrote:

> On Fri, 14 Apr 2006 15:30:16 +0000, Greg Hackney wrote:
>
>> Jeffrey Overman wrote:
>>> Hi,
>>>
>>> Is it possible to bind to a specific interface for outgoing SMTP sessions?
>>> I've got one real interface with 3 aliases configured for it. I'd like to use
>>> one of those aliases as the interface which is used for sending mail out.
>>>
>>> Can this be done with postfix? I know how to do it with sendmail and exim,
>>> but that won't get me far as I'm using postfix at the moment
>>>
>>> Thanx,
>>>

>>
>>
>> Some relevant configs in main.cf:
>>
>> inet_interfaces - contols which IP addresses that Postfix listens on.
>>
>> smtp_bind_address - specifies which IP address to send email from.
>>
>> myhostname - sets the Postfix name for the mail server7

>
> The smtp_bind_address did the trick. Thanx! The only strange thing is
> that when I do a 'postconf -d' and grep for the option, it doesn't have


Okay, that's a brain fart on my side. I shouldn't use the -d flag if I
want to see the actual value *doh*.

I'm going to get another cup of coffee.

Greetz,

--
Jeffrey Overman

Everybody needs to believe in something, I believe I'll have another beer...

  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 01h34.


Édité par : vBulletin® version 3.7.2
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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09178 seconds with 12 queries