Le 31/01/2011 00:09, Steve Jenkins a écrit :
> On Sat, Jan 29, 2011 at 1:23 PM, mouss <mo...@ml.netoyen.net> wrote:
>> Le 29/01/2011 22:19, David Touzeau a écrit :
>>> Dear
>>>
>>> I would like to tune postfix smtp sender according specific destination
>>> domains eg number of connexions, number of email per seconds, queue life
>>> time
>>>
>>> Is there any documentation on this needs or how can i define settings in
>>> order to achieve this task ?
>>>
>>
>> clone the smtp transport in master.cf. for example:
>>
>> slowsmtp      unix  -       -       n       -       -       smtp
>>
>> foosmtp      unix  -       -       n       -       -       smtp
>>
>> barsmtp      unix  -       -       n       -       -       smtp
>>
>>
>> then you can use
>>
>> foosmtp_some_variable = some_value
> 
> Ok - I read "man 5 master" to try and figure this out, but it still
> didn't make sense.

read for example:
http://www.postfix.org/postconf.5.html#default_destination_concurrency_limit

and look at the line that says: Use transport_...  if you look enough,
you'll notice that "transport" is in italics.

now you can read the postconf.5.html and look for all
default_destination_* variables.

so maybe some examples are easier to read?

foosmtp_destination_concurrency_limit = 10
foosmtp_destination_rate_delay = 1
foosmtp_destination_concurrency_failed_cohort_limit = 10

http://www.postfix.org/postconf.5.html#transport_destination_concurrency_failed_cohort_limit
http://www.postfix.org/postconf.5.html#transport_destination_rate_delay
http://www.postfix.org/postconf.5.html#default_destination_concurrency_limit

> 
> So for example, let's say I wanted to limit outgoing mail to yahoo.com
> to 10 simultaneous connections and 20 emails per second. In master.cf
> I'm presuming I put:
> 
> yahoosmtp      unix  -       -       n       -       -       smtp
> 
> But then I didn't understand the "some_variable = some_value" part of
> the solution. I'm assuming that part goes in main.cf, but beyond that
> I'm stumped on how my "10" and "20" values get declared and
> interpreted properly.
> 


see above, as well as
http://tech.groups.yahoo.com/group/postfix-users/message/234969




> Thanks,
> 
> SteveJ

Reply via email to