Search 
You are here: Forums   
Latest PostsMinimize
RE: Switching database
by SteveT
on 17 May 2012 05:40 PM
RE: Switching database
by Jorgo
on 17 May 2012 04:29 PM
RE: Switching database
by fredz024
on 17 May 2012 03:43 PM
RE: Switching database
by Jorgo
on 17 May 2012 03:22 PM
RE: Switching database
by SteveT
on 17 May 2012 12:19 PM
Switching database
by Jorgo
on 16 May 2012 04:37 PM
RE: Hack attempts seem to be taking down POP3
by SteveT
on 10 May 2012 02:37 PM
RE: Hack attempts seem to be taking down POP3
by ub
on 09 May 2012 09:07 PM
RE: Hack attempts seem to be taking down POP3
by SteveT
on 09 May 2012 02:36 PM
RE: Hack attempts seem to be taking down POP3
by emkry
on 09 May 2012 02:09 PM
RE: Hack attempts seem to be taking down POP3
by SteveT
on 09 May 2012 02:03 PM
RE: Hack attempts seem to be taking down POP3
by emkry
on 09 May 2012 01:18 PM
RE: The operation not allowed on non-connected sockets. HELP!!
by whensen@holabird.com
on 30 Apr 2012 09:37 PM
RE: Hack attempts seem to be taking down POP3
by ub
on 23 Apr 2012 09:14 PM

ArGoStuff User to User Support Forums
Using Mailfilter to forward outbound mail to another relay
Last Post 15 Jan 2007 02:55 AM by Roland -. 5 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
AuthorMessages
Scott -User is Offline
New Member
New Member
Send Private Message
Posts:12

--
12 Jan 2007 09:59 PM  

Hello,

I am trying to use Mailfilter for a simple specific application.  I can't figure out how to configure it for this operation.

Basically I want on a domain level bases to relay all outbound mail to a different server.  I do not want to use the delivery agent in Argopro.

Any configuration examples would be appreciated.

Thanks.....Scott

P.S.  There is another thread in this forum that is more in depth of what I am trying to accomplish.  It is in this same forum under eWall.

Scott
Roland -User is Offline
Forum Moderator
Veteran Member
Veteran Member
Send Private Message
Posts:1073
Avatar

--
13 Jan 2007 07:07 PM  
OK ...

As I have pointed you to this I have to complete it. It is not so easy as I thought but I have a solution now.

Please download "Hamster" (freeware, tested, save, and ok) Hamster "classic" 2.1.0.11

@
 
http://www.arcorhome.de/newshamster...er_de.html (German)

or

http://www.arcorhome.de/newshamster/tgl/misc/hamster_en.html (English)

Configure it and make sure that SMPT Server of Hamster is listening on a different port than ArGo (f.e. 26) does. All other servers should be disabled. Make sure that remote access and OLE is enabled.

As soon as you have this done please contact me via messenger (roland.liebl@onlinehome.de) and I'll give you the appropriate MF filter and the necessary script for Hamster to relay to your spam box.

I did a test on my machine and it works for me !!! I will post the complete solution here if we get it working on your side.

-Roland

P.S: My Timezone is Central Europe Time (GMT +1) ... I'm online tomorrow which means in about 10 hours from now.
Roland -User is Offline
Forum Moderator
Veteran Member
Veteran Member
Send Private Message
Posts:1073
Avatar

--
14 Jan 2007 02:55 AM  
#1-

----Begin Snippet----
Version=4.0
Active=1

[HamsterRelay]
1
CFLD00A04From0Froland-liebl.de
CFLD00B09X-MF-Seen03yes
AAFD09X-MF-Seen03yes
AAFD0A!MAIL FROM0B{X-MF-From}
AAFD08!RCPT TO09{X-MF-To}
ASVED:\WebDevelopement\hamster\Mails\Mail.Out\{X-MF-Tickcount}.msg
ADEL
ARUNC:\WINDOWS\system32\wscript.exe¦D:\WebDevelopement\Hamster\Scripts\trigger_smtp.vbs¦5¦1
----End Snippet

Save the code above in /MailFillter/Filters/OnBefore/Default.mfr

EXPLANATION: First the filter checks if sender is in domain "roland-liebl.de". It adds a header field "X-MF:Seen" to avoid message loops. Then it adds two header fealds used by hamster relay service (!MAIL FROM: me@mydomain.com and !RCPT TO: you@yourdomain.com). It saves the modified message file in the hamster outbox (Mail.Out).

#2-
Lauch MailFilter Control Panel and edit "roland-liebl.de" to reflect your domain which should be forwarded to your alternate relay.

#3-
Make sure that the path to wscript.exe is pointing to this application; maybe you have to edit the drive and \WINDOWS\ to \WINNT\.

#4-

----Begin Snippet----
'Trigger smtp

'Initialize Hamster-constants
Const HAM_WAITIDLE_INFINITE = 0

'Initialize Hamster-object
'Note: Hamster.exe will be loaded now if does not run already.
Set Hamster = Wscript.CreateObject( "Hamster.App" )

Hamster.ControlRunMail ""

Hamster.ControlWaitIdle HAM_WAITIDLE_INFINITE

'Release Hamster-object
Wscript.DisconnectObject Hamster
----End Snippet

Save the code above as D:\WebDevelopement\Hamster\Scripts\trigger_smtp.vbs. If you want to have it anywhere else, make sure to edit the filter code.

EXPLANATION: The script simply force hamster to purge the outbox (relay mail).

Done! ... Instead of triggering the vbs script by MailFilter, you could schedule the script by the task manager (e.g. every 2 minutes). Maybe it is better for the performance if Hamster is not launched for each email passed to MailFilter.

Enjoy-

Roland

P.S: You won't regret to install Hamster. It is a really good and powerful tool to automate email processing and to realize fancy things!
Roland -User is Offline
Forum Moderator
Veteran Member
Veteran Member
Send Private Message
Posts:1073
Avatar

--
14 Jan 2007 03:18 AM  
@ Alex (Developer of MailFilter)

A point for the wish list: Please add a filter

if ...
relay to "myrelay.com, 25, myusername, mypass"

-Roland
Scott -User is Offline
New Member
New Member
Send Private Message
Posts:12

--
14 Jan 2007 08:10 AM  
Roland,

This is far moe complex than I thought it would be, however i tlooks like a workable solution. I added you to my messenger however you are not online.

Thank you for taking the time to figure this out for me.

I am a bit leary of implementing this remotely since I am home. I think I will take the day to study the solution then implement when I am at the data center Monday.

Thanks again....Scott
Scott
Roland -User is Offline
Forum Moderator
Veteran Member
Veteran Member
Send Private Message
Posts:1073
Avatar

--
15 Jan 2007 02:55 AM  
Scott,

your welcome. Let me know if/how it works.

-Roland
You are not authorized to post a reply.

Active Forums 4.2
DonationsMinimize

Find our site useful? Make a donation to show your support

Donate

logo_ccMC.giflogo_ccVisa.giflogo_ccDiscover.giflogo_ccAmex.gif

ArGoStuff Supporters

 


News from ArGoSoftMinimize
1 2 3 4 5 6


Mail Server v1.0.8.3
  • Added support of STARTTLS (STLS) command for SMTP, POP3, IMAP, and SMTP relay and delivery, which will allow secure, fully encrypted connections, when possible;
11/6/2011 1:10:34 PM
Mail Server v1.0.8.2
  • Optimized delivery speed. In earlier versions each "tick" which was checking whether messages were in the outbox queue, was picking up only one message at a time. Now it will attempt to pick MaximumAllowedThreads-ActiveDelivery threads messages, which should considerably increase deliver speed;
  • Optimized SEARCH and STATUS IMAP commands. They appear to be used very extensively by Android, and (not that extensively, but still) by iPhone. Now users who use mobile phones to access their IMAP accounts will see considerable improvement;
  • Optimized STORE IMAP command. Before storing of IMAP flags was occuring one message at a time, which seemed to be fine with SQL server, but proved to be slow for SQLite... Now it happens with single SQL call.
10/8/2011 7:59:35 PM
ArGoSoft Mail Server v1.0.8.1
  • Fixed a bug: when using IMAP via Firefox with "When I delete a message, move it to Trash folder" option, marking messages in the trash folder was causing high CPU usage, and was taking some time, making the server pretty much non-responsive. The problem was happening only when using SQLite.
6/6/2011 9:33:36 PM
ArGoSoft Mail Server v1.0.8.0
  • Fixed a problem with web interface - was showing only first page of messages, and would not switch to other pages; In order to fix the web interface, mail server itself has to be updated;
  • When installint initially, was still using SQLite, even when SQL was requested;
  • There was a problem with switching from SQLite database engine to SQL server database engine: the SQL database was not being created;
5/23/2011 5:53:55 PM
ArGoSoft Mail Server .NET v1.0.7.9
  • The server no longer requires Microsoft SQL Server. If SQL server is not found, it will use SQLite engine, which does not require separate installation. If SQL server is found, then user will be prompted whether he wants to use it;
  • Made other improvements, such as, now mailbox rebuild indexes orphaned records, rather then deleting them, also added an opotion to increment UIDL validity of folder (both on the Mailbox viewer box);
  • Made minor improvements on web interface;
4/26/2011 9:47:25 PM


1 2 3 4 5 6

Protect Your Computer today withGet AVG Today


Home:ArGoStuff:Forums:Articles:Cyber Security Tips:FAQ:Downloads:Links
Copyright 2006-2011 by ArGoStuff Terms Of UsePrivacy Statement