PDA

View Full Version : Need to save a copy of outgoing mail (qmail-send)


udu
09-15-2004, 05:02 AM
I need to be able to save a copy of all outgoing email on my qmail server in a folder. What would be the best way to do this ?
I would imagine that I would need to add a line to my /var/qmail/supervise/run file.

Any ideas ?
Thanks

esarakaitis
09-15-2004, 11:28 AM
Set QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5 in
conf-unusual.h. Recompile qmail. Put ./msg-log into ~alias/.qmail-log.

You can also use QUEUE_EXTRA to, e.g., record the Message-ID of every
message: run

| awk '/^$/ { exit } /^[mM][eE][sS][sS][aA][gG][eE]-/ { print }'

from ~alias/.qmail-log.

udu
09-20-2004, 04:55 AM
Kewl thanks for the advice :)
I need to do some testing now, would not want to break my live mail server :P

Dudley

binoy
08-10-2006, 09:15 AM
Set QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5 in
conf-unusual.h. Recompile qmail. Put ./msg-log into ~alias/.qmail-log.

You can also use QUEUE_EXTRA to, e.g., record the Message-ID of every
message: run

| awk '/^$/ { exit } /^[mM][eE][sS][sS][aA][gG][eE]-/ { print }'

from ~alias/.qmail-log.


hi i can suggest u a simple step ....

make some changes in ur extra.h before u compile qmail

Set QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5

save extra.h and run make setup check

now all ur incoming and out going mail copy will automatically sent to a user name called log. it will not created by default u have to create this account manually .once u done it u can get all incoming and out going mail copy in that account

binoy
chennai

sunilsaini81
10-21-2008, 04:34 AM
thanks all of u


i have followed all the step in extra.h file explaind here

i have compiled qmail also


there is no error

but i am not able to save any msasge on log account

some one help me

thanks in advance

Syngin
10-21-2008, 09:28 AM
What Qmail patch set did you use? You might already have Qmail-tap compiled into Qmail for this.

http://www.inter7.com/?page=qmailtap

nathan3011
12-19-2008, 09:51 AM
Hey thanks for this guys but i couldn't save any messages on log account and for some reason i kept getting an error just wen i was doing normal things and i can't understand why.

This is a bit worrying as it was totally fine, but now i do get the occasional eroor message but its not all the time!