kyle-qmail at memoryhole
Nov 9, 2009, 8:50 AM
Post #2 of 3
-----BEGIN PGP SIGNED MESSAGE-----
Re: Resend forward-mails in queue to another adresse -> HOWTO
[In reply to]
On Monday, November 9 at 01:35 PM, quoth Dirk:
> If and how can I now force the mails in the queue be resend but
> forwarded to the new address "C" ? They are still in the queue for
> the old forward address.
Well, the way *I* would do it (there may be simpler ways) is to stop
qmail-send, edit the relevant files in the queue, then restart
qmail-send. Specifically, remote recipients are listed in the files in
/var/qmail/queue/remote/. Of course, that's a hashed structure in
there, so you'll need to figure out *which* files to edit, but in this
case, I imagine you can get away with `grep -rl "A"
/var/qmail/queue/remote`. Once you know which files to edit; edit
them! Be careful to preserve the correct formatting (these files do
not end in a newline, for example, and many text editors will secretly
add a newline to the end of all files; also, your recipient must be
prepended with the letter "T").
Anyway, that's a grungy, down-and-dirty way of doing it. I imagine
there's a cleaner way (perhaps with a tool of some sort).
Suppose ye that I am come to give peace on earth? I tell you, Nay; but
rather division: For henceforth there shall be five in one house
divided, three against two, and two against three. The father shall be
divided against the son, and the son against the father; the mother
against the daughter, and the daughter against the mother; the mother
in law against her daughter in law, and the daughter in law against
her mother in law.
-- Prince of Peace, Jesus Christ (Luke 12:51-53)
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
-----END PGP SIGNATURE-----