How to forward all outgoing email to an email account. (Directadmin way)


If customer request for all outgoing email forwarding, we do allow and only allow to forward to non-free email account. Incoming forwarding can use the Directadmin -> Email forwarding function

 

1) vi /etc/system_filter.exim

2) Scroll to bottom before version history and add the code below

if $sender_address_domain is userdomain.com
then
unseen deliver user@gmail.com
endif

Replace userdomain.com with new domain and user@gmail.com with new email user.