Posts

Showing posts with the label exim

how to spot a spammer on a server ?

The most important file to check is : Quote from: exim main log /var/log/exim_mainlog There you will find all information about exim operation status. These are also useful command to get stats about exim queue: To list email summaries and counts by domain: #exim -bp | exiqsumm To clear emails older than one day: #exiqgrep -o 86400 -i | xargs exim -Mrm To delete emails from queue FOR a particular user: #exiqgrep -ir email@domain.com | xargs exim -Mrm To delete emails from queue FOR a particular domain: #exiqgrep -ir @domain.com | xargs exim -Mrm To delete emails from queue FROM a particular user: #exiqgrep -if email@domain.com | xargs exim -Mrm To delete emails from queue FROM a particular domain: #exiqgrep -if @domain.com | xargs exim -Mrm

cPanel or WHM Accounting Logs:

Location :  /var/cpanel/accounting.log Description : Contains a list of accounting functions performed through WHM, including account removal and creation.. cPanel error logs: Location :  /usr/local/cpanel/logs/error_log Description : cPanel logs any error it incurs here. This should be checked when you encounter errors or strange behavior in cPanel/WHM... Client Information, Requested URL Logs: Location :  /usr/local/cpanel/logs/access_log Description : General information related to access cPanel requests is logged here. Bandwidth Logs: Location :  /var/cpanel/bandwidth Description : Files contain a list of the bandwidth history for each account. Each named after their respective user. Apache Access Logs: Location :  /usr/local/apache/logs/access_log Description : Complete web server access log records all requests processed by the server. Message Reception and Delivery: Location :  /var/log/exim_mainlog or /var/log/exim...

Exim command

Exim Commands Introduction: Here are some useful things to know for managing an Exim  server. Message-IDs and spool files. The message-IDs that Exim uses to refer to messages in its queue are mixed-case alpha-numeric, and take the form of: XXXXXX-YYYYYY-ZZ. Most commands related to managing the queue and logging use these message-ids. There are three -- count 'em, THREE -- files for each message in the spool directory. If you're dealing with these files by hand, instead of using he appropriate exim commands as detailed below, make sure you get them all, and don't leave Exim with remnants of messages in the queue. Files in /var/spool/exim/msglog contain logging information for each message and are named the same as the message-id. Files in /var/spool/exim/input are named after the message-id, plus a suffix denoting whether it is the envelope header (-H) or message data (-D). These directories may contain further hashed subdirectories to deal with larger...