Ano-Tech Computers
Enter keyword:

Make vpopmail log to another syslog facility than mail.*
Problem:
splogger takes a second parameter, the facility number. Unfortunately, this does not affect the log messages generated by vchkpw, which are usually the ones we are interested in.
 
Solution:
The vchkpw syslog facility is hard-coded, but changing it is very easy even if you're not a programmer. Simply open "vchkpw.c" in your favorite text editor and search for "LOG_MAIL". Replace that constant with another facility name as listed in "/usr/include/sys/syslog.h", for example "LOG_LOCAL1". The constant name appears only once in the file.

Re-compile using "make && make install-strip".

You do NOT have to re/start qmail for the change to take effect, because vchkpw is started once for every POP3 login.
 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles