Forward each outgoing email to a backup emailaddress

cDGo

Verified User
Joined
Sep 21, 2012
Messages
84
Would it be possible for backup purposes to send a copy of each outgoing email to another emailaddress?
This should only work for one package, not the entire server (accounts)

Like you would do if you add a bcc in your email client (ie outlook).
But instead of leaving this task to the email client application, let the mail server handle it.
 
Last edited:
Hi Alex,

Thanks for your reply.
I think this solution will work for all email addresses on the server and not for one domain/package only?
I'm only needing it for one user, not the entire server.

I changed my initial posting to be more clear about that.
 
Replace the line

Code:
if "${lookup{$sender_address_domain}lsearch{/etc/virtual/domains}{true}{false}}" is "true"

to match a sender address with a desired value then.
 
It looks like my reply is been removed?
After posting it shows that my reply must be checked by a moderator.
But after refresh it's gone
 
Last edited:
Would it than become:
Code:
if "${lookup{"[email protected]"}lsearch{/etc/virtual/domains}{true}{false}}" is "true"
 then
             unseen deliver "[email protected]"
else if "${lookup{"[email protected]"}lsearch{/etc/virtual/domains}{true}{false}}" is "true"
 then
             unseen deliver "[email protected]"
else if "${lookup{"[email protected]"}lsearch{/etc/virtual/domains}{true}{false}}" is "true"
 then
             unseen deliver "[email protected]"
 endif

To send copies from [email protected] and [email protected] to [email protected]
and
To send copies from [email protected] to [email protected]
 
Back
Top