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
  #1  
Old 14th September 2008, 14:34
debuguser debuguser is offline
Junior Member
 
Join Date: Sep 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Spamsnake - Unable to received mail - Able to send mail

Good morning,

Please help!!!

I tried to setup a spamsnake to filter all incoming mails before relaying to our Exchange server which are located behind a firewall. The Spamsnake is located in a DMZ subnet and my Exchange is located in other subnet. However I am unable to receive mail from external either I have set all port forwarding correctly as I am able to received test mails from Spamsnake. I am able to send out mail. Please see below schema for my setup

Internet --> Router --> Firewall -->DMZ (Spamsnake 192.168.3.1)-->Exchange (192.168.0.23)

In postfix I set relay_recipients, the transport_map, the relay_domains. I postmap all these files.

Please help!!!
Reply With Quote
Sponsored Links
  #2  
Old 15th September 2008, 13:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Any errors in the mail log?
__________________
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
  #3  
Old 15th September 2008, 14:37
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Have you setup the proper MX records for your spamsnake?
__________________
Home of the SpamSnake
Reply With Quote
  #4  
Old 15th September 2008, 15:15
debuguser debuguser is offline
Junior Member
 
Join Date: Sep 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the below message

Can't call method "tie_db_readonly" on an undefined value at /usr/share/perl5/Mail/SpamAssassin/Bayes.pm line 1123.

Enabling SpamAssassin auto-whitelist functionality...
Process did not exit clearly, returned 255 with signal 0

postfix/smtpd [7699]: warning: database /etc/postfix/relay_recipients.db is older than source file /etc/postfix/relay_recipients >>> I presume this error can be fix by postmap command right?

I have one error message that popup on the screen every morning in regard with MailWatch.pm but I am unable to trace the log.

Regards,
Reply With Quote
  #5  
Old 15th September 2008, 15:27
debuguser debuguser is offline
Junior Member
 
Join Date: Sep 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Rocky View Post
Have you setup the proper MX records for your spamsnake?
Good morning,

The mail server that I mount have a MX record hosted as my ISP, I check this morning when In read yr. post using the below command

# dig mx mailserver.domain.com

However plaese tell me how to check if my MX is in my BIND

Thanks,
Reply With Quote
  #6  
Old 15th September 2008, 16:09
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

I think you have to do:
dig mx domain.com

That should list your mx records.

You have to postmap your relay_recipients file and that will fix the relay error.

For the bayes issues, make sure you have the following in your spam.assassin.prefs.conf file and make sure to change the values to match your setup:

#Bayes DB Connection
bayes_store_module Mail::SpamAssassin::BayesStore::SQL
bayes_sql_dsn DBI:mysql:sa_bayes:localhost
bayes_sql_username username
bayes_sql_password password
bayes_sql_override_username root
__________________
Home of the SpamSnake

Last edited by Rocky; 15th September 2008 at 16:17.
Reply With Quote
  #7  
Old 15th September 2008, 18:17
debuguser debuguser is offline
Junior Member
 
Join Date: Sep 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think the problem that I have is in named.conf in /var/lib/named/etc/bind/named.conf, I am not sure if I do right so can someone give me a sample or shoiw me how-to process.

Thanks
Reply With Quote
  #8  
Old 15th September 2008, 20:21
debuguser debuguser is offline
Junior Member
 
Join Date: Sep 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need a working sample of named.conf

Can someone provide a working sample of named.conf with MX and A record so I can resolve this problem.
Please copy and paste or reply with attachment.

Thanks
Reply With Quote
  #9  
Old 15th September 2008, 21:27
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

hey,

Who's the host of your DNS? They would have to create the records for you. You will need a host record(A) and an MX record for your spamsnake.

The A record makes it available online and the MX records directs mails over to it.

You have to get your DNS host to do this for you.
__________________
Home of the SpamSnake
Reply With Quote
  #10  
Old 15th September 2008, 21:40
debuguser debuguser is offline
Junior Member
 
Join Date: Sep 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by Rocky View Post
hey,

Who's the host of your DNS? They would have to create the records for you. You will need a host record(A) and an MX record for your spamsnake.

The A record makes it available online and the MX records directs mails over to it.

You have to get your DNS host to do this for you.

Thanks for yr. reply.

I have a 3 MX host and recorded at my ISP, I have 2 A record but I don't known how-to put in the named.conf, I use MS Exchange so Linux Mail server is new to me.

Can you provide me a "WORKING" sample of the names.conf

Thanks,
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
procmail can't write Hellbound General 27 8th June 2009 21:51
SpamSnake SpamAssassin not working? getrav HOWTO-Related Questions 5 23rd June 2008 23:02
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


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


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