Kayako logo
E-mail Piping Issues E-mail piping issues and related configuration questions are posted here,

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
Destructo Offline
New Member
 
Posts: 5
Join Date: Aug 2008
Piped emails and spamassassin - 12-11-2008, 01:18 PM

I've given up searching for help online as searching for any term + "kayako" ends up listing every site with Kayako installed instead of relevant results, so I hope someone can help me here.

I have email piping setup and it works great, but emails being piped directly to Kayako don't pass through spamassassin and I can't figure out how to set that up. In two days we've received nearly 200 spam emails and it's gotten to the point of ridiculousness. By the way, spamassassin works great for all normal email addresses that aren't piped into Kayako.

For those of you with similar setups, how are you getting spamassassin to scan all emails? Are you piping emails to spamassassin then to Kayako?

Last edited by Destructo; 12-11-2008 at 01:20 PM.
   
Reply With Quote
  (#2) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 7,360
Join Date: Jan 2006
Location: England, UK
12-11-2008, 01:20 PM

Hi Destructo,

I have moved your thread to the Technical Chat forum. Unfortunately, I have no idea how to have Spam Assassin work its magic on forwarded e-mails. I know for certain that Plesk and cPanel do not offer this functionality out of the box.

If you find out how, I would be glad to hear


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 7,360
Join Date: Jan 2006
Location: England, UK
12-11-2008, 01:23 PM

Hi there,

This is interesting:

A Small Orange Forums > Spam Assassin Filtering and Mail Forwarders

Quote:
I did find out that Spam Assassin does it work before the forwarding.
But Spam Assassin isn't the program or process that does the deleting or filtering of e-mail based on its Spam score. Spam Assassin merely reads the e-mail and adds a Spam score to it (0=not spammy, >0 more spammy). This spam score can be used by other mail handling software to determine how to handle the mail.
Maybe Spam Assassin is attaching the spam score to the e-mail headers of forwarded e-mail?


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#4) Old
Destructo Offline
New Member
 
Posts: 5
Join Date: Aug 2008
12-11-2008, 03:02 PM

Thanks for the quick response, Jamie. I did look at that just to make sure that the problem wasn't just that spamassassin wasn't modifying the subject line, but the headers are completely clear of any mention of spamassassin.

As usual, I come up with a fix minutes after posting for help!

I was already piping all emails to a shell script due to an earlier problem with php errors causing piping to fail. My email forward is setup like this:

Code:
|/home/domain.com/support/cli/wrapper.sh
Inside of wrapper.sh, I have these two lines:
Code:
#!/bin/sh
/usr/bin/spamassassin -e "$@" | /home/yourdomain.com/support/cli/index.php "$@" > /dev/null 2>&1
That is forcing the email first through spamassassin, which outputs a new version of the email with modified headers that is then injected into Kayako. The final bit sends all unwanted output to /dev/null to avoid piping problems.

So far so good, I tested it by sending normal emails and emails with spam links and they were all handled correctly. Now I'll setup some filters to have all marked spam sent to a folder where it will be reviewed before being deleted.

Hopefully that helps anyone else who might be having that problem.

Last edited by Destructo; 12-11-2008 at 03:03 PM.
   
Reply With Quote
  (#5) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 7,360
Join Date: Jan 2006
Location: England, UK
12-11-2008, 03:15 PM

Hi Destructo,

Fantastic, thanks for sharing.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#6) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 270
Join Date: Oct 2007
Location: Jakarta, Indonesia
08-12-2009, 04:30 AM

Here's how I enabled SpamAssassin for piped emails on my Centos 4 server, with qmail:

Code:
| /usr/bin/spamassassin | php -q /var/www/vhosts/mysupport.com/httpdocs/cli/index.php
Took me a few minutes to figure out, so maybe someone else can benefit.


Matthew Arciniega
Free: Ticket List & Search | Dept. Display Names
Free: Outlook/HTML Tickets| Staff Parser Log
Tutorials: SLA System
| Template Groups
KSS v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78