Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #31  
Old 16th June 2008, 13:32
skruven2006 skruven2006 is offline
Junior Member
 
Join Date: May 2008
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hmmm... I'm not so sure about that.

But I tried it again and:
root@tornillo:/usr/src/postfixmail# patch /var/www/mailscanner/functions.php functions.php.diff
patching file /var/www/mailscanner/functions.php
Hunk #2 FAILED at 221.
Hunk #3 FAILED at 225.
2 out of 3 hunks FAILED -- saving rejects to file /var/www/mailscanner/functions.php.rej

Don't know how to interpret that.

Ha-ha.. tearing my head off soon!
Just as the release function got working, I tested the above and now nothing, really nothing is working.
I can't do anything else than laugh.

Rocky? Any idea?




//David

Last edited by skruven2006; 16th June 2008 at 13:34.
Reply With Quote
Sponsored Links
  #32  
Old 16th June 2008, 13:38
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

David,

I've attached my functions.php and postfix.inc files. Back yours up and give these a try.
__________________
Home of the SpamSnake

Last edited by Rocky; 12th February 2010 at 14:42.
Reply With Quote
The Following User Says Thank You to Rocky For This Useful Post:
skruven2006 (16th June 2008)
  #33  
Old 16th June 2008, 13:50
skruven2006 skruven2006 is offline
Junior Member
 
Join Date: May 2008
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks a lot!!
Reply With Quote
  #34  
Old 16th June 2008, 13:52
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

No prob David.

You just have to tweak it a bit and you'll be alright. Change your Spam Lists to spamhaus-ZEN instead of SBL-XBL. ZEN replaced that one. Also, make sure you have 'store' in all 3 of your spam actions.
__________________
Home of the SpamSnake
Reply With Quote
  #35  
Old 24th January 2009, 18:42
mifa mifa is offline
Junior Member
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi there, I have been following the SpamSnake setup and most things are running great, thanks for the tutorial!

I have a similar problem to what David had, it appears that everything is running, mailscanner is seeing mail and it's getting scanned, but I'm not seeing any external mail in MailWatch. Here's what i've done to get here and my troubleshooting:

I followed the tut to 9.15, rebooted and everything seemed to be running. I moved on and made it down to step 9.26, I tested Mailwatch and noticed I had not received any more mail in the previous 2 hours. Checked mail.log and everything looks fine

Jan 24 12:21:58 mw-254 postfix/smtpd[23671]: lost connection after CONNECT from unknown[190.3.215.219]
Jan 24 12:21:58 mw-254 postfix/smtpd[23671]: disconnect from unknown[190.3.215.219]
Jan 24 12:21:59 mw-254 postfix/smtpd[22543]: connect from pool-71-127-234-86.nwrknj.east.verizon.net[71.127.234.86]
Jan 24 12:21:59 mw-254 postfix/smtpd[22543]: NOQUEUE: reject: RCPT from pool-71-127-234-86.nwrknj.east.verizon.net[71.127.234.86]: 554 5.7.1 <addr@example.com>: Relay access denied; from=<sleekest0166@nailsbyliz.com> to=<addr@example.com> proto=ESMTP helo=<pool-71-127-234-86.nwrknj.east.verizon.net>


Checked for mailscanner errors....and the following lines usually repeat themselves every 10 minutes <- Is that a problem?

Jan 24 12:13:25 mw-254 MailScanner: MailScanner setting GID to www-data (33)
Jan 24 12:13:25 mw-254 MailScanner: MailScanner setting UID to postfix (108)
Jan 24 12:13:27 mw-254 MailScanner[23759]: MailScanner E-Mail Virus Scanner version 4.71.10 starting...
Jan 24 12:13:28 mw-254 MailScanner[23759]: Read 830 hostnames from the phishing whitelist
Jan 24 12:13:28 mw-254 MailScanner[23759]: Read 5298 hostnames from the phishing blacklist
Jan 24 12:13:28 mw-254 MailScanner[23759]: Config: calling custom init function SQLBlacklist
Jan 24 12:13:28 mw-254 MailScanner[23759]: Starting up SQL Blacklist
Jan 24 12:13:29 mw-254 MailScanner[23759]: Read 0 blacklist entries
Jan 24 12:13:29 mw-254 MailScanner[23759]: Config: calling custom init function MailWatchLogging
Jan 24 12:13:29 mw-254 MailScanner[23759]: Started SQL Logging child
Jan 24 12:13:30 mw-254 MailScanner[23759]: Config: calling custom init function SQLWhitelist
Jan 24 12:13:30 mw-254 MailScanner[23759]: Starting up SQL Whitelist
Jan 24 12:13:30 mw-254 MailScanner[23759]: Read 0 whitelist entries
Jan 24 12:13:30 mw-254 MailScanner[23759]: SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp
Jan 24 12:13:31 mw-254 MailScanner[23759]: Using SpamAssassin results cache
Jan 24 12:13:31 mw-254 MailScanner[23759]: Connected to SpamAssassin cache database
Jan 24 12:13:31 mw-254 MailScanner[23759]: Enabling SpamAssassin auto-whitelist functionality...
Jan 24 12:13:34 mw-254 MailScanner[23759]: Using locktype = flock


....everything looks good to me. So I figured I had messed something up between 9.15 and 9.26. After a while of troubleshooting I got frustrated and completely removed mailscanner from the system and started again from Step 8. Everything looked good all the way until I got to 9.15, restarted the system and have the same problem: mailscanner looks like it's doing it's job but the bayes database isn't being updated and I'm not seeing external mail flow through (I am seeing internal mail).

I had the same HUNK error that David posted, replaced my postfix.inc and functions.php with those provided by Rocky, dropped all the tables in my db. Still no love.

I figured this could be a permissions issue so looked at my lint test, it completes successfully, no warnings or errors. Here's the bayes part of my lint test


[23127] dbg: bayes: using username: root
[23127] dbg: bayes: database connection established
[23127] dbg: bayes: found bayes db version 3
[23127] dbg: bayes: Using userid: 2
[23127] dbg: bayes: not available for scanning, only 0 spam(s) in bayes DB < 200
[23127] dbg: config: score set 0 chosen.
[23127] dbg: message: main message type: text/plain
[23127] dbg: message: ---- MIME PARSER START ----
[23127] dbg: message: parsing normal part
[23127] dbg: message: ---- MIME PARSER END ----
[23127] dbg: plugin: Mail::SpamAssassin::Plugin:NSEval=HASH(0x989729c ) implements 'check_start', priority 0
[23127] dbg: bayes: database connection established
[23127] dbg: bayes: found bayes db version 3
[23127] dbg: bayes: Using userid: 2
[23127] dbg: bayes: not available for scanning, only 0 spam(s) in bayes DB < 200
[23127] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x95c7658) implements 'check_main', priority 0
[23127] dbg: conf: trusted_networks are not configured; it is recommended that you configure trusted_networks manually
[23127] dbg: metadata: X-Spam-Relays-Trusted:
[23127] dbg: metadata: X-Spam-Relays-Untrusted:
[23127] dbg: metadata: X-Spam-Relays-Internal:
[23127] dbg: metadata: X-Spam-Relays-External:
[23127] dbg: message: no encoding detected
[23127] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x94bfed c) implements 'parsed_metadata', priority 0


Any help would be greatly appreciated

/mike
Reply With Quote
  #36  
Old 31st January 2009, 22:07
mifa mifa is offline
Junior Member
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

any help??
Reply With Quote
  #37  
Old 4th February 2009, 17:18
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Mike,

Correct me if I'm wrong, basically, you're not seeing any mail log on your MailWatch interface?

Rocky
__________________
Home of the SpamSnake
Reply With Quote
  #38  
Old 5th February 2009, 08:07
cjc81 cjc81 is offline
Junior Member
 
Join Date: Jan 2007
Location: Singapore
Posts: 27
Thanks: 5
Thanked 2 Times in 1 Post
Send a message via MSN to cjc81
Default

Hey Rocky,

Really appreciate your patience. I am having issues releasing messages too. The issue i am facing is after i selecting the radio buttons and clicking learn, i get an error msg that ways the Message ID is not found.

Try to release any message, it will return Message ID
7E3CD28618F06_EE936 not found.

The message ID should be in the format of 7E3CD28618F06.EE936.

Somehow, the parser turn the "." to "-".

Any ideas sir?
Reply With Quote
  #39  
Old 5th February 2009, 15:38
mifa mifa is offline
Junior Member
 
Join Date: Jan 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Rocky,

I'm not seeing external mail go to mailwatch, I am seeing mail generated by local user accounts (i.e. root@server1.

I also thought the bayes db wasn't filling up but when I ls the files they look like they are being updated
Reply With Quote
  #40  
Old 5th February 2009, 15:58
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
 
Default

Mike,

I would look back at section 9 to make sure that you didn't miss anything. Seems like it's a configuration issue to me.

Rocky
__________________
Home of the SpamSnake
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPtables rule to let PPTP access LAN brianwebb01 Installation/Configuration 0 1st May 2008 21:23
mydomain.com fetches to my router's web interface kreya Installation/Configuration 5 13th June 2007 16:13
ispconfig and enable quarantine of poisoned messages ancile General 1 22nd March 2007 11:07
Problems with the virtual email system with postfix, courier,mysql Greg Parker HOWTO-Related Questions 3 3rd January 2007 17:59
get thousands of "Mailsize" mails from own server torusturtle Installation/Configuration 20 24th December 2006 14:51


All times are GMT +2. The time now is 10:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.