Hi Aaron,

Your ex. works, but what it does, is writing the email to a file, when i try to parse it to a perl program, it just add the mail contents, in the end of the perl program, and that was not the way i want it.

Any ideas?

Tha MTA i use, is Postfix.

Kasper


Aaron Stone wrote:

Quick to a file:

 dbmail-users -x '@yourdomain' -t '| cat >> /tmp/yourdomain'

If that's all you want to do, then create a directory like
/var/spool/dbmail and give the username you run dbmail as permissions to
it. If you want mbox format, use ! (bang) instead of | (pipe) in the
forward.

Aaron


On Thu, Feb 10, 2005, ""Jesse Norell"" <[EMAIL PROTECTED]> said:

Hello,

 That's a task for your MTA, not for dbmail.  In fact I can't think
of a way to make dbmail do that without hacking the source.  What MTA
do you use?  Eg. with postfix, a couple options would be to change
the command that runs from master.cf (not using lmtp) to a little
shell script that both saves the mail and forwards a copy to dbmail
(eg. use something like "tee -a /tmp/allmymail | dbmail-smtp -d $1",
or use postfix's always_bcc setting to forward a copy of all mail to
a specific user, and have it write to their mbox (rather than using
the dbmail transport).  Give it a try and hollar back to the dbmail list
with what you've got/done if still needing more help.

Jesse

---- Original Message ----
From: Kasper Haagensen <dbmail-dev@dbmail.org>
To: dbmail-dev@dbmail.org
Subject: [Dbmail-dev] @domain.com to perl
Sent: Thu, 10 Feb 2005 14:05:37 +0100

Hi

A small quastian, can i get dbmail to write all mail from a domain to a text file (perl script) ?

I have look all over the net, for doing this with postfix.
If just one of you, have a hint where to look.

Kasper

PS: Know it is maybe not the right list, to post  this.

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

-- End Original Message --


--
Jesse Norell
jesse @ kci.net

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev




Reply via email to