Top Nav

Email alerts with Sophos virus scanner

I have looked through the Sophos configuration options and below is a list of commands that you can preform to get proper e-mail alerts:

To remove an email address from the list:

You can repeat the Email command above with a single email address and until you delete that new email using the delete command it will remain, so you can add multiple addresses at different times (the first time, add your address, then later add another technical addy.)

0

Disable on-access scanning with Sophos

To disable the on-access scanning in Sophos for now with this command:

It can later be re-enabled with this command:

As for checking for what Sophos has been doing lately, the log files are located in the following path:

As for further documentation, there are man pages for most of the various Sophos binaries that you can find in /opt/sophos-av/bin so you should be able to view the man page for them with “man savdctl” or whichever binary you need to look at.

1

Add RBL to Postfix

Add the following line to the bottom of /etc/postfix/main.cf or extend the existing smtpd_client_restrictions line:

0

MySQL Import Problem – Autoincrement

Trying to dump and import a mysql database from an old MySQL 3.x server to a 4.x server. Here’s an exerpt from the dump file:

What’s happening, is when it inserts the first row, it’s
auto-incrementing the key value to 1, so the next row that tries to
import gets a “Duplicate entry ‘1’ for key 1” error.

The solution was to add the following line to the top of your sql dump file:

Later versions of mysql do this automatically.

Problem is the first insert tries to put a 0 into the autoincrement
field. Normal behavior is for the 0 to be converted to the next
available increment which is one. Then the second row fails because
there is already a 1 in the table. The mode setting above tells mysql to
allow the 0 in the auto increment field.

0

Nameserver check script

0