Git Product home page Git Product logo

haraka-plugin-syslog's Introduction

Build Status Code Climate

NPM

haraka-plugin-syslog

Adds syslog support to Haraka. Most log levels in haraka already map to valid levels in syslog. Additional log levels in haraka fall under the DEBUG syslog level.

Enable

add syslog to config/plugins, near the top of the file.

Configuration

config/syslog.ini is the configuration file for the syslog plugin. In it you can find ways to customize the syslog service name, set the logging facility, and set any syslog options you wish. For example:

[general]
name=SomeOtherName

Sane defaults are chosen for you.

  • syslog.general.name (default: haraka)

    The service name to show up in the logs.

  • syslog.general.facility (default: MAIL)

    The syslog logging facility to use. MAIL makes the most sense, but some default syslog configs may try to do something special with this log level. FreeBSD and OSX, for example, does not log all messages sent to this log level to the same file. Valid options are: MAIL KERN USER DAEMON AUTH SYSLOG LPR NEWS UUCP LOCAL0 ... LOCAL7

  • syslog.general.pid (default: 1)

    Option to put the PID in the log message.

  • syslog.general.odelay (default: 1)

    Option to open the connection on the first log message.

  • syslog.general.ndelay (default: 0)

    Option to open the connection immediately.

  • syslog.general.cons (default: 0)

    Option to write directly to system console if there is an error while sending to system logger.

  • syslog.general.nowait (default: 0)

    Don't wait for child processes that may have been created while logging the message.

  • syslog.general.always_ok (default: false)

    If false, then this plugin will return with just next() allowing other plugins that have registered for the log hook to run. To speed things up, if no other log hooks need to run (daemon), then one can make this true. This will case the plugin to always call next(OK).

haraka-plugin-syslog's People

Contributors

baudehlo avatar greenkeeper[bot] avatar msimerson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

haraka-plugin-syslog's Issues

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Installation on node v8

Just installed but throws error:

> [email protected] install /opt/haraka/incoming/node_modules/modern-syslog
> node-gyp rebuild

make: Entering directory '/opt/haraka/incoming/node_modules/modern-syslog/build'
  CXX(target) Release/obj.target/core/core.o
../core.cc: In member function ‘virtual void {anonymous}::Worker::HandleOKCallback()’:
../core.cc:34:39: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
                 callback->Call(0, NULL);
                                       ^
In file included from ../core.cc:2:0:
../../nan/nan.h:1655:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../core.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::SysLog(Nan::NAN_METHOD_ARGS_TYPE)’:
../core.cc:97:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
         callback->Call(0, NULL);
                               ^
In file included from ../core.cc:2:0:
../../nan/nan.h:1655:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  SOLINK_MODULE(target) Release/obj.target/core.node
  COPY Release/core.node
make: Leaving directory '/opt/haraka/incoming/node_modules/modern-syslog/build'
npm WARN [email protected] No repository field.

+ [email protected]
added 3 packages from 3 contributors and audited 48 packages in 3.008s
found 0 vulnerabilities

An in-range update of eslint is breaking the build 🚨

The devDependency eslint was updated from 5.16.0 to 6.0.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v6.0.0
  • 81aa06b Upgrade: [email protected] (#11869) (Teddy Katz)
  • 5f022bc Fix: no-else-return autofix produces name collisions (fixes #11069) (#11867) (Milos Djermanovic)
  • ded9548 Fix: multiline-comment-style incorrect message (#11864) (golopot)
  • cad074d Docs: Add JSHint W047 compat to no-floating-decimal (#11861) (Timo Tijhof)
  • 41f6304 Upgrade: sinon (#11855) (Toru Nagashima)
  • 167ce87 Chore: remove unuseable profile command (#11854) (Toru Nagashima)
  • c844c6f Fix: max-len properly ignore trailing comments (fixes #11838) (#11841) (ZYSzys)
  • 1b5661a Fix: no-var should not fix variables named 'let' (fixes #11830) (#11832) (Milos Djermanovic)
  • 4d75956 Build: CI with Azure Pipelines (#11845) (Toru Nagashima)
  • 1db3462 Chore: rm superfluous argument & fix perf-multifiles-targets (#11834) (薛定谔的猫)
  • c57a4a4 Upgrade: @babel/polyfill => core-js v3 (#11833) (薛定谔的猫)
  • 65faa04 Docs: Clarify prefer-destructuring array/object difference (fixes #9970) (#11851) (Oliver Sieweke)
  • 81c3823 Fix: require-atomic-updates reports parameters (fixes #11723) (#11774) (Toru Nagashima)
  • aef8ea1 Sponsors: Sync README with website (ESLint Jenkins)
Commits

The new version differs by 134 commits.

  • a7985a6 6.0.0
  • be74dd9 Build: changelog update for 6.0.0
  • 81aa06b Upgrade: [email protected] (#11869)
  • 5f022bc Fix: no-else-return autofix produces name collisions (fixes #11069) (#11867)
  • ded9548 Fix: multiline-comment-style incorrect message (#11864)
  • cad074d Docs: Add JSHint W047 compat to no-floating-decimal (#11861)
  • 41f6304 Upgrade: sinon (#11855)
  • 167ce87 Chore: remove unuseable profile command (#11854)
  • c844c6f Fix: max-len properly ignore trailing comments (fixes #11838) (#11841)
  • 1b5661a Fix: no-var should not fix variables named 'let' (fixes #11830) (#11832)
  • 4d75956 Build: CI with Azure Pipelines (#11845)
  • 1db3462 Chore: rm superfluous argument & fix perf-multifiles-targets (#11834)
  • c57a4a4 Upgrade: @babel/polyfill => core-js v3 (#11833)
  • 65faa04 Docs: Clarify prefer-destructuring array/object difference (fixes #9970) (#11851)
  • 81c3823 Fix: require-atomic-updates reports parameters (fixes #11723) (#11774)

There are 134 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of haraka-test-fixtures is breaking the build 🚨

Version 1.0.21 of haraka-test-fixtures just got published.

Branch Build failing 🚨
Dependency haraka-test-fixtures
Current Version 1.0.20
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As haraka-test-fixtures is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 2 commits ahead by 2, behind by 4.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of haraka-test-fixtures is breaking the build 🚨

Version 1.0.12 of haraka-test-fixtures just got published.

Branch Build failing 🚨
Dependency haraka-test-fixtures
Current Version 1.0.11
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As haraka-test-fixtures is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪


Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details
Commits

The new version differs by 2 commits (ahead by 2, behind by 2).

  • 95661ae Appveyor - windows compatibility (#11)
  • 5f84c1f lint fixes (#10)

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-haraka is breaking the build 🚨

Version 1.0.8 of eslint-plugin-haraka just got published.

Branch Build failing 🚨
Dependency eslint-plugin-haraka
Current Version 1.0.7
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint-plugin-haraka is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 4 commits.

  • a5b007d import lint updates from haraka/.eslintrc (#13)
  • 1d563c2 Repo badges (#11)
  • e1d8fe0 docs(readme): add Greenkeeper badge (#10)
  • a4947f1 add appveyor.yml (#9)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-haraka is breaking the build 🚨

The devDependency eslint-plugin-haraka was updated from 1.0.11 to 1.0.12.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-haraka is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 1 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint is breaking the build 🚨

Version 4.4.0 of eslint just got published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.3.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/appveyor/branch AppVeyor build failed Details
  • continuous-integration/travis-ci/push The Travis CI build passed Details

Release Notes v4.4.0
  • 89196fd Upgrade: Espree to 3.5.0 (#9074) (Gyandeep Singh)
  • b3e4598 Fix: clarify AST and don't use node.start/node.end (fixes #8956) (#8984) (Toru Nagashima)
  • 62911e4 Update: Add ImportDeclaration option to indent rule (#8955) (David Irvine)
  • de75f9b Chore: enable object-curly-newline & object-property-newline.(fixes #9042) (#9068) (薛定谔的猫)
  • 5ae8458 Docs: fix typo in object-shorthand.md (#9066) (Jon Berry)
  • c3d5b39 Docs: clarify options descriptions (fixes #8875) (#9060) (Brandon Mailhiot)
  • 37158c5 Docs: clarified behavior of globalReturn option (fixes #8953) (#9058) (Brandon Mailhiot)
  • c2f3553 Docs: Update example for MemberExpression option of indent (fixes #9056) (#9057) (Jeff)
  • 78a85e0 Fix: no-extra-parens incorrectly reports async function expressions (#9035) (薛定谔的猫)
  • c794f86 Fix: getter-return reporting method named 'get' (fixes #8919) (#9004) (薛定谔的猫)
  • d0f78ec Docs: update rule deprecation policy (fixes #8635) (#9033) (Teddy Katz)
  • 5ab282f Fix: Print error message in bin/eslint.js (fixes #9011) (#9041) (Victor Hom)
  • 50e3cf3 Docs: Update sort-keys doc to define natural ordering (fixes #9043) (#9045) (Karan Sharma)
  • 7ecfe6a Chore: enable eslint-plugin/test-case-property-ordering (#9040) (薛定谔的猫)
  • ad32697 Upgrade: js-yaml to 3.9.1 (refs #9011) (#9044) (Teddy Katz)
  • 66c1d43 Docs: Create SUPPORT.md (#9031) (Teddy Katz)
  • 7247b6c Update: handle indentation of custom destructuring syntax (fixes #8990) (#9027) (Teddy Katz)
  • cdb82f2 Fix: padding-line-between-statements crash on semicolons after blocks (#8748) (Alexander Madyankin)
  • 3141872 Chore: remove unnecessary eslint-disable comments in codebase (#9032) (Teddy Katz)
  • 0f97279 Fix: refactor no-multi-spaces to avoid regex backtracking (fixes #9001) (#9008) (Teddy Katz)
  • b74514d Fix: refactor RuleContext to not modify report locations (fixes #8980) (#8997) (Teddy Katz)
  • 31d7fd2 Fix: inconsistent indent behavior on computed properties (fixes #8989) (#8999) (Teddy Katz)
  • 3393894 Fix: avoid reporting the entire AST for missing rules (#8998) (Teddy Katz)
  • b3b95b8 Chore: enable additional rules on ESLint codebase (#9013) (Teddy Katz)
  • 9b6c552 Upgrade: [email protected] (#9012) (薛定谔的猫)
  • acbe86a Chore: disallow .substr and .substring in favor of .slice (#9010) (Teddy Katz)
  • d0536d6 Chore: Optimizes adding Linter methods (fixes #9000) (#9007) (Sean C Denison)
  • 0a0401f Chore: fix spelling error. (#9003) (薛定谔的猫)
  • 3d020b9 Update: emit a warning for ecmaFeatures rather than throwing an error (#8974) (Teddy Katz)
  • d2f8f9f Fix: include name of invalid config in validation messages (fixes #8963) (#8973) (Teddy Katz)
  • c3ee46b Chore: fix misleading comment in RuleTester (#8995) (Teddy Katz)
Commits

The new version differs by 33 commits.

  • a113cd3 4.4.0
  • 181bd46 Build: changelog update for 4.4.0
  • 89196fd Upgrade: Espree to 3.5.0 (#9074)
  • b3e4598 Fix: clarify AST and don't use node.start/node.end (fixes #8956) (#8984)
  • 62911e4 Update: Add ImportDeclaration option to indent rule (#8955)
  • de75f9b Chore: enable object-curly-newline & object-property-newline.(fixes #9042) (#9068)
  • 5ae8458 Docs: fix typo in object-shorthand.md (#9066)
  • c3d5b39 Docs: clarify options descriptions (fixes #8875) (#9060)
  • 37158c5 Docs: clarified behavior of globalReturn option (fixes #8953) (#9058)
  • c2f3553 Docs: Update example for MemberExpression option of indent (fixes #9056) (#9057)
  • 78a85e0 Fix: no-extra-parens incorrectly reports async function expressions (#9035)
  • c794f86 Fix: getter-return reporting method named 'get' (fixes #8919) (#9004)
  • d0f78ec Docs: update rule deprecation policy (fixes #8635) (#9033)
  • 5ab282f Fix: Print error message in bin/eslint.js (fixes #9011) (#9041)
  • 50e3cf3 Docs: Update sort-keys doc to define natural ordering (fixes #9043) (#9045)

There are 33 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of haraka-test-fixtures is breaking the build 🚨

Version 1.0.20 of haraka-test-fixtures just got published.

Branch Build failing 🚨
Dependency haraka-test-fixtures
Current Version 1.0.19
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As haraka-test-fixtures is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 6 commits ahead by 6, behind by 1.

  • 6432dbb update eslint with es6 declaration
  • e768f99 travis-ci: node 4 -> 8
  • 450ad00 sprinkle some es6 around
  • 069e01c use haraka-notes
  • f32da45 fix appveyor image URL (#23)
  • 0530cd3 remove version from haraka-results (#22)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of eslint-plugin-haraka is breaking the build 🚨

The devDependency eslint-plugin-haraka was updated from 1.0.9 to 1.0.10.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-haraka is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Cannot find module 'haraka-test-fixtures'

Hi,
Haraka version 2.8.18
centos 6

Error
haraka -c /etc/haraka/
loaded TLD files: 1=1544 2=8347 3=2424
loaded 8447 Public Suffixes
loglevel: INFO
log format: DEFAULT
Starting up Haraka version 2.8.18
[INFO] [-] [core] Loading plugins
[INFO] [-] [core] Loading plugin: syslog
[CRIT] [-] [core] Compiling plugin: syslog failed
[CRIT] [-] [core] internal/modules/cjs/loader.js:550
[CRIT] [-] [core] throw err;
[CRIT] [-] [core] ^
[CRIT] [-] [core]
[CRIT] [-] [core] Error: Cannot find module 'haraka-test-fixtures'
[CRIT] [-] [core] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
[CRIT] [-] [core] at Function.Module._load (internal/modules/cjs/loader.js:475:25)
[CRIT] [-] [core] at Module.require (internal/modules/cjs/loader.js:598:17)
[CRIT] [-] [core] at require (internal/modules/cjs/helpers.js:11:18)
[CRIT] [-] [core] at /usr/lib/node_modules/Haraka/plugins.js:174:24
[CRIT] [-] [core] at /etc/haraka/plugins/syslog.js:3:22
[CRIT] [-] [core] at Script.runInContext (vm.js:74:29)
[CRIT] [-] [core] at Script.runInNewContext (vm.js:80:15)
[CRIT] [-] [core] at Object.runInNewContext (vm.js:193:38)
[CRIT] [-] [core] at Plugin._compile (/usr/lib/node_modules/Haraka/plugins.js:237:16)

An in-range update of eslint is breaking the build 🚨

Version 4.4.1 of eslint just got published.

Branch Build failing 🚨
Dependency eslint
Current Version 4.4.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As eslint is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/appveyor/branch AppVeyor build failed Details
  • continuous-integration/travis-ci/push The Travis CI build passed Details

Release Notes v4.4.1
  • ec93614 Fix: no-multi-spaces to avoid reporting consecutive tabs (fixes #9079) (#9087) (Teddy Katz)
Commits

The new version differs by 3 commits.

  • 0d9da6d 4.4.1
  • 1ea9a6c Build: changelog update for 4.4.1
  • ec93614 Fix: no-multi-spaces to avoid reporting consecutive tabs (fixes #9079) (#9087)

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.