Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th November 2008, 15:29
teixeira teixeira is offline
Junior Member
 
Join Date: Jan 2008
Location: Leiria - Portugal
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Spamsnake with a 2nd mail server. How 2 redirect SMTP connections

Hello HTF community,

i've 2 mails server, the great spamsnake and the main mail server.
After implementing the spamsnake, i changed the DNS MX records for spamsnake be the first MX record and Main Mailserver the 2nd, to make spamsnake behave like a gateway.

I don't know why, i still ( after 72hrs of DNS propagation) receive emails directly in the main server, instead of them pass all by the spamsnake.

I would like to know if there is any possibility to "redirect" all the external SMTP connections from the Main Mailserver to spamsnake, and than spamsnake knows that have to relay the processed mail to the Main mailserver.

Any sugestions, tips than can be usefull to me?


Thanks.

BR,
Teixeira
Reply With Quote
Sponsored Links
  #2  
Old 17th November 2008, 16:05
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Hey,

I used my router to port forward 25 to my SpamSnake. Now all email traffic goes to my SpamSnake then gets relayed to my MTA.

Rocky
__________________
Home of the SpamSnake
Reply With Quote
  #3  
Old 17th November 2008, 16:42
teixeira teixeira is offline
Junior Member
 
Join Date: Jan 2008
Location: Leiria - Portugal
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Rocky,

Sounds a good solution, but i've a problem that doesn't allows me to use that.

SpamSnake is just the gateway machine that filter and clean the email at the "front door" and the back Mailserver ( the main one ) is where users have theirs mailboxes and is where users connect to send (SMTP Authentication)/receive email.

Due this, i could do as you suggested and redirect the traffic accordingly, but the problem is that i've external users that need to connect to the back main mail server, not only the foreign MTAs that deliver mail to mu domain.

I fwded de port 25 in my router to test and its ok, but i don't know solve the problem of external people send emails normally.

Any sugestions?

Br,
Teixeira
Reply With Quote
  #4  
Old 17th November 2008, 18:35
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Your users should still be able to log in remotely via web access. As for sending emails, only inbound port 25 activity should be diverted and not outbound. Have you tried it?

If you log in via webmail, can you send and receive emails? What MTA are you using behind the SpamSnake?
__________________
Home of the SpamSnake
Reply With Quote
  #5  
Old 17th November 2008, 19:26
teixeira teixeira is offline
Junior Member
 
Join Date: Jan 2008
Location: Leiria - Portugal
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey,

Following you email, i found 1 big problem in my spamsnake.
I can use a fake user through LAN connection and even through WAN connection
connect to spamsnake and send emails to my domain.
i mean: fakeuser@mydomain.com can send emails to an existing one, e.g existinguser@mydomain.com

How can avoid this to happen?

Answering your post, my MTA behind SpamSnake is Qmail.

Many thanks,
Teixeira
Reply With Quote
  #6  
Old 17th November 2008, 19:36
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Are you using relay_recipients?
__________________
Home of the SpamSnake
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
FTP cannot open remote folder!?! andysm849 Server Operation 23 16th October 2008 23:34
SpamSnake SpamAssassin not working? getrav HOWTO-Related Questions 5 23rd June 2008 23:02
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 16:11


All times are GMT +2. The time now is 00:27.


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