Download the PHP package eugenevdm/spamforce without Composer

On this page you can find all versions of the php package eugenevdm/spamforce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package spamforce

Spamforce

Spamforce is a utility that scans the Exim mail queue for stuck messages.

If a stuck message contains text that the message was detected as spam by Spamassassin, it automatically strips the content and submits it to Spamcop.

Once Spamcop processes the request, it will send a notification to the registered address with a hyperlink to complete the reporting.

Usage

A. Sign up to https://www.spamcop.net/ and get an Spamcop submit address, it will be something like: [email protected]

B. composer install eugenevdm/spamforce

C. Copy .env.example to .env and complete these values:

D. Create a new file, say fightspam.php:

$result will report how many messages are in the queue and which ones were deleted.

E. Create a cron job to run Spamforce every 5 minutes:

*/5 * * * * /usr/bin/php /root/fightspam.php

Caveats

The utility used shell_exec to access the Exim queue, and it might not be enabled on all systems.

To check: php -i | grep disabled

Then modify php.ini if it's disabled. Please note this might constitute a security risk.

Inspiration

I am a network administrator at Vander Host. Many of our clients who runs smaller businesses choose not to use the domain they have registered on our system, but rather to forward all email to upstreams such as Google and Apple. However, both Google and Apple block these messages if they contain suspect content.

At that point the messages are stuck in the Exim queue.

If you don't punish the spammers they will keep on coming back. This utility can be used to stabilize a severely affected system and bring the problem back down to a manageable level.

Support

Contact [email protected] or +27 82 3096710 for support

https://vander.host VPS, Hosting and Domains


All versions of spamforce with dependencies

PHP Build Version
Package Version
Requires vlucas/phpdotenv Version ^4.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package eugenevdm/spamforce contains the following files

Loading the files please wait ....