Changes

Jump to navigation Jump to search
2,398 bytes added ,  10:44, 18 July 2017
Created page with "<span id="_top">Qpsmtpd#Plugins</span> = NAME = bcc = DESCRIPTION = Forwards a copy of all mail (or just incoming or outgoing mail) to the given..."
<span id="_top">[[Qpsmtpd#Plugins]]</span>
= [[#___top|NAME]] =

bcc

= [[#___top|DESCRIPTION]] =

Forwards a copy of all mail (or just incoming or outgoing mail) to the given email address (useful for archiving etc.). bcc addresses may be passed as parameters to bcc, or may be defined in a 'bcc' config file.

bcc also checks config files 'bcc_ignore_mailfrom' and 'bcc_ignore_rcptto' for exceptions - these contain lists of email addresses bcc should ignore as senders or recipients. They also support bare username and '@domain' entries as wildcards.

bcc will use per_recipient configs if passed a true 'per_recipient' argument, but it cannot handle multiple different configs for different recipients (so use denysoft_multi or similar to prevent those).

bcc should generally be called before the 'check_relay' plugin, since incoming processing uses a RCPT hook.

= [[#___top|CONFIG]] =

The following parameters can be passed to bcc, or set via a 'bcc' config file.

; mode [ bcc | cc | off ]
: bcc mode. Defaults to 'bcc' if any of the all/incoming/outgoing parameters are set, and 'off' otherwise. 'cc' mode is identical to 'bcc' mode, except that an 'X-Copied-To' header is added to the mail headers for each all/incoming/outgoing recipient.
; all &lt;email&gt;
: Send a copy of all email to the given address.
; incoming &lt;email&gt;
: Send a copy of all incoming email to the given address. Mail is considered incoming if it is going to a recipient with a domain in 'rcpthosts'.
; outgoing &lt;email&gt;
: Send a copy of all outgoing email to the given address. Mail is considered outgoing if it is sent from a relay client i.e. the RELAYCLIENT environment variable is set.

The following parameter can be passed to bcc (but not set via a config file):

; per_recipient 1
: Allow per-recipient configs to be used (using the per_user_config plugin).

= [[#___top|BUGS]] =

Note that the definitions of incoming and outgoing mail mean that relayed mail to a local domain is considered both incoming and outgoing, and will be copied twice. This is a feature, not a bug. :-)

= [[#___top|AUTHOR]] =

Written by Gavin Carr &lt;gavin@openfusion.com.au&gt;.

<!-- Generated Tue Jul 18 05:43:41 EDT 2017 using
perldoc -T -ohtml /usr/share/qpsmtpd/plugins/bcc |pandoc -f html -t mediawiki |sed 1 i\\n\n\n<span id="_top">[[Qpsmtpd#Plugins]]</span> |sed -e s#</d.>##
-->
----
[[Category:Qpsmtpd]]

Navigation menu