| Welcome to the Zimbra :: Forums! | |
Welcome, if you would like to post a comment please register.
We also encourage you to explore all things Zimbra with our team and members of the community.
|  | | 
08-12-2008, 03:08 PM
| | | I'm curious... I'm curious, what's the difference between the "salocal.cf.in" file and the "salocal.cf" file? The ".in" has the domains I blacklisted, but the other does not. And items are still coming in from the domains I blacklisted. | 
08-12-2008, 11:53 PM
| | Zimbra Consultant & Moderator | |
Posts: 19,655
| | Quote:
Originally Posted by Jbrabander I'm curious, what's the difference between the "salocal.cf.in" file and the "salocal.cf" file? The ".in" has the domains I blacklisted, but the other does not. And items are still coming in from the domains I blacklisted. | Any file in the zimbra directories that is labelled as '.in' is a file that's used to build the correct config file, changes should be made to the .in file.
__________________
Regards
Bill
| 
08-13-2008, 02:34 AM
| | | hi phoenix
why it is not working | 
08-13-2008, 07:06 AM
| | | hi pals,
i did following things. Quote:
1) # vim /opt/zimbra/conf/salocal.cf.in
blacklist_from youth_sen@yahoo.co.in ---> i added this line
2) # su - zimbra
3) zimbra > zmamavisdctl restart
Killing amavisd with pid 910 done.
Started amavisd: pid 5339
4) zimbra > spamassassin -D --lint
[9285] dbg: logger: adding facilities: all
[9285] dbg: logger: logging level is DBG
[9285] dbg: generic: SpamAssassin version 3.1.7
[9285] dbg: config: score set 0 chosen.
[9285] dbg: util: running in taint mode? yes
[9285] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH
[9285] dbg: util: PATH included '/opt/zimbra/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/zimbramon', keeping
[9285] dbg: util: PATH included '/opt/zimbra/postfix/sbin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/openldap/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/snmp/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/sleepycat/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/openssl/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/java/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/zimbramon', keeping
[9285] dbg: util: PATH included '/opt/zimbra/postfix/sbin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/openldap/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/snmp/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/sleepycat/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/openssl/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/java/bin', keeping
[9285] dbg: util: PATH included '/opt/zimbra/bin', keeping
[9285] dbg: util: PATH included '/usr/local/bin', keeping
[9285] dbg: util: PATH included '/usr/bin', keeping
[9285] dbg: util: PATH included '/usr/X11R6/bin', keeping
[9285] dbg: util: PATH included '/bin', keeping
[9285] dbg: util: PATH included '/usr/games', keeping
[9285] dbg: util: PATH included '/opt/gnome/bin', keeping
[9285] dbg: util: PATH included '/opt/kde3/bin', keeping
[9285] dbg: util: PATH included '/usr/lib/jvm/jre/bin', keeping
[9285] dbg: util: PATH included '/usr/lib/mit/bin', which doesn't exist, dropping
[9285] dbg: util: PATH included '/usr/lib/mit/sbin', which doesn't exist, dropping
[9285] dbg: util: final PATH set to: /opt/zimbra/bin:/opt/zimbra/zimbramon:/opt/zimbra/postfix/sbin:/opt/zimbra/openldap/bin:/opt/zimbra/snmp/bin:/opt/zimbra/sleepycat/bin:/opt/zimbra/openssl/bin:/opt/zimbra/java/bin:/opt/zimbra/bin:/opt/zimbra/zimbramon:/opt/zimbra/postfix/sbin:/opt/zimbra/openldap/bin:/opt/zimbra/snmp/bin:/opt/zimbra/sleepycat/bin:/opt/zimbra/openssl/bin:/opt/zimbra/java/bin:/opt/zimbra/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin
[9285] dbg: message: ---- MIME PARSER START ----
[9285] dbg: message: main message type: text/plain
[9285] dbg: message: parsing normal part
[9285] dbg: message: added part, type: text/plain
[9285] dbg: message: ---- MIME PARSER END ----
[9285] dbg: dns: is Net: NS::Resolver available? yes
[9285] dbg: dns: Net: NS version: 0.59
[9285] dbg: diag: perl platform: 5.008008 linux
[9285] dbg: diag: module installed: Digest::SHA1, version 2.11
[9285] dbg: diag: module installed: HTML::Parser, version 3.55
[9285] dbg: diag: module installed: MIME::Base64, version 3.07
[9285] dbg: diag: module installed: DB_File, version 1.814
[9285] dbg: diag: module installed: Net: NS, version 0.59
[9285] dbg: diag: module installed: Net::SMTP, version 2.29
[9285] dbg: diag: module not installed: Mail::SPF::Query ('require' failed)
[9285] dbg: diag: module not installed: IP::Country::Fast ('require' failed)
[9285] dbg: diag: module not installed: Razor2::Client::Agent ('require' failed)
[9285] dbg: diag: module not installed: Net::Ident ('require' failed)
[9285] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
[9285] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
[9285] dbg: diag: module installed: Time::HiRes, version 1.86
[9285] dbg: diag: module installed: DBI, version 1.52
[9285] dbg: diag: module installed: Getopt::Long, version 2.35
[9285] dbg: diag: module installed: LWP::UserAgent, version 2.033
[9285] dbg: diag: module installed: HTTP: ate, version 1.47
[9285] dbg: diag: module not installed: Archive::Tar ('require' failed)
[9285] dbg: diag: module installed: IO::Zlib, version 1.04
[9285] dbg: ignore: using a test message to lint rules
[9285] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
[9285] dbg: config: read file /etc/mail/spamassassin/init.pre
[9285] dbg: config: read file /etc/mail/spamassassin/v310.pre
[9285] dbg: config: read file /etc/mail/spamassassin/v312.pre
[9285] dbg: config: using "/usr/share/spamassassin" for sys rules pre files
[9285] dbg: config: using "/usr/share/spamassassin" for default rules dir
[9285] dbg: config: read file /usr/share/spamassassin/10_misc.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_compensate.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_drugs.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_phrases.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_****.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_ratware.cf
[9285] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf
[9285] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_antivirus.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_body_tests_es.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_body_tests_pl.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_dcc.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_dkim.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_domainkeys.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_hashcash.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_pyzor.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_razor2.cf
| | 
08-13-2008, 07:12 AM
| | | I did just about the same thing. Edited the salocal.cf.in file, restarted zmamavisdctl, but the salocal.cf file has never modified to show the blacklisted items. Is there something I'm not getting restarted? | 
08-13-2008, 07:13 AM
| | | Quote:
[9285] dbg: config: read file /usr/share/spamassassin/25_replace.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_spf.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_textcat.cf
[9285] dbg: config: read file /usr/share/spamassassin/25_uribl.cf
[9285] dbg: config: read file /usr/share/spamassassin/30_text_de.cf
[9285] dbg: config: read file /usr/share/spamassassin/30_text_fr.cf
[9285] dbg: config: read file /usr/share/spamassassin/30_text_it.cf
[9285] dbg: config: read file /usr/share/spamassassin/30_text_nl.cf
[9285] dbg: config: read file /usr/share/spamassassin/30_text_pl.cf
[9285] dbg: config: read file /usr/share/spamassassin/30_text_pt_br.cf
[9285] dbg: config: read file /usr/share/spamassassin/50_scores.cf
[9285] dbg: config: read file /usr/share/spamassassin/60_awl.cf
[9285] dbg: config: read file /usr/share/spamassassin/60_whitelist.cf
[9285] dbg: config: read file /usr/share/spamassassin/60_whitelist_dk.cf
[9285] dbg: config: read file /usr/share/spamassassin/60_whitelist_dkim.cf
[9285] dbg: config: read file /usr/share/spamassassin/60_whitelist_spf.cf
[9285] dbg: config: read file /usr/share/spamassassin/60_whitelist_subject.cf
[9285] dbg: config: using "/etc/mail/spamassassin" for site rules dir
[9285] dbg: config: read file /etc/mail/spamassassin/local.cf
[9285] dbg: config: mkdir /opt/zimbra/.spamassassin failed: mkdir /opt/zimbra/.spamassassin: Permission denied at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm line 1530
[9285] dbg: config: Permission denied
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x835d03 0)
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0x906eb5 0)
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x9091d74)
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[9285] dbg: pyzor: local tests only, disabling Pyzor
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::Pyzor=HASH(0x9097784)
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[9285] dbg: razor2: local tests only, skipping Razor
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::Razor2=HASH(0x90738f4)
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
[9285] dbg: reporter: local tests only, disabling SpamCop
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::SpamCop=HASH(0x90761bc )
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::AWL=HASH(0x910263c)
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::AutoLearnThreshold=HAS H(0x9110b58)
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::WhiteListSubject=HASH( 0x9108570)
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x9109 254)
[9285] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from @INC
[9285] dbg: plugin: registered Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x912 21b0)
[9285] dbg: config: adding redirector regex: /^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i
[9285] dbg: config: adding redirector regex: /^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i
[9285] dbg: config: adding redirector regex: /^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
[9285] dbg: config: adding redirector regex: /^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i
[9285] dbg: config: adding redirector regex: /^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
[9285] dbg: config: adding redirector regex: m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&#])'i
[9285] dbg: config: adding redirector regex: m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
[9285] dbg: config: adding redirector regex: m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&#])'i
[9285] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&#])'i
[9285] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])site .*?)(?:$|%20|[\s+&#])'i
[9285] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$|%22|["\s+&#])'i
[9285] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&#])'i
[9285] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x912 21b0) implements 'finish_parsing_end'
[9285] dbg: replacetags: replacing tags
[9285] dbg: replacetags: done replacing tags
[9285] dbg: config: mkdir /opt/zimbra/.spamassassin failed: mkdir /opt/zimbra/.spamassassin: Permission denied at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm line 1530
[9285] dbg: config: Permission denied
[9285] dbg: bayes: no dbs present, cannot tie DB R/O: /opt/zimbra/.spamassassin/bayes_toks
[9285] dbg: config: score set 0 chosen.
[9285] dbg: message: ---- MIME PARSER START ----
[9285] dbg: message: main message type: text/plain
[9285] dbg: message: parsing normal part
[9285] dbg: message: added part, type: text/plain
[9285] dbg: message: ---- MIME PARSER END ----
[9285] dbg: bayes: no dbs present, cannot tie DB R/O: /opt/zimbra/.spamassassin/bayes_toks
[9285] dbg: dns: is DNS available? 0
[9285] dbg: metadata: X-Spam-Relays-Trusted:
[9285] dbg: metadata: X-Spam-Relays-Untrusted:
[9285] dbg: metadata: X-Spam-Relays-Internal:
[9285] dbg: metadata: X-Spam-Relays-External:
[9285] dbg: message: no encoding detected
[9285] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x835d03 0) implements 'parsed_metadata'
[9285] dbg: rules: local tests only, ignoring RBL eval
[9285] dbg: check: running tests for priority: 0
[9285] dbg: rules: running header regexp tests; score so far=0
[9285] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<"
[9285] dbg: rules: ran header rule __MSGID_OK_DIGITS ======> got hit: "1218656704"
[9285] dbg: rules: ran header rule __SANE_MSGID ======> got hit: "<1218656704@lint_rules>
[9285] dbg: rules: "
[9285] dbg: rules: ran header rule __MSGID_OK_HOST ======> got hit: "@lint_rules>"
[9285] dbg: eval: all '*From' addrs: ignore@compiling.spamassassin.taint.org
[9285] dbg: eval: all '*To' addrs:
[9285] dbg: rules: ran eval rule NO_RELAYS ======> got hit
[9285] dbg: rules: ran eval rule __UNUSABLE_MSGID ======> got hit
[9285] dbg: rules: running body-text per-line regexp tests; score so far=-0.001
[9285] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "I"
[9285] dbg: uri: running uri tests; score so far=-0.001
[9285] dbg: bayes: no dbs present, cannot tie DB R/O: /opt/zimbra/.spamassassin/bayes_toks
[9285] dbg: bayes: not scoring message, returning undef
[9285] dbg: bayes: opportunistic call attempt failed, DB not readable
[9285] dbg: rules: running raw-body-text per-line regexp tests; score so far=-0.001
[9285] dbg: rules: running full-text regexp tests; score so far=-0.001
[9285] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x835d03 0) implements 'check_tick'
[9285] dbg: check: running tests for priority: 500
[9285] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x835d03 0) implements 'check_post_dnsbl'
[9285] dbg: rules: running meta tests; score so far=-0.001
[9285] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
[9285] dbg: rules: running header regexp tests; score so far=1.866
[9285] dbg: rules: running body-text per-line regexp tests; score so far=1.866
[9285] dbg: uri: running uri tests; score so far=1.866
[9285] dbg: rules: running raw-body-text per-line regexp tests; score so far=1.866
[9285] dbg: rules: running full-text regexp tests; score so far=1.866
[9285] dbg: check: running tests for priority: 1000
[9285] dbg: rules: running meta tests; score so far=1.866
[9285] dbg: rules: running header regexp tests; score so far=1.866
[9285] dbg: rules: running body-text per-line regexp tests; score so far=1.866
[9285] dbg: uri: running uri tests; score so far=1.866
[9285] dbg: rules: running raw-body-text per-line regexp tests; score so far=1.866
[9285] dbg: rules: running full-text regexp tests; score so far=1.866
[9285] dbg: check: is spam? score=1.866 required=5
[9285] dbg: check: tests=MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS,TO_CC_ NONE
[9285] dbg: check: subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_ HOST,__NONEMPTY_BODY,__SANE_MSGID,__UNUSABLE_MSGID
zimbra@email:~> | this is what i did for blocking some email.
pls give the solution. | 
08-13-2008, 07:18 AM
| | | Hi nskmdu,
I was just messing with the salocal.cf.in just now and it works on my server.
Check to make sure the "blacklist_from ..." is in both the 2 files:
/opt/zimbra/conf/salocal.cf.in and
/opt/zimbra/conf/salocal.cf
Try:
1. editting /opt/zimbra/conf/salocal.cf.in (not /opt/zimbra/conf/salocal.cf, it will get overwritten) and enter the "blacklist_from ..."
2. then restart. I've restarted the whole server: `zmcontrol stop && zmcontrol start`.
3. then check if the "blacklist_from ..." is in the /opt/zimbra/conf/salocal.cf file (note: no ".in")
Hope that helps. | 
08-13-2008, 07:36 AM
| | Zimbra Consultant & Moderator | |
Posts: 19,655
| | Quote:
Originally Posted by frankman Check to make sure the "blacklist_from ..." is in both the 2 files:
/opt/zimbra/conf/salocal.cf.in and.... | merely putting any changes in that file and restarting the server will make the changes to the salocal.cf and, as I mentioned above, it is rewritten by Zimbra. You should not edit the salocal.cf file.
__________________
Regards
Bill
| 
08-13-2008, 09:18 AM
| | | hi frankman
it is working now.
i followed what you said.
thanks a lot. | 
08-13-2008, 01:51 PM
| | | Quote:
Originally Posted by phoenix merely putting any changes in that file and restarting the server will make the changes to the salocal.cf and, as I mentioned above, it is rewritten by Zimbra. You should not edit the salocal.cf file. | To make sure I understand correctly, if I change the salocal.cf.in, I've got to restart the entire Zimbra for the changes to take effect in the salocal.cf file. Is that correct? Or is there some other component I should restart instead? | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |