up vote 1 down vote favorite
share [g+] share [fb]

Just installed ClearOS on a PC to act as our firewall firstly and then to act as an internal mailserver.

My question is: Can i create a mailserver that then routes the mail through to our ISP mail server without having to contact the ISP and gain MX records etc..?

We are a small business (5 PCs + dataserver) and the reason this is interesting is because we need to keep a record of outgoing mails from certain users, as well as spam and virus filtering.

link|improve this question
feedback

3 Answers

Yeah, it's pretty simple. If you go to the smtp server settings and put the smtp server of your ISP into the outbound relay host. This will make your system deliver ALL mail from your network to that upstream smtp server. As a matter of interest even if you were doing direct delivery the mail would be logged on your server.

Hope this helps

link|improve this answer
so would then the users still use my isp smtp setting rather than one based on my network? – Elzenissimo Feb 16 '10 at 7:17
and the mails would be spam and virus filtered? (as well as any policies I make regarding attachments etc...? – Elzenissimo Feb 16 '10 at 7:18
feedback

You users need to have YOUR server as the outgoing smtp server, your server will then handle the relaying to the upstream at the ISP. When it does this the server will scan the messages before handing them over to your ISP smtp. You should not allow port 25 outside of your network in the firewall. If you do, then you could open up for outbound spam. If one of your machines on the network got a virus or something it could mail directly out.

link|improve this answer
feedback

OK I have it set up so that my incoming mail is being scanned.

I created a local user account and have the server switched to retrieve messages for users, who then download them locally.

This works fine.

However, I am having a lot of difficulty with the smtp server. I made my primary domain example.com and my host name mail.example.com.

So if I follow correctly the smtp server my local users need to connect to is example.com. do I need to add smtp.example.com or just example.com?

outbound relay host has been set to my isp's smtp server.

Keep getting the 'server not found' message for my outgoing mail.

link|improve this answer
solved it! both incoming and outgoing set to mail.example.com and it works. beautiful. now if only I can figure out how the mail archiving system works. – Elzenissimo Feb 25 '10 at 6:38
feedback

Your Answer

 
or
required, but never shown