Koozali.org: home of the SME Server

Archiving of email - Server only passing mail to exchange

Offline ntblade

  • *
  • 252
  • +0/-0
Archiving of email - Server only passing mail to exchange
« on: April 27, 2009, 12:12:26 PM »
Hi all,
I have a server accepting email for my domain, scanning for viruses / spam then passing the mail to an exchange server.
Now, I'd really like to create a separate archive of all email flowing through my sme box so I followed the instructions here...
http://wiki.contribs.org/Email#Keep_a_copy_of_all_emails
The trouble is that the mails going to "maillog" are also being forwarded to my exchange server.

Is there a way to deliver email locally to that user only?

I though about creating a dummy domain and an email alias but that might not work and also seems a long-winded.

Thanks for reading,
Norrie

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Archiving of email - Server only passing mail to exchange
« Reply #1 on: April 27, 2009, 02:06:45 PM »
Try this:
- if you don't already have one, create a secondary domain on your SME that does NOT forward to the Exchange server - something like "smeserver.local"
- set qpsmtpd to bcc to an email address on the secondary (non-exchange) domain using
Code: [Select]
config setprop qpsmtpd BccUser maillog@smeserver.local
signal-event email-update

(I don't know if this should work, but if it does it would love your problem)

Offline ntblade

  • *
  • 252
  • +0/-0
Re: Archiving of email - Server only passing mail to exchange
« Reply #2 on: April 27, 2009, 04:43:00 PM »
Thanks for the reply.
This didn't work.
I created a virtual domain - mailarchive.local and user maillog and set the BccUser to maillog@mailarchive.local but the sme box still attempts to deliver the bcc'd email to the internal server.

It seems that SME can not accept mail for 1 domain while forwarding to another.

Any ideas?
« Last Edit: April 27, 2009, 04:44:51 PM by ntblade »

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Archiving of email - Server only passing mail to exchange
« Reply #3 on: April 27, 2009, 06:24:56 PM »
Your SME will need to be configured to send ONLY the domain used by the Exchange Server to the Exchange server.

If you have configured email pass-thru using server-manager, or using config set DelegateMailServer internal.exch.host, then *all* email will be sent to the exchange server, for every domain on the SME.

You need to setup forwarding for only the domains handled by the Exchange box using
Code: [Select]
db domains setprop test.com MailServer a.b.c.d
signal-event email-update

Then you need to have general email forwarding disabled.

See more at http://wiki.contribs.org/Email#Internal_Mail_Servers

Here are the settings on a SME spam filter I manage, for comparison.

* DelegateMailServer is empty
* domain1.local and errors.local allow delivery to mailboxes on the SME server
* All other domains forward email to the internal mail server at 192.168.6.16

Code: [Select]
config show DelegateMailServer

DelegateMailServer=


db domains show | egrep 'MailServer|domain'

domain1.local=domain
domain1.org=domain
    MailServer=192.168.6.16
dietandcancerreport.org=domain
    MailServer=192.168.6.16
errors.local=domain
domain3.fr=domain
    MailServer=192.168.6.16
domain2-ca.org=domain
    MailServer=192.168.6.16
domain2-ch.org=domain
    MailServer=192.168.6.16
domain2-cn.org=domain
    MailServer=192.168.6.16
domain2-de.org=domain
    MailServer=192.168.6.16

Offline ntblade

  • *
  • 252
  • +0/-0
Re: Archiving of email - Server only passing mail to exchange - Resolved
« Reply #4 on: April 28, 2009, 10:36:49 AM »
Sorted!  I didn't realise that general forwarding has to be disabled in the delegate server entry.  This isn't in the Wiki.  I've requested Wiki membership so that I can add a note.

There's no need to create any pseudonyms either.

Thanks. :P

Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: Archiving of email - Server only passing mail to exchange
« Reply #5 on: April 29, 2009, 05:30:03 PM »
Hi

Try using MailArchiva..open source and how to on the Wiki

Offline ntblade

  • *
  • 252
  • +0/-0
Re: Archiving of email - Server only passing mail to exchange
« Reply #6 on: April 29, 2009, 06:42:17 PM »
Look very interesting.  Are you using this yourself?
N

Offline shawnbishop

  • *****
  • 298
  • +0/-0
Re: Archiving of email - Server only passing mail to exchange
« Reply #7 on: April 29, 2009, 06:45:34 PM »
I now use it at all my customers who want to archive mail, integrates well with SME and Exchange..( though i tend to use SME more :-) )

Offline sti

  • **
  • 29
  • +0/-0
Open Xchange
« Reply #8 on: May 12, 2009, 11:27:08 AM »
I found in the you had problems to get Open Xchange running on your SME ?
I installed it on an SME 7.4 and have a menu item in <smemanager>
now I am confused like you were...
How do I start and work with Open Xchange ?

did you find it out ?