well what was stated around in French is that :
you have to to a template-custom of : /etc/e-smith/templates-user/.qmail/70Forward
mkdir --parents /etc/e-smith/templates-user-custom/.qmail
cp /etc/e-smith/templates-user/.qmail/70Forward /etc/e-smith/templates-user-custom/.qmail/70Forward
then edit with vim, pico, mcedit or whatever to obtain
{
# vim: ft=perl:
return '# Forward not set'
unless ($props{EmailForward} =~ /^(forward|both)$/);
my @Fwmail = split(/,/, $props{ForwardAddress}.",");
foreach (@Fwmail )
{
return '&' .$_;
}
}
then you will be able to change the db setting in command line, this way :
db accounts setprop ttestman ForwardAddress ttestman@yahoo.com,ttestman@gmail.com
signal-event user-modify ttestman
you still won't be able to use the server manager, because the server manager do a verification of unwanted characters. I then explained how to modify the manager verification but this is not a good way to do because either rpm updates would erase your modifications, or the updates won't be installed ( depending rpm settings).
But without theses modifications you would have trouble to make any change for this user in the manager
in fact the more clever way would be
mkdir --parents /etc/e-smith/templates-user-custom/.qmail
cp /etc/e-smith/templates-user/.qmail/70Forward /etc/e-smith/templates-user-custom/.qmail/70Forward2
then edit with vim, pico, mcedit or whatever to obtain :
vim /etc/e-smith/templates-user-custom/.qmail/70Forward2
{
# vim: ft=perl:
return '# Forward not set'
unless ($props{EmailForward} =~ /^(forward|both)$/);
my @Fwmail = split(/,/, $props{ForwardAddress2}.",");
foreach (@Fwmail )
{
return '&' .$_;
}
}
then you will be able to do :
db accounts setprop ttestman ForwardAddress2 ttestman@yahoo.com,ttestman@gmail.com
signal-event user-modify ttestman
this way :
- you will be bale to set as many forward address as you want in the key ForwardAddress2 ( separated by a coma ",")
- the key ForwardAddress will still permit to store one more forward address
- if you deactivate forward in the manager both key are ignored
- you are still able to use the manager for user
- only bad thing is you must watch that your emails are correct, because this way there is no regex to check after you