Community Discussions and Support

The perfect forum for general discussions or technical questions about Mercury Mail Server.

0
-1
closed
GordonM posted Jan 30 '08 at 9:47 pm

I am using Mercury Content Control and Filtering and have been very pleased to reduce my Spam-count from 200+ to 0/1/2 a day, with no false positives.  However, although it isn't critical, it would be nice to be able to get rid of the last few.  One common feature of most of the remaining spam is that a http URL appears by itself on a separate line in the message body.  Is there any way that Mercury can recognize this?  Even being able to test that a line begins with "http" would help.

 Thank you

GordonM

[Edit} It seems that I have now solved my own problem. 

 if BODY MATCHES "/bhttp://*.com/B" weight 51 tag "http"

seems to work for decting http URLs on isloated lines (at least for .com addresses). 

0
-1
closed
PiS posted May 26 '08 at 5:22 pm

The local topology and routing is essential, as where you place dns and how you point dns records to avoid using the uplink.

You should start a new thread about this, and be a bit more clear about the network topology first.

0
-1
closed
jeroenvj posted Apr 3 '09 at 5:18 pm

Thanks, that's good to hear.

After my previous post I reread the manual an discovered synonyms. I think that using synonyms in the form of

<internet email address with periods> == <local username without periods>

is an acceptable workaround.

0
-1
closed
Thomas R. Stephenson posted Jan 25 '08 at 4:40 pm

I find POPFile and it's magnets a bit easier to use but if you are already running at 98% with Spamhalter I really do not think it's will help you all that much.

 

0
-1

Dave - Yes, I think the rules are working correctly for me.  

I am using:

if HEADER

"Received" CONTAINS ".ru ([" weight 51 tag "foreign"

... so no asterisk.  I don't think that * should be used in simple string tests, only in regular expressions (unless one is trying to match a * in a string).

Other rules that I am finding useful are of the form: 

if HEADER "Received" CONTAINS ".pt[" weight 51 tag "foreign"

if HEADER

"From" CONTAINS ".lv>" weight 51 tag "foreign"

if SENDER CONTAINS

"*.ro>" weight 51 tag "foreign"

if HEADER

"
Received" CONTAINS ".do (" weight 51 tag "foreign"

if HEADER

"
Received" CONTAINS ".kh)" weight 51 tag "foreign"

Gordon

 

0
-1
closed
dilberts_left_nut posted Jan 22 '08 at 2:55 am

It's just a zip file with mxredir.txt & mxredir.dll

EDIT: Oops, that was my zip file, it's just the .dll available here (http://www.xs4all.nl/~fenke/files/mxredir.dll). The text file was a post from the mailing list. (copied below)

 

It seems fairly basic / beta but I tested it on 4.01b and it worked as advertised. Have not tried it on 4.5x but it should work.

Note the cautions about dropping undeliverable mail, I would suggest an 'Archive' filtering rule for that domain mail for backup purposes in case the network (or more likely Exchange [:P]) goes down.

 

 BEGIN MXREDIR.TXT

Have you thought of using a MX type operation here using a daemon?
Mercury/32  does not yet have the capability of forwarding all mail for a domain
off to another server.  That said, Frans Meijer has written a small daemon that
can do this.  I've tested this and it seems to work just fine.  You might want to
setup a Mercury/32 "Always" filter to send all of the mail for this domain off to
one of your local mail accounts so you'll not lose mail.

---------------------------------- quote ------------------------------------------------
A first version - for testing, not production use - is at

http://www.xs4all.nl/~fenke/files/


The actual daemon to use is mxredir.dll the rest are the sources to build it, for
which you also need daemon.h from the Mercury distribution and Borlands free
C++ compiler (should not be hard to port to other compilers though - mind the
alignment issues). 

Put the dll in a convenient directory, for instance the Mercury directory, assume
C:\Mercury for the remaining text and 192.168.2.3 is the ip address of the
receiving MTA. 

In Mercury Core config, local domains tab add a new domain. In the Edit
domain entry dialog fill in the local server and internet domain:

Local host or server: daemon:C:\Mercury\mxredir.dll;[192.168.2.3]
Internet name: test.local

(You can off course another domain name and ip address)

Messages send to <any-mailbox@test.local> should now be processed by the
daemon, you can see this in the core-process window (Job ... from ... To:
daemon:C:\M ...etc...) 


The daemon writes to a log file 'redirector.log' in the Mercury
directory.


Caution.

Mercury expects the domain-daemon to handle the message, it hands the job
over, then discards the original. If, for whatever reason, the daemon can not
forward the message, it is lost. A backup mechanism should be added, for
instance writing the message to a file somewhere, or dropping in a user mailbox
(though if it can't create the forward message that might be a problem to). Your
input is welcome. 

I feel there should be some more validations, for instance on the parameter
passed, maybe on the rcpt addresses. Perhaps not use a logfile (another point of
failure) and certainly not abort if it can't be opened. More? 

The current daemon will likely not work if the _source_ is a domain-popbox, I
don't know (yet) how the rcpt to address will look in the job-info passed to the
daemon, the daemon expects <mailbox@domain> 

As said, this is not (yet) for production. If anyone gives it a test-run, let me know
how it works, problems and change requests. (post here or to reply-to or if that
fails: <frans.meijer@xs4all.nl>) 

------------------------ end quote ---------------------------------------------------

END MXREDIR.TXT 

0
-1

[quote user="blake"]

Hello,

    I'm  using Mercury/32 on Ubuntu under WINE, and I'm pretty sure I've screwed things up. [:(]

   Right now, the problem is that I'm getting this error from my client (Opera):

Message does not exist! [Server response:-ERR file error.]


    I did delete a bunch of files... How do I track this down?

    ===Blake===
 

[/quote]

 

That "I did delete" makes me worry.  Might be that you've deleted a necessary file or even directory.   Not sure though how you are accessing you files and when do yuo get the error message.  If via POP3 then I'd turn on session logging in MercuryP to see what's going on between the server and the clist.

 

0
-1

There is a way to customize headers in automated mailing list messages (such as Welcome, Farewell and so on)? I mean, for example changing the Subject: ("Sottoscrizione" instead of "Subscription information"), or adding a X-Something header, and so on.

I know I can  instruct Mercury to use my Welcome and Farewell files, but these these seem not to be treated as full messages, as other templates; headers are written indipendently, and the files are used only for the body of the message.

 I'd like to be able to nationalize the Subject:, at least.

 Ciao.
 

0
-1
closed
PiS posted Jan 10 '08 at 11:19 pm

Arrrrghhh! - is my English that bad? The question was not for you to answer Thomas.

It was a humble query to the developer, David, about how the semantics works, not the code, and if what you propose is true (haven't seen that E works that way - since I've only seen it use the pointers not the local dns cache) and the future plans/ideas of Mercury dns lookups, hopefully a clarification on lookups against the hosts file, reveverse lookups, lookups of SPF, etc - so that someone could work a daemon for those that would like to implement SPF.

0
-1
closed
hef posted Jan 13 '08 at 8:10 pm

This is the answer: There is a small error in the command line for Sophos which comes with Virscan. It must read "-remove" and not "-removf". Now it runs.Heiko

0
-1

Headers added by daemons and content control survive a move action since they are written into the QDF RFC 2822 message file prior to passing the message back to core for processing.  Headers added by filtering are only added when the final headers are written by core when creating the CNM file. A move bypasses this final core action. Check out the first few headers in a message delivered normally and one delivered via a move.  The Last received line and the X-Envelope-To: is missing.  Here's two of mine.

Normal delivery 

Received: from spooler by tstephenson.com (Mercury/32 v4.60); 7 Jan 2008 05:35:50 -0800
X-Envelope-To: <support@tstephenson.com>

X-SPAMWALL: Passed through antiSPAM test by SpamHalter 4.3.0 on tstephenson.com (251)
X-SPAMWALL: probability - 0.0%
X-CLAMWALL: Passed through antiviral test by ClamWall 1.1.4 on tstephenson.com (952)
Return-path: <NoReply@praktit.se>
Received: from mail.praktit.se (62.20.118.73) by tstephenson.com (Mercury/32

Move delivery 

X-SPAMWALL: Passed through antiSPAM test by SpamHalter 4.3.0 on tstephenson.com (72)
X-SPAMWALL: probability - 99.4%
X-SPAMWALL: SPAM detected!
X-CLAMWALL: Passed through antiviral test by ClamWall 1.1.4 on tstephenson.com (959)
Return-path: <mogens@sinagirl.com>
Received: from smtpout1.bayarea.net (209.128.100.196) by tstephenson.com

You might try using content control and passing a message to your program or script to add the necessary headers. 

0
-1

MANY (!) thanks. We do already have the 'names' or users set up and all files on the server.

We were only using the outside service to filter and I'm believing we can do as good or better job

internally. I was using F-Prot but will also look at ClamAV for virus - F-prot currently turned off.

I did use the inherent spam filter in Merc but had turned that off as well.

I am not sure about the 'relay' aspects? Will see what I can find... want to lock it all down as tight as

I can without losing mail. Thanks so much for the help!

Doc 

2.31k
13.66k
8
Actions
Hide topic messages
Enable infinite scrolling
Previous
Next
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft