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 2nd July 2008, 21:05
tcpip4lyfe tcpip4lyfe is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Spamsnake Guide Ubuntu 8.04- Relaying for postfix

First off I wanna say thank you for this guide. It's exactly what I'm looking for. I got it all setup and working I just need to figure out how to get it into production. Currently we have 2 email servers: 1 exchange with 25 users and 1 postfix/mysql vmail server. I want to have all incoming mail be screened by spamsnake and then have it sent to it's correct destination.

When I put this into production, I'm going to take point the MX record and change around the router so that all email will come into the spamsnake server but I have a couple questions first. How does the spamsnake box know how to relay the email to the correct servers? Is it the /etc/postfix/transport map? I am hoping that it looks at /etc/postfix/transport and says, "this email is going to domain1 which is at 192.168.1.2 so I'm going to send it there. And this other email is going to domain2 which is at 10.0.0.2 and I'm going to send that one here" Also I think I figured out how to send all outgoing email through spamsnake on exchange using the SMTP smarthost field but how would one setup postfix to relay all mail through spamsnake first?
Reply With Quote
Sponsored Links
  #2  
Old 2nd July 2008, 21:16
dean_za dean_za is offline
Junior Member
 
Join Date: Jun 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are on the right track contents of /etc/postfix/transport

domain1 smtp:[ip.address.1]
domain2 smtp:[ip.address.2]
* smtp:[ip.address.relay.server]

dean
Reply With Quote
  #3  
Old 2nd July 2008, 21:44
tcpip4lyfe tcpip4lyfe is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I put

relayhost = spamcop.domain.com

in /etc/postfix/main.cf and it seems to relay all mail through the spamcop now. Can't believe it was that easy.
Reply With Quote
  #4  
Old 3rd July 2008, 06:01
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
 
Default

Hey,

I'm happy it worked out for you.

Rocky
__________________
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
Spamsnake on Ubuntu 8.04 question Thomas_Powers HOWTO-Related Questions 7 24th July 2008 13:56
Ubuntu 8.04 Spamsnake mail gateway and SBS MS Exchange 200x alfonz.senki HOWTO-Related Questions 2 29th June 2008 14:26
Errors after following The Perfect SpamSnake (Ubuntu 8.04) hvrossum HOWTO-Related Questions 21 27th June 2008 17:14
Ubuntu 8.04 Spamsnake - all SA scores 0.00 Thomas_Powers HOWTO-Related Questions 23 24th June 2008 17:37
SpamSnake SpamAssassin not working? getrav HOWTO-Related Questions 5 23rd June 2008 23:02


All times are GMT +2. The time now is 02:26.


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