From: Walter Pinto on
Arthur, why not just set it in the main.cf ?

From: Arthur Titeica on
On Thu, 05 Aug 2010 16:21:08 -0400, Brian Evans - Postfix List
<grknight(a)scent-team.com> wrote:
> On 8/5/2010 4:09 PM, Arthur Titeica wrote:
>> On Thu, 05 Aug 2010 15:57:48 -0400, Brian Evans - Postfix List
>> <grknight(a)scent-team.com> wrote:
>>> On 8/5/2010 3:39 PM, Arthur Titeica wrote:
>>>> On Thu, 5 Aug 2010 12:33:07 -0700, Walter Pinto<walter(a)amhosting.com>
>>>> wrote:
>>>>> smtp_bind_address = x.x.x.x
>>>> I knew I forgot something :)
>>>>
>>>> I've tried that in master.cf in the form
>>>>
>>>> smtp inet n - - - 30 smtpd
>>>> -o smtp_bind_address=94.62.132.84
>>>> -o smtp_bind_address6=2001:4d18:0:5::6a
>>>>
>>> smtp_bind_address has no effect on the *smtpd* daemon
>> Oh, so a new service in master.cf like
>>
>> smtp inet n - - - 30 smtp
>> -o smtp_bind_address=94.62.132.84
>> -o smtp_bind_address6=2001:4d18:0:5::6a
>>
>> would be OK?
>>
> No, it sounds like you want to change the existing smtp client line:
>
> smtp unix - - - - - smtp
>
> If you wanted to add a new service, it would look like:
>
> smtp_alt unix - - - - - smtp
>
> (Assumption made that postfix is running in chroot from your previous
> example)

Indeed! I didn't even saw that one. Looks OK after a few tests.
One more question: I guess I can't use multiple smtp_bind_address
inside *one* smtp instance and I have to create multiple smtp instances
(as in your example: smtp_alt)?

--
Arthur Titeica

From: Arthur Titeica on
On Thu, 5 Aug 2010 13:35:59 -0700, Walter Pinto <walter(a)amhosting.com>
wrote:
> Arthur, why not just set it in the main.cf ?

Because, as I understand it, in main.cf smtp_bind_address only accepts
*one* interface, not many but not all as I need.

--
Arthur Titeica

From: Walter Pinto on
Makes sense.