PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشکل در نصب آنتی اسپم spamassassin در دایرکت ادمین



WebArts
July 18th, 2010, 20:20
می خواستم spamassassin را در دایرکت ادمین فعال کنم پیغم داد که spamd در سیستم نیست وباید نصب شود و لینک زیر را داد:
DirectAdmin Knowledge Base (http://help.directadmin.com/item.php?id=36)
دستور./spam.sh را انجام دادم.
در پایان خطای زیر را داد:


************************************************** *************************
ERROR: the required Archive::Tar module is not installed,
minimum required version is 1.23.

The "sa-update" program requires this module to access tar update
archive files.


************************************************** *************************
ERROR: the required IO::Zlib module is not installed,
minimum required version is 1.04.

The "sa-update" program requires this module to access compressed
update archive files.


************************************************** *************************
NOTE: the optional Digest::SHA module is not installed.

The Digest::SHA module is required by the DKIM plugin.

Use of uninitialized value in concatenation (.) or string at lib/Mail/SpamAssassin/Util/DependencyInfo.pm line 324.

************************************************** *************************
NOTE: the optional Mail::SPF module is installed (),
but is below the minimum required version 0,
some functionality will not be available.

Used to check DNS Sender Policy Framework (SPF) records to fight email
address forgery and make it easier to identify spams.


************************************************** *************************
NOTE: the optional IP::Country module is not installed.

Used by the RelayCountry plugin (not enabled by default) to determine
the domain country codes of each relay in the path of an email.


************************************************** *************************
NOTE: the optional Razor2 module is not installed,
minimum required version is 2.61.

Used to check message signatures against Vipul's Razor collaborative
filtering network. Razor has a large number of dependencies on CPAN
modules. Feel free to skip installing it, if this makes you nervous;
SpamAssassin will still work well without it.

More info on installing and using Razor can be found
at InstallingRazor - Spamassassin Wiki (http://wiki.apache.org/spamassassin/InstallingRazor) .


************************************************** *************************
NOTE: the optional Net::Ident module is not installed.

If you plan to use the --auth-ident option to spamd, you will need
to install this module.


************************************************** *************************
NOTE: the optional IO::Socket::INET6 module is not installed.

This is required if the first nameserver listed in your IP
configuration or /etc/resolv.conf file is available only via an
IPv6 address. Also used by a DCC plugin to access dccifd over network.


************************************************** *************************
NOTE: the optional Mail::DKIM module is not installed,
minimum required version is 0.31, recommended version is 0.37 or higher.

If this module is installed and the DKIM plugin is enabled,
SpamAssassin will perform DKIM signature verification when DKIM-Signature
header fields are present in the message headers, and check ADSP rules
(e.g. anti-phishing) when a mail message does not contain a valid author
domain signature. Version 0.37 or later is needed to fully support ADSP.


************************************************** *************************
NOTE: the optional Encode::Detect module is not installed.

If you plan to use the normalize_charset config setting to detect
charsets and convert them into Unicode, you will need to install
this module.

REQUIRED module missing: Archive::Tar
REQUIRED module missing: IO::Zlib
optional module missing: Digest::SHA
optional module out of date: Mail::SPF
optional module missing: IP::Country
optional module missing: Razor2
optional module missing: Net::Ident
optional module missing: IO::Socket::INET6
optional module missing: Mail::DKIM
optional module missing: Encode::Detect

warning: some functionality may not be available,
please read the above report before continuing!

make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
Cannot find /usr/bin/sa-update after install. Check for errors above.


run:
/usr/bin/spamd -d -c -m 15
و صدور دستور
/usr/bin/spamd -d -c -m 15

پیغام می دهد:
-bash: /usr/bin/spamd: No such file or directory

لطفا راهنمایی کنید. لینوکس سنت او اس

Online24
July 19th, 2010, 13:10
ماژول های مورد نیاز رو باید نصب کنید

yum install perl-Archive-Tar perl-IO-Zlib

* به کوچکی و بزرگی حروف دقت کنید .

بقیه ارور ها مربوط به نصب نشدن سرویس spamd و نداشتن ابزار ( ماژول) هست .

WebArts
July 19th, 2010, 13:47
مرسی

WebArts
July 23rd, 2010, 00:09
چند روز پیش نصب spamd با موفقیت انجام شد و spamassassin شروع به کار کرد و آن را در پنل دایرکت ادمین تنظیم کردم. امروز دیدم یک عالمه اسپم آمده روی spamassassin در دایرکت ادمین کلیک کردم دیدم فعال نیست و این پیام را داده:

Unable to setup spamassassin

Details

Spamd is not running on your system.
Click Here to learn how to enable it

توسط SSH این دستور را دادم:
/usr/bin/spamd -d -c -m 15
این پیغام آمد:

Jul 22 05:19:23.469 [10835] warn: server socket setup failed, retry 1: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Jul 22 05:19:24.470 [10835] warn: server socket setup failed, retry 2: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Jul 22 05:19:25.471 [10835] warn: server socket setup failed, retry 3: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Jul 22 05:19:26.472 [10835] warn: server socket setup failed, retry 4: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Jul 22 05:19:27.474 [10835] warn: server socket setup failed, retry 5: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Jul 22 05:19:28.476 [10835] warn: server socket setup failed, retry 6: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Jul 22 05:19:29.478 [10835] warn: server socket setup failed, retry 7: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Jul 22 05:19:30.480 [10835] warn: server socket setup failed, retry 8: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Jul 22 05:19:31.482 [10835] warn: server socket setup failed, retry 9: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
Jul 22 05:19:32.484 [10835] error: spamd: could not create INET socket on 127.0.0.1:783: Address already in use
spamd: could not create INET socket on 127.0.0.1:783: Address already in use

راه حل چیست؟

---------- Post added 10-07-23 at 12:09 AM ---------- Previous post was 10-07-22 at 11:50 PM ----------

پورت 783 قبلا اشغال نبود و بعدا نیز چیزی نصب نکرده بودم این پورت چگونه اشغال شده؟ آیا فایروال آن را بسته یا فایروال به پورت در آدرس 127.0.0.1 کاری ندارد؟

nj.sairom
August 10th, 2011, 16:43
سلام دوستان!


من می خوام توی پنلم spamassassin رو نصب و فعال کنم ولی هنگام فعال کردن این ارور رو می ده:


To enable Spamassassin on your server, you need to first need to install it. Once installed a few minor changes are needed in your /etc/exim.conf file.


1) Install spamd and spamc:


cd /usr/local/directadmin/scripts
./spam.sh
If you get errors building spamd relating to missing perl modules, try using cpan to install them:
export PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"
cpan -i Archive::Tar Digest::SHA Mail::SPF IP::Country Net::Ident IO::Socket::INET6 Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect ExtUtils::MakeMaker NetAddr::IP Mail::SpamAssassin::Plugin::Razor2 Razor2::Client::Agent IO::Socket::SSL DBI
and then run the spam.sh again.

If it asks you:
Are you ready for manual configuration? [yes] no
be sure to type "no" and press enter. Only use "yes" if you really know what you're doing. The default options are going to be the most reliable.

If after cpan has been used and the setup is complete (download servers/options, etc), you may need to use this as well if you don't wish to sit around and answer "y" to all of the "prepend to list" questions:
export PERL_MM_USE_DEFAULT=1
However, if you have never run cpan before, so do not set the PERL_MM_USE_DEFAULT=1 option, or else it will get you stuck in a loop for some of the config options.
Also Related (/etc/perl/CPAN/Config.pm):
[server]# cpan
cpan> o conf prerequisites_policy follow
cpan> o conf commit


2) Start the spamd:
/usr/bin/spamd -d -c -m 15

3) In order to get exim to use the spamd program, you'll need to make some changes in your /etc/exim.conf. Change:
# Spam Assassin
#spamcheck_director:
# driver = accept
# condition = "${if and { \
# {!def:h_X-Spam-Flag:} \
# {!eq {$received_protocol}{spam-scanned}} \
# {!eq {$received_protocol}{local}} \
# {exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \
# {<{$message_size}{100k}} \
# } {1}{0}}"
# retry_use_local_part
# transport = spamcheck
# no_verify
to
# Spam Assassin
spamcheck_director:
driver = accept
condition = "${if and { \
{!def:h_X-Spam-Flag:} \
{!eq {$received_protocol}{spam-scanned}} \
{!eq {$received_protocol}{local}} \
{exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \
{<{$message_size}{100k}} \
} {1}{0}}"
retry_use_local_part
transport = spamcheck
no_verify

4) Restart exim:
Redhat:
/sbin/service exim restart

FreeBSD:
/usr/local/etc/rc.d/exim restart




The global spamassassin config file is in /etc/mail/spamassassin/local.cf

If you run debian and are missing perl or some pm files, type:
apt-get install perl-base perl-modules





می شه راهنمایی کنین من باید چیکار کنم!؟
آخه یه کم تازه کارم!


مخصوصا که واسم سواله این ادرس کجاست!؟


cd /usr/local/directadmin/scripts
./spam.sh