Koozali.org: home of the SME Server

qpsmtpd file calling plugins location

Offline jim7jim

  • ***
  • 61
  • +0/-0
qpsmtpd file calling plugins location
« on: June 06, 2007, 12:31:43 AM »
I can't seem to find where the definition file for the plugins are at.

When receiving email, all those checks are done like:

check_earlytalker
check_spamhelo
dnsbl

and all those. I'm trying to troubleshoot a problem and would like to # out some of these "checks". Can someone tell me where the file is located that calls these plugins on incoming mail?

v7.1

TIA

Offline mmccarn

  • *
  • 2,656
  • +10/-0
qpsmtpd file calling plugins location
« Reply #1 on: June 06, 2007, 05:03:15 AM »
qpsmtpd configuration is in /var/service/qpsmtpd/config

The basic config is in the file plugins

Starting with version 7.1.3 (maybe 7.1.2?) the 'plugins' file contains only the word 'peers'.  This tells qpsmtpd to use the config files in the 'peers' folder (/var/service/qpsmtpd/config/peers). A peek in here will show 2 files, 0 and local plus some symlinks to these two files. The file named '0' is the qpsmtpd configuration for the Internet; the file named 'local' is the qpsmtpd configuration file for the local network.  These were split in order to reduce the connection checking and spam filtering load due to connections from the local network.

The location of the plugins is indicated by the contents of the file /var/service/qpsmtpd/config/plugin_dir - on sme this file will contain /usr/share/qpsmtpd/plugins

The other files in the config directory contain the various configuration settings for the plugins and for qpsmtpd generally.

I find the following commands generally useful when trying to figure out my SME server:
- updatedb
(creates a database of all filenames on your system when run)
- locate <file>
(uses the databases created by 'updatedb' to easily locate files - so 'locate qpsmtpd | less' would list all the files or folders on your system with 'qpsmtpd' in the name)
- cd /etc/e-smith/templates; grep -R <string> * | less
(searches for <string> in all of the default SME templates - useful for identifying the template fragment that controls a particular config file setting.  So, once you find the particular qpsmtpd config file you want to customize, this command will help you find the template fragment used to create it if it isn't obvious from looking in /etc/e-smith/templates/var/service/qpsmtpd/config/ConfigFileName)

Offline jim7jim

  • ***
  • 61
  • +0/-0
.
« Reply #2 on: June 06, 2007, 02:23:32 PM »
Thanks mmccarn!

Very helpful!

I had read that the local qpsmtpd config was in the peers file and I found the /var/service/qpsmtpd/config/plugins file listed peers. But I didn't realize the 0 file inside peers was for the internet.

Thanks again.