The issue was still present in version 1.2.15-1.3.9.
I believe I've fixed the issue, at least for my installation. I had to modify
version 1.2.15 qmailadmin's user.c around line 962 as follows:
if ( (strcmp (cforward, "forward") != 0) || saveacopy ) {
if (strcmp (cforward, "blackhole") == 0) {
fprintf (fs, "# delete\n");
emptydotqmail = 0;
} else if (spam_check == 1) {
#ifdef MODIFY_SPAM_NEED_EMAIL
fprintf(fs, "%s %s@%s\n", SPAM_COMMAND, ActionUser, Domain);
#else
fprintf (fs, "%s\n", SPAM_COMMAND);
#endif
emptydotqmail = 0;
} else {
if ( saveacopy ) {
fprintf (fs, "%s/" MAILDIR "/\n", vpw->pw_dir);
/* this isn't enough to consider the .qmail file non-empty */
}
}
}
-----Original Message-----
From: Jake Vickers [mailto:[email protected]]
Sent: Tuesday, July 19, 2011 9:03 AM
To: [email protected]
Subject: Re: [qmailtoaster] Qmailadmin vacation message issues
On 07/18/2011 01:46 PM, [email protected] wrote:
> Background: qmailadmin-toaster 1.2.12 running on CentOS 5.6 x86_64 -
> compiled with DISTRO=cnt5064, ARCH=x86_64, BDIR=redhat
>
> Qmailadmin is incorrectly modifying .qmail files when applying/removing
> vacation messages. Here's the scenario:
> -----------------
> Initially
> .qmail contains:
> |/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter:
> maildrop-toaster' /etc/mail/mailfilter
> -----------------
> vacation message turned on via qmailadmin:
> vaca messages send ok, but account gets 2 copies of every message
>
> .qmail contains:
> |/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter:
> maildrop-toaster' /etc/mail/mailfilter
> /home/vpopmail/domains/[domain]/[account]/Maildir/
> | /usr/bin/autorespond 86400 3
> /home/vpopmail/domains/[domain]/[account]/vacation/message
> /home/vpopmail/domains/[domain]/[account]/vacation
> -----------------
> vacation message turned off via qmailadmin:
> duplicate messages persist
>
> .qmail contains:
> |/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter:
> maildrop-toaster' /etc/mail/mailfilter
> /home/vpopmail/domains/[domain]/[account]/Maildir/
>
Thanks - please open a bug ticket on this. I can't remember if I checked
to see if the upstream package fixed this or not.
---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]