Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: mringoot on January 15, 2010, 04:34:36 PM
-
Hello,
I'm managing a SME server where a pop3 catch-all mailbox is read from the sme server and placed in a mailbox on the server.
To archive sned mail I've configured the BCC option using the maillog user.
However incoming mail is also copied to the maillox box.
Is there a way to change the configuration that only sent mail is copied tot the maillog mailbox ?
-
hi, welcome here..
log in as root
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/
cp /etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/13bcc /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/
cd /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/
pico 13bcc
change the code from:
{
return "# bcc disabled" unless ($qpsmtpd{Bcc} eq "enabled");
return "bcc mode " . $qpsmtpd{BccMode} . " all " . $qpsmtpd{BccUser};
}
to
{
return "# bcc disabled" unless ($qpsmtpd{Bcc} eq "enabled");
return "bcc mode " . $qpsmtpd{BccMode} . " outgoing " . $qpsmtpd{BccUser};
}
save with Ctrl-X and confirm with y
then do
signal-event email-update
it should work
more info:
perldoc /usr/share/qpsmtpd/plugins/bcc
HTH
-
Thanks for the clear explanation.
However changing the parameter to outcoming doesn't seem to work.
" incoming " works and also " all ""
with " outgoing " no copy is made and sent to maillog. the documentation states something on the environment variable RELAYCLIENT which I don't understand.
Regards
-
Did another attempt from scratch
now it works :-D
-
ops.. my bad
I suspect you have to create a custom template also for these files:
./etc/e-smith/templates/var/service/qpsmtpd/config/plugins/13bcc
./etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/13bcc
repeat the steps above modifying the folders accordingly
when done, raise
signal-event email-update
let us know, thank you
if something goes wrong, simply delete the templates-custom/var/service/qpsmtpd/config/ folder and raise the email-update event
-
tried and tested updating the additional 13bcc files, then it doess't work anymore.
So deleted the ..../config/peers/local file and dir and also the .../config/plugins file and dir
did a signal-event email-update again and the outgoing copy was functioning again.
So only the .../config/peers/0/ templates should be copied and modified
(in my first attempt I forgot to create the template-custom dir, which explains....)
Thanks for the quick help