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.
Thread Tools Display Modes
Old 2nd July 2008, 22: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 so I'm going to send it there. And this other email is going to domain2 which is at 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
Old 2nd July 2008, 22:16
dean_za dean_za is offline
Junior Member
Join Date: Jun 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

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]

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

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
Old 3rd July 2008, 07:01
Rocky Rocky is offline
Senior Member
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts


I'm happy it worked out for you.

Home of the SpamSnake
Reply With Quote


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

All times are GMT +2. The time now is 12:18.

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