Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: ntblade 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
-
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 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)
-
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?
-
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 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
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
-
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
-
Hi
Try using MailArchiva..open source and how to on the Wiki
-
Look very interesting. Are you using this yourself?
N
-
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 :-) )
-
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 ?