How to forward incoming/outgoing mails to two other accounts?
I want every email sent and received from a@example.com to be forwarded to b@example.com and c@example.com.
I created this file - cpanel_exim_system_filter2 in the etc folder and I tried some codes but it didn't work. One of my client wants to do this.
Do I have to create two files and only one? I don't really understand coding so copy paste would be awesome :)
Thank you.
-
Hello, I recommend using the Global Email Filter option in cPanel to forward incoming email: Global Email Filters - Documentation - cPanel Documentation As far as outgoing email, the archive feature is a supported method of saving outgoing email: Archive - Documentation - cPanel Documentation Thank you. 0 -
Hello, I tried Global filters but from what I understood, the option will allow me to filter emails with specific criteria. I want to send a copy of each and every mail that is received and sent in mail id A to mail id B and C. Which options do I select in global filters? 0 -
I tried Global filters but from what I understood, the option will allow me to filter emails with specific criteria. I want to send a copy of each and every mail that is received and sent in mail id A to mail id B and C.
You can actually use the "Forwarders" option in cPanel to forward incoming email from one email account to multiple other email accounts. Keep in mind outgoing email is handled separately, and the only supported method of making copies of outgoing email is through the Archive option in cPanel: Archive - Documentation - cPanel Documentation Thank you.0 -
Make sure your "cpanel_exim_system_filter2" file is selected in the Exim Configuration Manager 's System Filter File. Add the following to the end of your file: #Incoming To, CC, BCC if ("$h_to:, $h_cc:, $h_bcc" contains "a@example.com") then unseen deliver "b@example.com" unseen deliver "c@example.com" endif #Outgoing From if first_delivery and $sender_address is "a@example.com" then unseen deliver "b@example.com" unseen deliver "c@example.com" endif
Then restart Exim.0
Please sign in to leave a comment.
Comments
4 comments