Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 6th January 2007, 22:17
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Oh yes, you're using FC5.

What is within the file /etc/rc.d/init.d/spamassassin ?
Is there something like:

# Defaults - don't touch, edit /etc/default/spamassassin
ENABLED=0

I use Debian, and as the referer line says, i have to enable spamassassin within the file /etc/default/spamassassin so i did.


Maybe the file /etc/default/spamassassin is only for Debian and you have to edit a different file.

Sorry

If you give the command net stat -tap, is spamd listening?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 6th January 2007 at 22:21.
Reply With Quote
Sponsored Links
  #12  
Old 6th January 2007, 22:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,573
Thanks: 792
Thanked 4,980 Times in 3,901 Posts
Default

ISPConfig uses /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin

Did you get a error when you execute:

/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 6th January 2007, 22:30
Daisy Daisy is offline
Senior Member
 
Join Date: Dec 2006
Posts: 112
Thanks: 0
Thanked 3 Times in 1 Post
Default

Quote:
Originally Posted by Hans
Oh yes, you're using FC5.

What is within the file /etc/rc.d/init.d/spamassassin ?
Is there something like:

# Defaults - don't touch, edit /etc/default/spamassassin
ENABLED=0
Nope. Sorry.

Quote:
Originally Posted by Hans
If you give the command net stat -tap, is spamd listening?
That command doesn't work and I'm not sure how to do it with FC5 as I'm still pretty new to this. Real sorry.
Reply With Quote
  #14  
Old 6th January 2007, 22:31
Daisy Daisy is offline
Senior Member
 
Join Date: Dec 2006
Posts: 112
Thanks: 0
Thanked 3 Times in 1 Post
Default

Quote:
Originally Posted by till
Did you get a error when you execute:

/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin
It just sorta sits there with a blinky cursor but here's the debug info I got.

[5058] dbg: logger: adding facilities: all
[5058] dbg: logger: logging level is DBG
[5058] dbg: generic: SpamAssassin version 3.1.0
[5058] dbg: config: score set 0 chosen.
[5058] dbg: util: running in taint mode? yes
[5058] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH
[5058] dbg: util: PATH included '/usr/kerberos/sbin', keeping
[5058] dbg: util: PATH included '/usr/kerberos/bin', keeping
[5058] dbg: util: PATH included '/usr/local/sbin', keeping
[5058] dbg: util: PATH included '/usr/local/bin', keeping
[5058] dbg: util: PATH included '/sbin', keeping
[5058] dbg: util: PATH included '/bin', keeping
[5058] dbg: util: PATH included '/usr/sbin', keeping
[5058] dbg: util: PATH included '/usr/bin', keeping
[5058] dbg: util: PATH included '/root/bin', which doesn't exist, dropping
[5058] dbg: util: final PATH set to: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
[5058] dbg: dns: is Net:NS::Resolver available? yes
[5058] dbg: dns: Net:NS version: 0.59
[5058] dbg: dns: name server: 4.2.2.1, family: 2, ipv6: 0
[5058] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
[5058] dbg: config: read file /etc/mail/spamassassin/init.pre
[5058] dbg: config: read file /etc/mail/spamassassin/v310.pre
[5058] dbg: config: using "/usr/share/spamassassin" for sys rules pre files
[5058] dbg: config: using "/usr/share/spamassassin" for default rules dir
[5058] dbg: config: read file /usr/share/spamassassin/10_misc.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_compensate.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_drugs.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_phrases.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_porn.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_ratware.cf
[5058] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf
[5058] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_antivirus.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_body_tests_es.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_body_tests_pl.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_dcc.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_domainkeys.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_hashcash.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_pyzor.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_razor2.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_replace.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_spf.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_textcat.cf
[5058] dbg: config: read file /usr/share/spamassassin/25_uribl.cf
[5058] dbg: config: read file /usr/share/spamassassin/30_text_de.cf
[5058] dbg: config: read file /usr/share/spamassassin/30_text_fr.cf
[5058] dbg: config: read file /usr/share/spamassassin/30_text_it.cf
[5058] dbg: config: read file /usr/share/spamassassin/30_text_nl.cf
[5058] dbg: config: read file /usr/share/spamassassin/30_text_pl.cf
[5058] dbg: config: read file /usr/share/spamassassin/30_text_pt_br.cf
[5058] dbg: config: read file /usr/share/spamassassin/50_scores.cf
[5058] dbg: config: read file /usr/share/spamassassin/60_awl.cf
[5058] dbg: config: read file /usr/share/spamassassin/60_whitelist.cf
[5058] dbg: config: read file /usr/share/spamassassin/60_whitelist_spf.cf
[5058] dbg: config: read file /usr/share/spamassassin/60_whitelist_subject.cf
[5058] dbg: config: using "/etc/mail/spamassassin" for site rules dir
[5058] dbg: config: read file /etc/mail/spamassassin/local.cf
[5058] dbg: config: using "/root/.spamassassin" for user state dir
[5058] dbg: config: using "/root/.spamassassin/user_prefs" for user prefs file
[5058] dbg: config: read file /root/.spamassassin/user_prefs
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xaa71b0 8)
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0xaa8987 0)
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0xaaac218)
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[5058] dbg: pyzor: network tests on, attempting Pyzor
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::Pyzor=HASH(0xaac3690)
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
[5058] dbg: reporter: network tests on, attempting SpamCop
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::SpamCop=HASH(0xab45bf8 )
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::AWL=HASH(0xab5483c)
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::AutoLearnThreshold=HAS H(0xacf523c)
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::WhiteListSubject=HASH( 0xacf5c98)
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0xad02 894)
[5058] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from @INC
[5058] dbg: plugin: registered Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0xad0 fa0c)
[5058] dbg: config: adding redirector regex: /^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i
[5058] dbg: config: adding redirector regex: /^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i
[5058] dbg: config: adding redirector regex: /^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
[5058] dbg: config: adding redirector regex: /^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i
[5058] dbg: config: adding redirector regex: /^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
[5058] dbg: config: adding redirector regex: m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&\#])'i
[5058] dbg: config: adding redirector regex: m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
[5058] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0xad0 fa0c) implements 'finish_parsing_end'
[5058] dbg: replacetags: replacing tags
[5058] dbg: replacetags: done replacing tags
[5058] dbg: config: using "/root/.spamassassin" for user state dir
[5058] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
[5058] dbg: config: score set 1 chosen.
[5058] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
[5058] dbg: dns: testing resolver nameservers: 4.2.2.1, 4.2.2.2
[5058] dbg: dns: trying (3) google.com...
[5058] dbg: dns: looking up NS for 'google.com'
/usr/bin/perl: symbol lookup error: /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/Net/DNS/DNS.so: undefined symbol: Perl_sv_2uv_flags

Last edited by Daisy; 6th January 2007 at 22:35.
Reply With Quote
  #15  
Old 6th January 2007, 22:37
Daisy Daisy is offline
Senior Member
 
Join Date: Dec 2006
Posts: 112
Thanks: 0
Thanked 3 Times in 1 Post
Default

Answer! It's a bug!

https://bugzilla.redhat.com/bugzilla....cgi?id=218916

It's apparently a PERL issue and updating to 5.8.8-5 resolves. It's all better now!
Reply With Quote
  #16  
Old 7th January 2007, 17:31
Daisy Daisy is offline
Senior Member
 
Join Date: Dec 2006
Posts: 112
Thanks: 0
Thanked 3 Times in 1 Post
Default

hmmmm, but now I don't seem to be getting any mail. Can anyone tell me what this means? It's from my maillog.

Jan 7 10:26:00 mailserver postfix/local[8271]: BFB0E28812D: to=<web3_spamtrap@mailserver.com>, orig_to=<spamtrap@mailserver.com>, relay=local, delay=18, status=sent (delivered to command: /usr/bin/procmail -f-)
Jan 7 10:26:00 mailserver postfix/qmgr[8241]: BFB0E28812D: removed
Reply With Quote
  #17  
Old 7th January 2007, 18:05
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

This means the mail has been delivered to the mailbox of the user: web3_spamtrap. You should be able to find it in there. The log shows all has worked as expected (status=sent).
Reply With Quote
  #18  
Old 7th January 2007, 18:12
Daisy Daisy is offline
Senior Member
 
Join Date: Dec 2006
Posts: 112
Thanks: 0
Thanked 3 Times in 1 Post
Default

I never get it. Should the email be deleted because of Eicar if the A/V option is not checked? How do I tell what happens to the email after postfix is done with it?
Reply With Quote
  #19  
Old 8th January 2007, 23:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
netstat -tap
, and is Maildir enabled or disabled in your ISPConfig settings?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #20  
Old 9th January 2007, 00:44
Daisy Daisy is offline
Senior Member
 
Join Date: Dec 2006
Posts: 112
Thanks: 0
Thanked 3 Times in 1 Post
 
Default

Code:
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 *:mysql                     *:*                         LISTEN      1735/mysqld         
tcp        0      0 *:netbios-ssn               *:*                         LISTEN      1892/smbd           
tcp        0      0 *:sunrpc                    *:*                         LISTEN      1380/portmap        
tcp        0      0 *:ndmp                      *:*                         LISTEN      2410/perl           
tcp        0      0 *:hosts2-ns                 *:*                         LISTEN      2107/ispconfig_http 
tcp        0      0 192.168.69.70:domain        *:*                         LISTEN      6289/named          
tcp        0      0 xxxxxxx.com:domain     *:*                         LISTEN      6289/named          
tcp        0      0 *:32886                     *:*                         LISTEN      1398/rpc.statd      
tcp        0      0 xxxxxxx.com:ipp        *:*                         LISTEN      22728/cupsd         
tcp        0      0 *:smtp                      *:*                         LISTEN      18877/master        
tcp        0      0 xxxxxxx.com:rndc       *:*                         LISTEN      6289/named          
tcp        0      0 *:microsoft-ds              *:*                         LISTEN      1892/smbd           
tcp        0      0 *:imaps                     *:*                         LISTEN      1762/dovecot        
tcp        0      0 *:pop3s                     *:*                         LISTEN      1762/dovecot        
tcp        0      0 *:pop3                      *:*                         LISTEN      1762/dovecot        
tcp        0      0 *:imap                      *:*                         LISTEN      1762/dovecot        
tcp        0      0 *:http                      *:*                         LISTEN      16767/httpd         
tcp        0      0 *:ftp                       *:*                         LISTEN      32534/proftpd: (acc 
tcp        0      0 *:ssh                       *:*                         LISTEN      1628/sshd           
tcp        0      0 ::1:rndc                    *:*                         LISTEN      6289/named          
tcp        0      0 *:https                     *:*                         LISTEN      16767/httpd         
tcp        0      0 ::ffff:192.168.69.70:http   dsl88-226-19608.t:instantia TIME_WAIT   -                   
tcp        0      0 ::ffff:192.168.69.70:http   host86-134-89-52.:zymed-zpp TIME_WAIT   -                   
tcp        0      0 ::ffff:192.168.69.70:http   dsl88-226-19608.:nmasoverip TIME_WAIT   -                   
tcp        0      0 ::ffff:192.168.69.70:http   host86-134-89-52.range:gris TIME_WAIT   -                   
tcp        0      0 ::ffff:192.168.69.70:http   dsl88-226-19608.ttn:hacl-qs TIME_WAIT   -                   
tcp        0      0 ::ffff:192.168.69.70:ssh    rrcs-24-153-135-122.s:54113 ESTABLISHED 27977/0             
tcp        0      0 ::ffff:192.168.69.70:http   crawl-66-249-65-135.g:61355 TIME_WAIT   -
and yes. MailDir is enabled as I ended up migrating mail from a different type of mailserver. I do get mail to some accounts. I should probably add that I have added this to my postfix main.conf:
Code:
smtpd_helo_required = yes
disable_vrfy_command = yes
invalid_hostname_reject_code = 554
multi_recipient_bounce_reject_code = 554
non_fqdn_reject_code = 554
relay_domains_reject_code = 554
#unknown_address_reject_code = 554
#unknown_client_reject_code = 554
#unknown_hostname_reject_code = 554
unknown_local_recipient_reject_code = 554
#unknown_relay_recipient_reject_code = 554
#unknown_sender_reject_code = 554
#unknown_virtual_alias_reject_code = 554
#unknown_virtual_mailbox_reject_code = 554
#unverified_recipient_reject_code = 554
#unverified_sender_reject_code = 554

smtpd_recipient_restrictions =
            reject_invalid_hostname,
            reject_unknown_recipient_domain,
            reject_unauth_pipelining,
            permit_mynetworks,
            permit_sasl_authenticated,
            reject_unauth_destination,
            reject_rbl_client dul.dnsbl.sorbs.net,
            reject_rbl_client list.dsbl.org,
            reject_rbl_client sbl-xbl.spamhaus.org,
            reject_rbl_client bl.spamcop.net,
            reject_rbl_client relays.ordb.org,
            reject_rbl_client dnsbl.sorbs.net,
            reject_rbl_client cbl.abuseat.org,
            permit
I commented some stuff out to see if it helped in allowing mail to come through. Mostly, I just wanted the RBL's but wasn't sure how to put it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 16:33
spamassassin stop working after woody to sarge update shark_tico Server Operation 1 19th October 2006 14:01
1 email working, but others arent? lipp9000 Installation/Configuration 8 22nd July 2006 16:35
PHP & MySQL working, but AREN'T WORKING???? lipp9000 Installation/Configuration 4 21st July 2006 17:01
ftp not working pesja Installation/Configuration 3 17th July 2006 12:37


All times are GMT +2. The time now is 21:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.