Discussion:
archive messages qmail
(too old to reply)
PK
2004-01-09 15:23:47 UTC
Permalink
how automatically archive messages incoming and outgoing
Thanks
Thomas Krug
2004-01-10 01:15:12 UTC
Permalink
Post by PK
how automatically archive messages incoming and outgoing
Thanks
You may e.g. replace the qmail-queue by a script archiving the message and
calling the original qmail-queue binary afterwards.


Give this one a try:

(file: /var/qmail/bin/mail-archiver)
----8<----8<-----8<----8<----
#!/bin/bash
#
# writes mail to an archive file
# and outputs mail for qmail-queue again

datum=`date +%Y%m%d_%H%M%S`
TMPFILE=/tmp/mail-archiver_$datum.tmp_$$

cat > $TMPFILE
cat $TMPFILE
----8<----8<-----8<----8<----



(file: /var/qmail/bin/qmail-queue)
----8<----8<-----8<----8<----
#!/bin/bash
#
# calls the mail-archiver and queues the mail
# to the original qmail-queue binary

/var/qmail/bin/mail-archiver | /var/qmail/bin/qmail-queue.original
----8<----8<-----8<----8<----


If you set the permissions correct, this works fine and may be used with
spamassassin, qmailscanner etc. as well.
(or use the QMAILQUEUE patch if you mind about overwriting the qmail-queue
script while remaking qmail)

Thomas.
ZappaFan2k1
2004-01-10 02:54:24 UTC
Permalink
Post by PK
how automatically archive messages incoming and outgoing
http://www.lifewithqmail.com/lwq.html#queue_extra
Jonathan de Boyne Pollard
2004-01-09 18:10:56 UTC
Permalink
P> how automatically archive messages incoming and outgoing

Your question is question 8.2 in the the FAQ document _that comes in the
package_.

Read the documentation _before_ posting to Usenet.

Loading...