> -----Original Message-----
> From: Jesper Hess Nielsen [mailto:[EMAIL PROTECTED]]
[snip]
> Is there an easy way to close a domain temporarily,
> allowing me to shut off
> all incoming and outgoing mail when a customer hasn't paid?
[snip]

For incoming:

I havnt really tested this but theres no reason why it shouldnt work:

(1) email your user with the mail saying he should pay up.
(2) write a simple shell script that exits with a qmail deferral
status (111)

-----8<-------
#!/bin/sh
exit 111
-----8<-------

(3) change your users .qmail-default in his/her domain directory to
pipe all mail to this.

This way all incoming email gets deffered for the standard qmail time,
bounced if this is exceeded (just over a day?). So they get a days
grace before mail starts bouncing. When the user pays, replace the
.qmail-default file with the standard vdelivermail one and all
deferred email will get delivered.

Since a day is a little short, you could send them warning mails
before hand saying you were going to do this....

Presumably for outgoing you could just remove their host from the
hosts allowed to send email (tcp-env settings?).

Marcus

Reply via email to