stevejenkins/postwhite

/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Not found..

m3morx opened this issue · 2 comments

Get this output when i run the script.
Dit it run corectly ?
Line 27 on the despf.sh

type $cmd >/dev/null

Script error in the spf tools ?

my output:
Starting Postwhite v3.1 (30 April 2017)

Reading options from /etc/postwhite.conf...

Creating temporary files...

Recursively querying SPF records of selected whitelist mailers...

Querying webmail hosts...
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.

Querying social network hosts...
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.

Querying ecommerce hosts...
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.

Querying bulk mail hosts...
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.

Querying miscellaneous hosts...
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.
/usr/local/bin/spf-tools/despf.sh: Zeile 27: type: host: Nicht gefunden.

Querying custom hosts...

Including scraped Yahoo! outbound hosts...

Removing invalid IPv4 CIDRs from whitelist.......................................

Sorting whitelist rules...

Writing 629 whitelist rules to /etc/postfix/postscreen_spf_whitelist.cidr...

Reloading Postfix configuration to refresh rules...
postfix/postfix-script: refreshing the Postfix mail system

Done!

Hi @m3morx. Postwhite requires the despf.sh script from SPF-Tools to be working on your system.

At first glance, this appears to be an issue with SPF-Tools and not Postwhite. They are separate projects.

What happens if you try the following from your system's command line:

despf.sh google.com

If you still get the error, then your issue is with SPF-Tools and you should post here for help:

https://github.com/jsarenik/spf-tools/issues

That project is maintained by @jsarenik and he is excellent at helping troubleshoot issues with his scripts.

Hi, thanks for the advice

I've solved the problem. Please add to the requirements for the scripts, bind-utils.
Was't installed on my machine.

Thank you