On Mon, 2009-06-15 at 09:26 +0200, Magnus Bäck wrote:
> On Mon, June 15, 2009 9:09 am, EASY steve.h...@digitalcertainty.co.uk said:
> 
> > Probably a stupid question, but in practical terms is it possible to set
> > a header filter that will reject (or ideally defer) mail on time range?
> > For example during the hours of 00:00 -> 07:00.
> 
> *Header* filter? Do you simply mean that all messages, regardless of
> contents, should be rejected between 00:00 and 07:00? Either use two
> main.cf configurations that you switch between at 00:00 and 07:00, or use
> a lookup table that you change the contents of at that time. The latter
> approach avoids a Postfix reload, which is good (but if the timing is
> critical you do need to reload Postfix to make it pick up the new
> configuration immediately).
> 
Thanks Magnus. What I like about asking stupid questions is that someone
always has a better way to do things than my retarded brain can think
of!

I want to defer/reject all mail between those hours. The timing does not
have to be totally accurate - a few minutes either way is no big issue.
I am noticing that all connections overnight are UCE attempts. There has
not been a legitimate one every in my logs. I appreciate that this is
not going to be true for many, but for us it looks like a plausible
approach.

It seems a bit convoluted by my guess would be to set up two main.cf
files, the seconds (short) version denying everything and then get cron
to swap these in and out at the required times. I guess, doing it this
way, I can set some exemptions and white listing in the second conf.

Mmmm. The possibilities :-)


Reply via email to