Sendmail configuration question (or other mail system if more appropriate)

Hi,

I want to setup a sendmail or another similar open source mail system for either side of gmail business edition.

I want to do this to keep a copy of all outbound / inbound email delivered to and from gmail for business policy purposes.

Any ideas on how I do that? google supports this by use of gateway on the outbound side, so all I need to do is work out how to configure the mail servers.

Many thanks,

b
BrettskiWorkAsked:
Who is Participating?
 
jar3817Commented:
You could set it up so your MX record points to this sendmail server. Use the /etc/mail/mailertable file to specify that mail your domain should be sent to one of the gmail mx servers. Mailertable is a way of overriding normal mail flow and force mail for specific domains to specific servers. That handles incoming mail. It'll come to you, get logged and immediately get forwarded to gmail.

For outgoing basically just can deliver mail directly from this server, or forward it using the smarthost functionality to gmail or your isp for them to deliver it. Either way it'll get logged on your server also.
0
 
BrettskiWorkAuthor Commented:
sorry and I should mention its on ubuntu 8.04
0
 
BrettskiWorkAuthor Commented:
so all forward mail keeps a copy on the server as well? Even if its just relayed through?
0
 
jar3817Commented:
It'll log it (to, from, msgid, etc), but it's not going to keep a copy of the actual message. You'll need to hack something together for that. If you know perl you can use mimedefang as a sendmail milter and write a function to make a copy of the msg and store it locally.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.