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
  #21  
Old 11th June 2008, 14:03
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 551
Thanks: 14
Thanked 48 Times in 47 Posts
Default

David,

Correct me if I'm wrong but you said that you're not getting the release tab and you don't see any mails on the quarantine tab.

Do you see any mails on the recent messages tab?
Are you getting any errors in your mail.log?
Also, are mails being delivered to your exchange?
__________________
Home of the SpamSnake
Reply With Quote
Sponsored Links
  #22  
Old 11th June 2008, 20:09
skruven2006 skruven2006 is offline
Junior Member
 
Join Date: May 2008
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Correctamente!

I have no release tab at all.
In the Quarantine tab, I see dates that are clickable - and when that is done the message "No rows retrieved" appears.

My mail appears to be working (I haven't heard of any mails that has been "lost" from my friends).
The mail.log seems fine

example from an incoming mail in the mail.log

Code:
Jun 11 17:44:02 tornillo postfix/smtp[31002]: A33E4C1C: to=<XXXXX@yahoo.se>, relay=c.mx.mail.yahoo.com[216.39.53.3]:25, delay=26, delays=23/0.03/1.1/2.2, dsn=2.0.0, status=sent (250 ok dirdel)
Jun 11 17:44:02 tornillo postfix/qmgr[11049]: A33E4C1C: removed
Jun 11 17:44:05 tornillo MailScanner[30344]: Logging message 90D3942D.44844 to SQL 
Jun 11 17:44:05 tornillo MailScanner[30344]: Config: calling custom end function SQLBlacklist 
Jun 11 17:44:05 tornillo MailScanner[31004]: 90D3942D.44844: Logged to MailWatch SQL 
Jun 11 17:44:05 tornillo MailScanner[30344]: Closing down by-domain spam blacklist 
Jun 11 17:44:05 tornillo MailScanner[30344]: Config: calling custom end function MailWatchLogging 
Jun 11 17:44:06 tornillo MailScanner[30344]: Config: calling custom end function SQLWhitelist 
Jun 11 17:44:06 tornillo MailScanner[30344]: Closing down by-domain spam whitelist 
Jun 11 17:44:06 tornillo MailScanner[30344]: MailScanner child dying of old age 
Jun 11 17:44:07 tornillo MailScanner[31005]: MailScanner E-Mail Virus Scanner version 4.68.8 starting... 
Jun 11 17:44:07 tornillo MailScanner[31005]: Skipping Custom Function file MailWatch.pm~ as its name does not end in .pm or .pl 
Jun 11 17:44:07 tornillo MailScanner[31005]: Skipping Custom Function file SQLBlackWhiteList.pm~ as its name does not end in .pm or .pl 
Jun 11 17:44:07 tornillo MailScanner[31005]: Read 817 hostnames from the phishing whitelist 
Jun 11 17:44:08 tornillo MailScanner[31005]: Read 5141 hostnames from the phishing blacklist 
Jun 11 17:44:08 tornillo MailScanner[31005]: Config: calling custom init function SQLBlacklist 
Jun 11 17:44:08 tornillo MailScanner[31005]: Starting up SQL Blacklist 
Jun 11 17:44:09 tornillo MailScanner[31005]: Read 6 blacklist entries 
Jun 11 17:44:09 tornillo MailScanner[31005]: Config: calling custom init function MailWatchLogging 
Jun 11 17:44:09 tornillo MailScanner[31005]: Started SQL Logging child 
Jun 11 17:44:09 tornillo MailScanner[31005]: Config: calling custom init function SQLWhitelist 
Jun 11 17:44:10 tornillo MailScanner[31005]: Starting up SQL Whitelist 
Jun 11 17:44:10 tornillo MailScanner[31005]: Read 56 whitelist entries 
Jun 11 17:44:10 tornillo MailScanner[31005]: SpamAssassin temporary working directory is /var/spool/MailScanner/incoming/SpamAssassin-Temp 
Jun 11 17:44:11 tornillo MailScanner[31005]: Using SpamAssassin results cache 
Jun 11 17:44:11 tornillo MailScanner[31005]: Connected to SpamAssassin cache database 
Jun 11 17:44:11 tornillo MailScanner[31005]: Enabling SpamAssassin auto-whitelist functionality... 
Jun 11 17:44:14 tornillo MailScanner[31005]: ClamAV scanner using unrar command /usr/bin/unrar 
Jun 11 17:44:15 tornillo MailScanner[31005]: Using locktype = flock
Thanks for your patience Rocky


//David
Reply With Quote
  #23  
Old 12th June 2008, 03:55
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 551
Thanks: 14
Thanked 48 Times in 47 Posts
Default

Hey,

Seems as though the following files are not named properly. Please correct the name and restart MailScanner.

[CODE]
Skipping Custom Function file MailWatch.pm~ as its name does not end in .pm or .pl
Skipping Custom Function file SQLBlackWhiteList.pm~[/CODE]

As for the quarantine and release issue, it's related to permission problems.

Please redo the permissions as stated earlier in this thread.

Rocky
__________________
Home of the SpamSnake
Reply With Quote
The Following User Says Thank You to Rocky For This Useful Post:
skruven2006 (12th June 2008)
  #24  
Old 12th June 2008, 08:57
skruven2006 skruven2006 is offline
Junior Member
 
Join Date: May 2008
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Rocky,

the files that ends with the ~ sign are created as a "backup" by Jed. The original files are there also with their proper name.
I've tried to remove these files and restarted mailscanner, but still the same.

I've redone the permissions in this thread, this time for the 7th or 8th time.
Could it have something to do with permissions in the mysql-db's?

//David
Reply With Quote
  #25  
Old 12th June 2008, 09:02
skruven2006 skruven2006 is offline
Junior Member
 
Join Date: May 2008
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Addition to the last post, don't know if this has something to do with the problem but....

Code:
 /etc/init.d/mailscanner restart
 * Restarting mail spam/virus scanner MailScanner
commit ineffective with AutoCommit enabled at /etc/MailScanner/CustomFunctions/MailWatch.pm line 93.
Program MailScanner, 2 process(es), refused to die.                                               [fail]
root@tornillo:/etc/MailScanner/CustomFunctions# /etc/init.d/mailscanner restart
 * Restarting mail spam/virus scanner MailScanner                                               [ OK ]
root@tornillo:/etc/MailScanner/CustomFunctions#
Other functions that has the "No rows retrieved"-problem
Reports - Message Operations
Reports - Top Viruses
Reports - Virus Report
Reports - MCP Score Distribution
Reports - MCP Rule Hits
Reports - Audit Log

Quarantine - All sublinks

//David

Last edited by skruven2006; 12th June 2008 at 09:28.
Reply With Quote
  #26  
Old 13th June 2008, 04:10
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 551
Thanks: 14
Thanked 48 Times in 47 Posts
Default

If you'd like me to take a look at your settings, I'd be more than happy to. However, you'll have to setup an ssh login for me. It has to be permission issues.
__________________
Home of the SpamSnake
Reply With Quote
  #27  
Old 13th June 2008, 15:31
casamatta casamatta is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Something strange

Hi, I'm new here and apologize me for my bad english!

In the web interface I can't see the bottom bar to teach that a message it's spam or not.

I can see only if i set right permissions with:

Code:
chown -R postfix:www-data /var/spool/MailScanner
chown -R postfix:www-data /var/lib/MailScanner
chown -R postfix:www-data /var/run/MailScanner
chown -R postfix:www-data /var/lock/subsys/MailScanner
chown -R postfix:www-data /var/spool/postfix/hold
chmod -R ug+rwx /var/spool/postfix/hold
chmod -R ug+rwx /var/spool/MailScanner
but after only one modification bar disappear.

I encounter another problem in message operation: if i try to teach that a message it's spam or ham in do_message_ops.php page i have this result:

Spam Learn Results
[message.id] spam Invalid argument

If I change permission again, stop and start service i can make operation.

I made correctly all installation steps, system works fine.

A possible solution?!?

Thank you for your time!

Matteo
Reply With Quote
  #28  
Old 14th June 2008, 04:48
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 551
Thanks: 14
Thanked 48 Times in 47 Posts
Default

Hey,

Ok so let me try to understand whats going on.

When you apply the permission changes, everything works?

Do you reboot your pc and then lose functionality?
__________________
Home of the SpamSnake
Reply With Quote
  #29  
Old 14th June 2008, 08:25
casamatta casamatta is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Yes! After permission changing everything works properly for only one time. After only one modification for a message I lose bar.

Looking permissions in quarantine folder I see all messages with -rwxrwx--- permissions and touched message is -rw-------only.

After one attmpt to solve this problem (changing in mailscanner configuration masks from 0600 to 0770) everything works fine everytime.

Sorry for my bad and poor english!
Reply With Quote
  #30  
Old 16th June 2008, 13:15
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 551
Thanks: 14
Thanked 48 Times in 47 Posts
 
Default

David,

I think you're missing section 9.11 because you're your mailwatch queue does not show the status of incoming mails. Check it out.
__________________
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 20:15.


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