Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin command line mode #1220

Closed
smfreegard opened this issue Oct 8, 2015 · 5 comments
Closed

Plugin command line mode #1220

smfreegard opened this issue Oct 8, 2015 · 5 comments
Labels

Comments

@smfreegard
Copy link
Collaborator

This would optionally allow a plugin to implement command-line functions for manual testing and additional utilities.

Via haraka -c /etc/haraka --plugin-cli <plugin name> <args>

e.g.

$ haraka -c /etc/haraka --plugin-cli check_mx
Usage: check_mx [--debug] <domain> 
$

$ haraka -c /etc/haraka --plugin-cli check_mx fsl.com
82.69.13.196    (home.freegard.name)
23.21.188.50    (mail1-ec2.fsl.com)

Or

$ haraka -c /etc/haraka --plugin dkim_verify
Usage: dkim_verify [--debug] <file>
$

$ haraka -c /etc/haraka --plugin-cli dkim_verify /tmp/foo.msg
identity="@facebookmail.com" domain="facebookmail.com" selector="s1024-2013-q3" result=pass
$
$ haraka -c /etc/haraka --plugin spamassassin
Error: plugin 'spamassassin' does not implement --plugin-cli
@smfreegard smfreegard added the Idea label Oct 8, 2015
@soundslocke
Copy link

👍

1 similar comment
@Dexus
Copy link
Member

Dexus commented Oct 8, 2015

👍

@msimerson msimerson reopened this Feb 1, 2017
@msimerson
Copy link
Member

Another way to test plugins now is via the end-to-end tests in server.js. It uses the test files in test/config instead. Either by rewriting that test/config/plugins, or by making it easier to overload the list of plugins, we could test a single plugin at a time, in a live haraka instance.

@smfreegard
Copy link
Collaborator Author

That's not really what this was about. This was more about exposing useful command-line utilities using the plugins functionality. e.g. like checking SPF, DNSBL lookups etc. etc.

@msimerson
Copy link
Member

Migrated to wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants