~darkage <[EMAIL PROTECTED]> wrote:
>
> > > I currently have qmail installed on my firewall which only performs
> > > basic inbound relaying to a inside mail server. I want to configure
> > > qmail on the firewall to perform the following task -
> > >
> > > * Be able to recognize selective recipients of inbound emails & defer
> > > the delivery until a set time. (ie. after business hours) It would be
> > > good if it could also select inbound emails that have large file
> > > attachments & defer their delivery time too.
> > It's difficult to say what the best way of accomplishing this might be, as
> > it's an unusual request, and your reasons for doing so are unclear. What
> > problem are you trying to solve? Perhaps there's a more qmail-ish way of
> > doing things.
> I know its a strange setup especially for emails that dont have attachments.
> Its logical just to do it for emails with large attachments if u have a slow
> link of course. I guess the main reason for this, is to slowdown almost
> real-time email conversions. Its something that isn't as harsh as banning a
> handful of sender addresses. (You know how it is.. You keep on emailing
> your best friends at their work place constantly during the day... I'm
> totally against the idea, but my boss asked me to try & implement this evil
> step) My logic to it is to use a method to scan emails for the selected
> sender/recipent combinations, take them out of the main queue into another
> queue/maildir which the delivery agent is managed by cron. Im currently
> researching as I've only experienced the basic levels of this fine product..
Hmmm -- "qmail is too fast; how do I slow it down?" Switch to sendmail? :)
There's various ways of doing this. If this inbound mail gets passed on to
another (internal) mail server, you could make these user accounts virtual by
putting them in virtualdomains:
user1@thisdomain:alias-delay
user2@thisdomain:alias-delay
...
Then, have ~alias/.qmail-delay-default, which files all mail in a Maildir.
Then have serialmail run out of cron every hour (or every four hours, or
whatever) to deliver the contents of this Maildir onto the next hop.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------