Accessing email archived by qmail-scanner

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
netweblogic
Forum User
Forum User
Posts: 29
Joined: Mon Jan 12, 2009 2:31 pm

Accessing email archived by qmail-scanner

Unread post by netweblogic »

Hi everyone...

Quite new to qmail, and just got a qmail/qmail-scanner/clamav/spamassassin going on a PLESK CentOS5 VPS.

Look forward to adding some of these interesting ART features to PLESK!

I needed qmail-scanner mainly for the archiving feature, and now that I have it working, I was wondering if anybody can give me some direction in order to download these emails via POP to an email client? I'd like to back up all emails going in and out of the server off-site and POP sounds like the way forward, as it'll delete files as I download them...

Thanks in advance!
Patrick
New Forum User
New Forum User
Posts: 2
Joined: Thu Jan 22, 2009 3:42 am

Unread post by Patrick »

hi,

Did you find a way to do this already?

thanks, Patrick
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Its in maildir format, so on a plesk box I just have a job that moves the files into a mailbox plesk manages (and change the permissions!)
netweblogic
Forum User
Forum User
Posts: 29
Joined: Mon Jan 12, 2009 2:31 pm

That's right. Here's a little idea on what to do wit that :)

Unread post by netweblogic »

Hey Patrick,

Yeah, I did after a little experimenting.

Scott's right. Just move the files from the archives folder into the /new folder of a Maildir email account and change permissions to the delivery agent (e.g. courrier uses popuser)

I wrote a little tutorial here
http://blog.netweblogic.com/linux/mail/ ... gle-style/
that helps you set up archiving with Gmail, so it pulls it from a new email account!
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Unread post by faris »

Ah, now that IS a good solution. Gmail. Genius!
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
netweblogic
Forum User
Forum User
Posts: 29
Joined: Mon Jan 12, 2009 2:31 pm

Unread post by netweblogic »

:) a great bonus is you free up space on a server... great stuff once you have 40 accounts receiving mail all day!
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Unread post by faris »

I don't know if you want to change your instructions a bit though?

rather than editing qmail-scanner-queue.py (it is .pl in the Perl version anyway), change /etc/qmail-scanner.ini then run qmail-scanner-reconfigure

I don't know if you are using something different (because of the python .py extension) but in the versions I use ( Perl .pl), every time you run qmail-scanner-reconfigure, it will overwrite the qmail-scanner-queue.pl with the settings from qmail-scanner.ini

Faris.

Edit: Also you might want to change the bash script that copies the messages so that it checks if something new is in the new folder or not, otherwise you'll get a nessage from cron saying it can't copy anything :-) Or you could just add a >/dev/null 2>&1 jobbie to the end of the cron command.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
netweblogic
Forum User
Forum User
Posts: 29
Joined: Mon Jan 12, 2009 2:31 pm

Unread post by netweblogic »

faris, you are very right about the .ini file, thanks for pointing that out. In fact the thought crossed my mind when writing, but twas a late night post and never got round to fixing it!

I suppose you're right on the script too.... considering my server gets an email every few seconds though, it wouldn't be an issue for me but for a tutorial that's a more complete solution...

Thanks
Post Reply