Hi eric,
thanks for the answer. I tried but it doesn't work. I think
that the problem is on the procmail rules. My client wanted
to check the mail of the archive with a mail client with
the mail just marked as read and with the subject modified.
For this i wrote this procmail rule:
----------------------------------------------------------
foldername=./archive/Maildir
:0
{
:0 fhw
* ^Subject: \/.*
| formail -I "Subject: Archive copy - $MATCH"
:0c
.$foldername/ # stores in .$foldername/new/
:0
* LASTFOLDER ?? /\/[^/]+$
{ tail=$MATCH }
TRAP="mv $LASTFOLDER .$foldername/cur/$tail:2,S"
HOST
}
----------------------------------------------------------
and in .qmail file in the root of the mail account directory:
----------------------------------------------------------
| /usr/bin/procmail -m ./.procmailrc
----------------------------------------------------------
I think that the problem is here having two mail archive directory.
I posted it because i hope it can be useful to someone too...
If i delete all the rules, the taps works fine.
Any idea?
thanks,
Paolo
-----Messaggio originale-----
Da: Eric "Shubes" [mailto:[EMAIL PROTECTED]
Inviato: venerdì 23 febbraio 2007 17.08
A: [email protected]
Oggetto: Re: [qmailtoaster] problem with qmail taps file and forwards
Taxxolo wrote:
> Hi all,
> i set up a Qmailtoaster Server. All is working fine but the client
> asked me to archive all the mail incoming and outcoming and redirect
> it to two accounts. I configured the two accounts, put
>
> [EMAIL PROTECTED]:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]:[EMAIL PROTECTED]>
>
> in /var/qmail/control/taps
>
> and i created a forward from [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> to the two accounts with the admin of
> QT. My problem is that if i receive a mail from outside, all works
> fine and both accounts receive it as a copy. But if i try to send it
> from inside to outside, the QT starts to generate
> thousands of mails and send it to these two accounts. The "To:" account
> receive it correcly.
> The only way to block it is to stop the QT and delete all messages of
> the queue.
> But if i set in taps file a redirect directly on an account without
> passing on a forward, all
> works fine. But with only one account.
>
> What can i do to resolve this problem?
>
> Thanks, regards
> Paolo
Having the same domain name for the archive as the domain being tapped can
cause this recursive behavior. Create a separate virtual domain for the
archive and tap to the archival domain to avoid this situation.
--
-Eric 'shubes'
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]