Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Aug 14, 2012 8:52 am 
Offline
Senior Member

Joined: Wed Nov 16, 2011 8:15 am
Posts: 70
Hi,

I've setup my server with the above packages, along with Clamav and Clamav-daemon. (See my signiature for a complete list of packages I've installed.)

All the spam mail I'm receiving (about 10 mails/day) has the Subject prepended with '***SPAM***'. In my Outlook client, this is not a problem as I have a rule that moves them to a seperate folder and I manage them there. However my iPhone doesn't do this, so my display is cluttered with past spam messages.

Today I configured my server to move spam mail into the Junk directory for the mail accounts I'm monitoring on the iPhone. I'm hoping this will fix the clutter problem on my iPhone.

By moving the spam to the Junk folder, I'm worried that eventually my mail server will be overloaded with junk mail.

I understand that I can setup webmail (IMAP) and manage the Junk mail that way, but with lots of email accounts to check, this is not really satisfactory.

Can I setup SpamAssassin to delete mail in the junk folder after X days?

Cheers,
Nap
______

_________________
My VPS system:
(Ubuntu 14.04 LTS, Kernel 3.15.4-x86_64, Apache 2.4.7, MariaDB Server 5.5.40, MariaDB Client 5.5.41, PHP 5.5.9, ISPConfig 3.0.5.4p5, Webmin, PureFTP & Quota, phpMyAdmin, postfix, dovecot, amavis, clamav, spamassassin, awstats, fail2ban, Jailkit, bind9, vlogger, webalizer)


Top
   
PostPosted: Wed Aug 15, 2012 12:08 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
That's not really SpamAssassin's job. You can set up a Dovecot plugin to do this. Alternatively, you could use your own script like this guy (via IMAP) or to directly delete the files in the Maildir (probably not as nice to Dovecot to do it that way).


Top
   
PostPosted: Wed Aug 15, 2012 12:28 am 
Offline
Senior Member

Joined: Wed Nov 16, 2011 8:15 am
Posts: 70
thnx Vance. I've had a look and I like the way it works.
Spamassassin doesn't assassinate? lol. SNAG software.

I've been reading on the subject in the meantime, and have seen references to using .procmail scripts to do this.
Are Dovecot and Procmail compatable, or do they perform the same function within the mailing end-end process, and therefore not able to run side-by-side?

_________________
My VPS system:
(Ubuntu 14.04 LTS, Kernel 3.15.4-x86_64, Apache 2.4.7, MariaDB Server 5.5.40, MariaDB Client 5.5.41, PHP 5.5.9, ISPConfig 3.0.5.4p5, Webmin, PureFTP & Quota, phpMyAdmin, postfix, dovecot, amavis, clamav, spamassassin, awstats, fail2ban, Jailkit, bind9, vlogger, webalizer)


Top
   
PostPosted: Thu Aug 16, 2012 3:21 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Procmail is a mail delivery agent (MDA). Postfix has its own called local, and Dovecot also has one called deliver. The job of an MDA/LDA is to process mail destined for a local user - once a message is delivered, it generally won't touch it again.

So all SpamAssassin really does is tag messages; the MDA/LDA then deletes them (often by "delivering" to /dev/null) or files them in a junk folder based on the headers added by SpamAssassin. It looks like Dovecot's deliver can handle this function, either natively or with the Sieve plugin.

In short, procmail can be useful if you need capabilities that local or deliver don't provide, but none of them are really intended for processing mail after it's been delivered to the local user.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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