Hi,
Usama Tariq <usama@???> (Sa 18 Mär 2017 07:28:08 CET):
> Dear Concern,
> The thing i want is to block outgoing-email(means outside from domainone.com)
> of specific user and send the copy of outgoing email to
> monitoring@???.
What is "specific user"? Are you talking about a specific sender
address, or about a specific authenticated ID?
And … we shouldn't say "email" but "address", as a message can have
multiple addresses attached.
What is "block"? Do you want to reject the address at SMTP time (IMHO
the best approach
I'd use the 'control = fakereject' in the ACL during SMTP time and
a router, that delivers to monitoring, if the ACL matched the address
*untested and probably not well fitting*
check_rcpt:
...
accept condition = ${if eq{$authenticated_id}{monitored_user}}
domains = !domainone.com
set acl_m_blocked = yes
control = fakereject/blocked because of because
...
begin routers
...
blocked:
driver = redirect
condition = ${if def:acl_m_blocked}
data = monitoring@???
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -
! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -