Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jul 17, 2013 7:37 pm 
Offline
Senior Newbie

Joined: Sat May 04, 2013 7:10 pm
Posts: 10
Hello,
Have my mail server up and running with sieve junk filtering working.

I want to add a rule to save anything sent out to the sent items folder. Unfortunately my android client doesn't have this option, so this is my "workaround". (I know other android clients do have this function).

Here is my sieve script, with junk filter working, but sent items not working. I suppose this could be because it's not touching dovecot/sieve when sending a message - but just sending it to postfix which is sending it out? I'm not sure -- new guy here with this stuff. If that is the reason, is there a solution?

The "Sent" folder is my location for storing sent emails.

Code:
 GNU nano 2.2.4         File: /var/vmail/globalsieverc

require ["fileinto"];

#Auto save sent items to sent items folder
if header :is ["X-Mail-from"] ["me@myDomain.com"] {
  setflag "\\Seen";
  fileinto "Sent";
  stop;
}


# Move spam to spam folder
if header :contains "X-Spam-Flag" ["YES"] {
  fileinto "Junk";
  stop;
}



Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group