Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 3rd December 2010, 19:48
tahussle tahussle is offline
Junior Member
 
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes I have just replaced my domain name with example.com


http://pastebin.com/mh1jMhwA

Last edited by tahussle; 3rd December 2010 at 20:08.
Reply With Quote
Sponsored Links
  #12  
Old 3rd December 2010, 20:02
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

I was taking a closer look at your main and master files and notice a few things i've highlighted in red. Please correct those if they actually exist and restart postfix and mailscanner.

main.cf
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8, 192.168.0.0/24
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
html_directory = /usr/share/doc/postfix/html
message_size_limit = 10485760
##local_transport = error:No local mail delivery
local_recipient_maps =
##relay_domains = mysql:/etc/postfix/mysql-relay_domains.cf
relay_domains = hash:/etc/postfix/transport
#relay_recipient_maps = mysql:/etc/postfix/mysql-relay_recipients.cf
relay_recipient_maps = hash:/etc/postfix/relay_recipients
##transport_maps = mysql:/etc/postfix/mysql-transports.cf
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = hash:/etc/postfix/virtual
disable_vrfy_command = yes
strict_rfc821_envelopes = no
smtpd_delay_reject = yes
smtpd_recipient_limit = 100
smtpd_helo_required = yes
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, permit
smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, permit
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_recipient_domain, reject_unauth_destination, whitelist_policy$ <-- What is this entry?
smtpd_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining
smtpd_restriction_classes = spf_policy, rbl_policy, grey_policy, whitelist_policy
spf_policy = check_policy_service unixrivate/policy
rbl_policy = reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net
grey_policy = check_policy_service unixrivate/greyfix
whitelist_policy = check_sender_access mysql:/etc/postfix/mysql-global_whitelist.cf
header_checks = regexp:/etc/postfix/header_checks
masquerade_domains = $mydomain


master.cf
smtp inet n - - - - smtpd
-o content_filter=dfilt: <-- What is this entry?
#submission inet n - - - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
# -o milter_macro_daemon_name=ORIGINATING
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
-o content_filter=
-o receive_override_options=no_header_body_checks
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
__________________
Home of the SpamSnake
Reply With Quote
  #13  
Old 3rd December 2010, 20:28
tahussle tahussle is offline
Junior Member
 
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have just followed the howto doc as posted on this site word for word.

i think the dfilt is for disclaimer and this is the value

dfilt unix - n n - - pipe
flags=Rq user=filter argv=/etc/postfix/disclaimer -f ${sender} -- ${recipient}

the whitelist entry was also posted in the how to doc

http://www.howtoforge.com/the-perfec...ick-meerkat-p4
Reply With Quote
  #14  
Old 3rd December 2010, 21:20
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Ok, for the purpose of troubleshooting, lets remove the entries for the disclaimer. Also, the whitelist entry has an '$' at the end, that is what I was referring to. My script does not have that. If it exist in your main, please remove it.

Recreate header_checks:
Quote:
rm -r /etc/postfix/header_checks
cat > /etc/postfix/header_checks <<EOF
/^Received:/ HOLD
EOF
postmap /etc/postfix/header_checks
postsuper -d ALL
/etc/init.d/mailscanner restart && /etc/init.d/postfix restart
See what happens when you send a new email.
__________________
Home of the SpamSnake

Last edited by Rocky; 3rd December 2010 at 21:27.
Reply With Quote
  #15  
Old 3rd December 2010, 22:02
tahussle tahussle is offline
Junior Member
 
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi i have taken the disclaimer line out. The $ at the end of whitelist was actually due to putty because the lien was longer than the width and therefor it places $ at the end to show theres more on that line


another thing worth mentioing when i run
spamassassin --debug FuzzyOcr < /usr/src/FuzzyOcr-3.6.0/samples/ocr-gif.eml > /dev/null


i get this at the end



c 3 21:00:43.399 [15708] dbg: FuzzyOcr: Starting FuzzyOcr...
Dec 3 21:00:43.399 [15708] info: FuzzyOcr: Processing Message with ID "<Yurtenl-66711-55767351-8@alexalvarez.com>" (Clifton Ballard <M7zmendelian@alexalvarez.com> -> naraya_a@web.de)
Dec 3 21:00:43.399 [15708] dbg: FuzzyOcr: fname: "sbillet" => "sbillet"
Dec 3 21:00:43.400 [15708] info: FuzzyOcr: GIF: [327x549] sbillet (7239)
Dec 3 21:00:43.406 [15708] dbg: FuzzyOcr: Saved: /tmp/.spamassassin15708uaIIPntmp/sbillet
Dec 3 21:00:43.406 [15708] dbg: FuzzyOcr: Saved: /tmp/.spamassassin15708uaIIPntmp/raw.eml
Dec 3 21:00:43.406 [15708] info: FuzzyOcr: Found: 1 images
Dec 3 21:00:43.406 [15708] dbg: FuzzyOcr: Connecting to: dbi:mysql:database=FuzzyOcr;mysql_socket=/tmp/mysql.sock
Dec 3 21:00:43.408 [15708] warn: DBI connect('database=FuzzyOcr;mysql_socket=/tmp/mysql.sock','fuzzyocr',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /etc/spamassassin/FuzzyOcr/Config.pm line 194
Dec 3 21:00:43.409 [15708] dbg: FuzzyOcr: pfile => /tmp/.spamassassin15708uaIIPntmp/sbillet.pnm
Dec 3 21:00:43.409 [15708] dbg: FuzzyOcr: efile => /tmp/.spamassassin15708uaIIPntmp/sbillet.err
Dec 3 21:00:43.409 [15708] dbg: FuzzyOcr: Errors to: /tmp/.spamassassin15708uaIIPntmp/raw.err
Dec 3 21:00:43.409 [15708] dbg: FuzzyOcr: File has Content-Type "image/jpeg" and no File Extension
Dec 3 21:00:43.409 [15708] info: FuzzyOcr: Found GIF header name="sbillet"
Dec 3 21:00:43.409 [15708] info: FuzzyOcr: Image has format "GIF" but content-type is "image/jpeg"
Dec 3 21:00:43.417 [15713] dbg: FuzzyOcr: Exec : /usr/bin/giftext /tmp/.spamassassin15708uaIIPntmp/sbillet
Dec 3 21:00:43.418 [15713] dbg: FuzzyOcr: Stdout: >/tmp/.spamassassin15708uaIIPntmp/giftext.info
Dec 3 21:00:43.418 [15713] dbg: FuzzyOcr: Stderr: >>/tmp/.spamassassin15708uaIIPntmp/giftext.err
save_execute: Insecure dependency in open while running with -T switch at /etc/spamassassin/FuzzyOcr/Misc.pm line 92.
save_execute: Insecure dependency in open while running with -T switch at /etc/spamassassin/FuzzyOcr/Misc.pm line 92.
Dec 3 21:00:43.420 [15708] dbg: FuzzyOcr: Saved pid: 15713
Dec 3 21:00:43.422 [15708] dbg: FuzzyOcr: Elapsed [15713]: 0.011562 sec. (/usr/bin/giftext: exit 8)
Dec 3 21:00:43.422 [15708] warn: readline() on closed filehandle INFILE at /etc/spamassassin/FuzzyOcr/Misc.pm line 205.
Dec 3 21:00:43.423 [15708] info: FuzzyOcr: Image is single non-interlaced...
Dec 3 21:00:43.423 [15708] warn: rules: failed to run FUZZY_OCR test, skipping:
Dec 3 21:00:43.423 [15708] warn: (Insecure dependency in printf while running with -T switch at /usr/share/perl5/FuzzyOcr.pm line 439.
Dec 3 21:00:43.423 [15708] warn: )
Reply With Quote
  #16  
Old 3rd December 2010, 22:55
tahussle tahussle is offline
Junior Member
 
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have rebuilt the hash file for the headerchecks as you requested. Just so we on the same page . I am sending emails from an outside account to be delivered to an exchange server behind the spam snake server

like i said the email sits in the mailq of the spamsnale server and eventually is cleared . But message is recieved in the remote sendin email client saying

Our virus detector failed to completely analyse a message you sent:-
To: test@example.com
Subject: kjhsks
Date: Fri Dec 3 20:43:38 2010
Any parts of the message that could not be analysed will not have been delivered.

If you are using Microsoft Outlook, we strongly recommend you change your outgoing message format from "Rich Text" to "HTML" or "Plain Text".

1) Click on the "Tools" menu and choose "Options..."
2) Go to the "Mail Format" tab
3) For message format, select "HTML" or "Plain text"
4) Click OK

The virus detector said this about the message:
Report: Report: MailScanner: Message attempted to kill MailScanner
Reply With Quote
  #17  
Old 4th December 2010, 00:58
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

For the Fuzzy issue, I have edited that section and if you followed it now, you'll be able to get by those errors. Make sure to set the password on the db and assign it to FuzzyOcr.cf under the mysql section.

As for the MS issues, the only other time I've seen that was when the harddrive was full. Check to see if your partitions are full by any chance. Also, if you run freshclam, what happens? Does it complete?
__________________
Home of the SpamSnake
Reply With Quote
  #18  
Old 4th December 2010, 22:03
tahussle tahussle is offline
Junior Member
 
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi supposing i wanted to use the mysql database to store the transportmaps how do i do that ?
Reply With Quote
  #19  
Old 4th December 2010, 23:50
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Simple. Setup the postfix transport settings in main.cf with mysql:/etc/postfix/mysql-transports.cf

Make sure you follow the guide on the postfix section.

Log into Baruwa as admin, or whatever your admin user is. Go to the settings tab and setup your account/domain info. Whatever you put into the mail host field will be your transport for whichever domain you're working with.
The query will pull the result in this format:
transport
smtp:mail.example.com:25 if domain = domainA

Everything for postfix is handled via Baruwa now, so no need to edit postfix tables manually.
__________________
Home of the SpamSnake
Reply With Quote
  #20  
Old 5th December 2010, 00:19
tahussle tahussle is offline
Junior Member
 
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Briliant thanks for all your help. Started everything from scratch and all works good now
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
Clamav issue with The Perfect SpamSnake - Ubuntu Jeos 9.10 Maxum HOWTO-Related Questions 7 21st March 2011 16:21
The Perfect SpamSnake - Ubuntu Jeos 10.10 Maverick Meerkat tahussle HOWTO-Related Questions 4 3rd December 2010 12:06
Connection timed out on intermail outgoing mails gouravgarg Server Operation 6 5th March 2010 20:31
MailScanner trouble with DBD-MYSQL sergio.arnaldo Server Operation 11 26th August 2009 18:08
SpamSnake SpamAssassin not working? getrav HOWTO-Related Questions 5 23rd June 2008 23:02


All times are GMT +2. The time now is 23:56.


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