11.04.2013 Views

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

216.185.111.52 mail1.theplanet.com.<br />

69.56.141.4 spooling.theplanet.com.<br />

216.185.111.40 theplanet.com.<br />

216.185.111.40 www.theplanet.com.<br />

216.185.111.52 mail.theplanet.com.<br />

Appen<strong>di</strong>ce A. Script aggiuntivi<br />

Checking Blacklist servers.<br />

Checking address 66.98.208.97<br />

Records from dnsbl.sorbs.net<br />

"Spam Received See: http://www.dnsbl.sorbs.net/lookup.shtml?66.98.208.97"<br />

Checking address 69.56.202.147<br />

Checking address 69.56.202.146<br />

Checking address 66.235.180.113<br />

Checking address 66.235.181.192<br />

Checking address 216.185.111.40<br />

Checking address 216.234.234.30<br />

Checking address 12.96.160.115<br />

Checking address 216.185.111.52<br />

Checking address 69.56.141.4<br />

Advanced <strong>Bash</strong> Scripting Guide: is_spammer.bash, v2, 2004-msz<br />

_is_spammer_outputs_<br />

exit ${_hs_RC}<br />

####################################################<br />

# The script ignores everything from here on down #<br />

#+ because of the ’exit’ command, just above. #<br />

####################################################<br />

Quickstart<br />

==========<br />

Prerequisites<br />

<strong>Bash</strong> version 2.05b or 3.00 (bash --version)<br />

A version of <strong>Bash</strong> which supports arrays. Array<br />

support is included by default <strong>Bash</strong> configurations.<br />

’<strong>di</strong>g,’ version 9.x.x (<strong>di</strong>g $HOSTNAME, see first line of output)<br />

A version of <strong>di</strong>g which supports the +short options.<br />

See: <strong>di</strong>g_wrappers.bash for details.<br />

Optional Prerequisites<br />

’named,’ a local DNS caching program. Any flavor will do.<br />

Do twice: <strong>di</strong>g $HOSTNAME<br />

Check near bottom of output for: SERVER: 127.0.0.1#53<br />

That means you have one running.<br />

706

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!