Thank you for your prompt reply.
I have a postfix smtp server which connects directly to the internet and
does not relay mail through an ISP.
I am working on a project in which -- depending on the level of the
users subscription -- either their mail is delayed for at least 2 hours
or it is sent out immediately. Actually, I could use some advice on the
best way to implement this. Because of the application in use all email
whether or not it belongs to one group or another, originates from the
same domain. It is an application sitting on the smtp server which
processes mail for the application. The users fill in a form and
depending on their level of subscription, the values from the form are
converted into an email message, go out right away or are delayed. So,
as far as the smtp server is concerned , all mail originates from the
same user but in fact gets destined for different recipients. The
application can ad tags or codes to the individual messages to indicate
which group they are in so perhaps if postfix can look inside the
message or something and see the tag or code, it can then decide if it
should delay or deliver immediately the message.
I hope I'm making myself clear and please ask if you need clarification.
In my original post I was thinking well, perhaps I could set up two smtp
servers and two domains and put the delayed group into one server/domain
combo and the other group into a different server/domain combo and then
just delay for two hours any mail in the delayed group server/domain combo.
That was a stab at that idea.
Sahil Tandon wrote:
On Wed, 18 Feb 2009, jeffs wrote:
I need to delay all outbound email, not specific to destination domains.
I have tried to make the smtp_destination_rate_delay = 180
This increases the delay that is inserted between individual deliveries to
the same destination via the smtp(8) delivery agent.
but I believe that must work in conjunction with specific domains
(please someone tell me if that is the case because the documentation,
although it says one should specify the delayed to domain, doesn't
specify that this MUST be the case).
Where in the documentation is it stated that the destination domain needs to
be specified?
What would be the best way to delay ALL outbound email?
What is the problem you're trying to solve? Maybe defer_transports would
help in this situation.