To see the current list of pending envelope sender addresses, floyd simply sends an empty mail to email@example.com. He then receives a message like this:
Subject: qconfirm list From: "The qconfirm program" <firstname.lastname@example.org> To: email@example.com qconfirm list | sort -r 2002-11-13_13:44:44 firstname.lastname@example.org 2002-11-13_11:17:52 email@example.com 2002-11-13_09:15:42 firstname.lastname@example.org 2002-11-13_06:42:15 email@example.com 2002-11-13_05:36:14 firstname.lastname@example.org 2002-11-13_05:02:17 email@example.com ...Now floyd decides to manually confirm the envelope sender address firstname.lastname@example.org, to add the currently unknown address email@example.com to the list of known addresses, and to silently drop a message from the envelope sender address firstname.lastname@example.org. He simply replies to the message he's received from the qconfirm-control program like this:
To: The qconfirm program <email@example.com> Subject: Re: qconfirm list On Wed, Nov 13, 2002 at 03:11:45PM -0000, The qconfirm program wrote: > qconfirm list | sort -r > 2002-11-13_13:44:44 firstname.lastname@example.org drop > 2002-11-13_05:36:14 email@example.com accept firstname.lastname@example.org thanks. > 2002-11-13_05:02:17 email@example.comThe qconfirm-control program then processes the message, runs the qconfirm program on floyd's request and sends an acknowledgement message to firstname.lastname@example.org:
Subject: qconfirm control From: "The qconfirm program" <email@example.com> To: firstname.lastname@example.org > On Wed, Nov 13, 2002 at 03:13:26PM -0000, The qconfirm program wrote: unknown command. > > qconfirm list | sort -r > > 2002-11-13_13:44:44 email@example.com > drop firstname.lastname@example.org: drop. > > 2002-11-13_05:36:14 email@example.com > accept firstname.lastname@example.org email@example.com: confirm. firstname.lastname@example.org: ok. > thanks. Removing temporary authorization. Stopping processing here.
Create this dot-qmail file and the .qconfirm/control directory as the user floyd now, and tell qconfirm-control that email@example.com is the owner who is authorized to control qconfirm:
$ mkdir ~/.qconfirm/control $ echo '|qconfirm-control -d./.qconfirm' >~/.qmail-qconfirm-control-default $ echo 'firstname.lastname@example.org' >~/.qconfirm/conf/QCONTROL_OWNERYou need to adapt the dot-qmail filename if you use virtualdomains.
Test the qconfirm-control program by sending a mail to email@example.com, firstname.lastname@example.org should receive a mail message listing currently pending envelope sender addresses.
Note that qconfirm-check and qconfirm-control must run as the same user and must use the same qconfirm directory.