Community Discussions and Support

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

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 

0
-1
closed
Rolf Lindby posted Jan 4 '08 at 3:39 am

Yes, S in that position should stop all transaction filtering:

To understand the difference between the 'X' and 'S' actions, you need to be aware that transaction filtering is done in several "passes", each pass testing a different state of the SMTP transaction. The 'X' action only exits from the current pass, meaning that future passes will still take place. The 'S' action, however, exits from the current pass and suppresses all further transaction filtering on the message altogether.
So if that doesn't work you will need to check that the expression in "*theserver*" actually does match the server's HELO string (and of course make sure that you want the rule to trigger on no hit if you put N in the 3rd position).


/Rolf
0
-1
closed
Thomas R. Stephenson posted Dec 30 '07 at 4:09 am

[quote user="bpczi"]

Hi!

I am a newbie and someone is trying to send mails via my mercury installation. There were about 13.000 Mails in the queue which I have deleted!

What I have to configure that my mercury installation is more safe? I have activated the checkboxes

Do not permit SMTP relaying of non local mail

and

Use strict local relaying restrictions

Now he can not send mails but it causes a lot of traffic because he is trying and trying...

Is there a way to configure mercury so, that smtp is only allowed after authentication? Or is there a better way to counteract against that? Is it better to use another port than 25?

What do you prefer in such a case? 

I am very sorry about my bad English and i hope, that you understand my problem!

Many thanks for your help!

best regards

 bpczi
 [/quote]

Turning off relaying is a start.   You can turn on the authentication for relaying but it's not going to help here since it will not keep him from trying.  You may be able to block his IP address from sending at all and that will help reduce the load.  The basic point is you have blocked the relaying and after awhile he'll go away.

 

 

0
-1
closed
lbarryb posted Jan 2 '08 at 1:41 pm

"Is the mail being sent to  user@broadoak.co.uk then being redirected to Mercury as SMTP mail?"

  • Yes exactly that.

"If so have you told the router to send all mail for port 25 to the LAN IP address of the system running Mercury/32? "

  • This has now been done - it works fine ... and I now know a lot more about how the router works.

Many thanks for your help and a Happy New Year to you.

0
-1

[quote user="feamster"]I'd like to have mail end up in specific folders based on what is in the subject.  I'd prefer to have it occur at the server level instead of at the client level.  Example: If the word cnet is in the from field I can place it into my imap tech folder automatically.  I saw forwarding, copy, moving,saving to disk as actions but didn't really see anything that would do this.  Thanks[/quote]

Sorry, can't be done.  Mercury/32 knows nothing about the users mail folders when delivering the mail. 

 

0
-1

Hello Rolf, 

I take your point and as I said, that is what we are focussing on, and I already have and use Second Copy. I just wondered if, knowing that things like interference, wireless blips etc can cause crashes, I just wondered if there is a better way to do this. I can use the software I already have, with all the different copy options: Synchronise source and destination to match exactly; Exact Copy - copy source to destination, delete obsolete files from destination.

Ellie 

 

2.32k
13.71k
10
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