File spam to a separate folder

I have SpamAssassin 3.2.1 setup integrating with an internal MTA. The internal MTA is talking to the message store using LMTP.

When a user sends a test string that is guaranteed to be a spam, everything looks fine except the mail is put in the inbox rather than the designated folder "spam".

The log file in the message store shows

<date> tcp_lmtpss S 0 xxx@domain.com rfc822; yyy+spam@lmtpcs-daemon 250 2.5.0 Delivery to user OK

The action string for the SpamAssassin is "data:, require "fileinto"; fileinto "$U";.

The config file has the following content:

host=x.y.z.t

port=783

mode=0

verdict=spam

debug=1

Thanks

[696 byte] By [JoeChris@Suna] at [2007-11-27 9:52:00]
# 1

Hi,

Sounds like a known issue. On your *mail-store* end (not the MTA relay end), make sure your lines look like this in the imta.cnf file:

!

! tcp_lmtpss (LMTP server - store)

tcp_lmtpss lmtp flagtransfer

tcp_lmtpss-daemon

The flagtransfer is the important keyword.

Then run ./imsimta cnbuild;./imsimta restart and restest.

Regards,

Shane.

shane_hjortha at 2007-7-13 0:21:14 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...