Re: Limit rate/concurrency to a given domain

2009-02-23 Thread Santiago Romero


That's right, the logs show the program name (smtp) not the transport 
name; you can't tell which transport called smtp.


You can add something like
  -o syslog_name=postfix-slow
to the master.cf slow transport entry to differentiate the logging.


That's it. Postfix is awesome and very well designed. Such kind of 
change would need 723435 patches in qmail (and that's why I'm migrating 
all my qmail servers to postfix).


Thanks a lot.

--
Santiago Romero




Re: Limit rate/concurrency to a given domain

2009-02-21 Thread mouss
Santiago Romero a écrit :
 
 Is there any way to verify seeing the logfile if a given message is
 going throught a given transport (say slow in my master.cf) instead of
 standard smtp transport?
 
 I'm not sure or I don't know how to check if the messages are being
 delivered by the slow transport I defined :? (at least, I can't see in
 the logs info about it).
 


look for relay=.


Re: Limit rate/concurrency to a given domain

2009-02-19 Thread Santiago Romero

Wietse Venema escribió:

default_destination_rate_delay (default: 0s)
   The default amount of delay that is inserted between individual  deliv-
   eries  to  the same destination; with per-destination recipient limit 
   1, a destination is a domain, otherwise it is a recipient.
..
   NOTE: THE DELAY IS ENFORCED BY THE QUEUE MANAGER. ...

The delay is NOT implemented by the smtpd process. 
  

I finally was setting:

/etc/postfix/master.cf:
slow  inet  n   -   -   -   -   smtp

/etc/postfix/transports:
domain1.comslow:

/etc/postfix/main.cf:
slow_destination_recipient_limit = 1
slow_destination_concurrency_limit = 1
slow_destination_rate_delay = 2


Do you mean (sorry If I didn't understood it) that I can use:

slow_destination_recipient_limit = 1
slow_destination_concurrency_limit = 1

but no:

slow_destination_rate_delay = 2

?

The logfile shows in any way that I'm sending a give email with the 
slow transport instead of the standard smtp transport? (To verify if 
my config is working correctly and check if emails are going out by the 
right transport).


Thanks for your help.

--
Santiago Romero




Re: Limit rate/concurrency to a given domain

2009-02-19 Thread Wietse Venema
Santiago Romero:
 Wietse Venema escribi?:
  default_destination_rate_delay (default: 0s)
 The default amount of delay that is inserted between individual  
  deliv-
 eries  to  the same destination; with per-destination recipient 
  limit 
 1, a destination is a domain, otherwise it is a recipient.
  ..
 NOTE: THE DELAY IS ENFORCED BY THE QUEUE MANAGER. ...
 
  The delay is NOT implemented by the smtpd process. 


Therefore, smtpd -o slow_destination_rate_delay does not work,
nor does smtp -o slow_destination_rate_delay.

Wietse