I have setup my vps mailing server to deliver all email incoming and outgoing from certain domains to an external domain .
I am receiving all the emails correctly and everything is dandy but i am facing a problem : i need to divide emails by domain and by incoming/outgoing
this is why i created the following rules :
Rule 1 : if the word : domain name is present in the recipient move mail to incoming folder
Rule 2 : if the word : domain name is present in the sender move mail to outgoing folder
but i can still see emails going to different folders as emails can have the same word in the recipient and sender part ( sending from
1@1.com to
2@1.com per example )
what do you think i should do ?