in postifx you can do it in the virtualmaps file ...  I had tried doing
this in OpenSMTPD
about 1.5 years ago and ended up using OpenSMTPD as the service that
listened
to the outside world and then relay the information to Postfix  which would
copy and
forward mail listening on the loopback address, using the virtualmaps in
Postfix


edit /etc/postfix/virtual   file

[email protected]
[email protected],otheraddress_@_otherdomain.com

[email protected]
[email protected],root@localhost
@domain.com        @domain.com

repeat each line for each user of the domain

after editing the the virtual maps file run the command

postmap /etc/postfix/virtual


using the virtualmaps in Postfix
It worked reliably the only gotcha was trying to copy mails for unknown
addresses,
 I was not able to pull this off,  as a safety measure wildcard setting at
the bottom
of the file for un-known users and this would forward the mail without
copying
(not to interrupt production mailflow)

@domain.com   @domain.com

I hope this helps


On Mon, Jul 25, 2016 at 11:30 PM, Edgar Pettijohn <[email protected]>
wrote:

>
>
> Sent from my iPhone
>
> On Jul 25, 2016, at 2:18 PM, Edgar Pettijohn <[email protected]>
> wrote:
>
>
>
> Sent from my iPhone
>
> On Jul 25, 2016, at 11:33 AM, Denis Fondras <[email protected]> wrote:
>
> I'd like to bcc all incoming mail to a specified address, but could not
> figure out how. Anyone has any pointers?
>
> My current setup is opensmtpd + dovecot with virtual domains.
>
>
> I don't know if it is possible with OpenSMTPd.
>
> Alternatively and probably not as efficient but if you use pigeonhole you
> can
>
> add a global sieve script to copy email to another recipient.
>
>
> Denis
>
>
> --
>
> You received this mail because you are subscribed to [email protected]
>
> To unsubscribe, send a mail to: [email protected]
>
>
>
> I know it's possible with postfix, so I'm sure opensmtpd can do it too.
> Not sure how unfortunately.
>
> --
> You received this mail because you are subscribed to [email protected]
> To unsubscribe, send a mail to: [email protected]
>
> This is an excerpt from table(5)
>
> In a virtual domain context, the key is either a user part, a full email
> address or a catch all, following selection rules described in
> smtpd.conf(5) <http://man.openbsd.org/smtpd.conf.5>, and the value is one
> or many recipients as described in aliases(5)
> <http://man.openbsd.org/aliases.5>:
>
> @example.com             [email protected]
>
>
>


-- 
Kindest regards,
Tom Smyth

Mobile: +353 87 6193172
---------------------------------
PLEASE CONSIDER THE ENVIRONMENT BEFORE YOU PRINT THIS E-MAIL
This email contains information which may be confidential or privileged.
The information is intended solely for the use of the individual or entity
named above.  If you are not the intended recipient, be aware that
any disclosure, copying, distribution or use of the contents of this
information is prohibited. If you have received this electronic
transmission in error, please notify me by telephone or by electronic mail
immediately. Any opinions expressed are those of the author, not the
company's  .This email does not constitute either offer or acceptance of
any contractually binding agreement. Such offer or acceptance must be
communicated in
writing. You are requested to carry out your own virus check before opening
any attachment. Thomas Smyth accepts no liability for any loss or damage
which may be caused by malicious software or attachments.

Reply via email to