How can I redirect all messages to 2 another mail servers?

Hi all
./imsimta version
Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009)
I wanted to redirect all messages(in and out) to another mail server, I configured as follows,
- imta.cnf
! tcp_local
tcp_local smtp mx single_sys ....... sourcefilter file:///backother.filter
! tcp_intranet
tcp_intranet smtp mx single_sys ....... sourcefilter file:///backother.filter
- backother.filter
require ["fileinto"];
if address :all :matches ["From"]["*"]{
redirect "[email protected]";
keep;
stop;
One e-mail account receives all messgaes and those messages will be kept in sender's or receiver's mail storage.
I want , however, redirect all messages 2 or 3 mail servers.
I tried several things to do this include edit backother.filter(this is written in Sieve ), but I failed.
Is there any way to redirect messages to another mail servers?
Any way would be good , using sieve script, make antoher channel or channel keyword
Thanks
Edited by: leeky41 on Mar 9, 2010 10:58 PM
Edited by: leeky41 on Mar 9, 2010 11:06 PM
Edited by: leeky41 on Mar 9, 2010 11:07 PM

leeky41 wrote:
Redirecting the message means it will not be delivered to the original recipient.I know so I wrote 'keep' keyword to deliver messages to the original recipient.
capture "[email protected]";
I tested it but the capture's behavior was very weird, subject had changed to something like,'deliverd status notice', sender had changed to postmaster and additional notice messgae inserted into mail body.The default sieve capture action encapsulates the email to keep a copy of both the envelope information and the original message. MS7u3 also supports the Exchange journal encapsulation format through the addition of the ":journal" parameter.
I edited 'capture' like this..
capture :message "[email protected]";
The ":message" flag removes the encapsulation -- therefore you will have no idea of who the original sender/recipients were as the envelope information has been discarded.
It worked fine. It was same as the result of 'redirect'.
but the following line, sent10 messages to each recipients.(receive_01,receive_02)
capture :message "[email protected],[email protected]";
maybe there was some 'loop' actions happened.The email produced by the capture sieve action is being "captured" which is resulting in a loop. You can stop this by adding an envelope test e.g.
require ["envelope"];
if not envelope :is ["to"] ["[email protected]","[email protected]"]
        capture :message "[email protected]";
        capture :message "[email protected]";
}Regards,
Shane.

Similar Messages

  • How can I select all messages in Inbox, Trash and/or Bin in one go to delete them.  I currently have 3000  unwanted messages in my Bin box and wish to delete them without having to individualy select them 50  at a time.y

    How can I select all messages in either my Inbox, Trash and /or Bin in one go to delete them all in one go.  I currently have 3000+ unwanted messages in my Bin

    Click on the inbox then Edit>Select All (if you are using Mail, if not you'll have to tell us which mail program you use) repeat in other mailboxes as needed.

  • How can I list all the domains configured for Weblogic Servers?

    How can I list all the domains configured for Weblogic Servers?
    I saw a note, which says the following:
    "WebLogic Server does not support multi-domain interaction using either the Administration Console, the weblogic.Admin utility, or WebLogic Ant tasks. This restriction does not, however, explicitly preclude a user written Java application from accessing multiple domains simultaneously."
    In my case, I just want to list all the domains, is that possible by using any scripts?
    Thanks
    AJ

    If you use WLS Node Manager and the Config Wizard was used to create the domains, then the list of domains should be in a location like this:
    <MIDDLEWARE_HOME>\wlserver_10.3\common\nodemanager\nodemanager.domains
    Enterprise Manager Grid Control also has support for multi-domain management of WLS in a console.

  • How can I find all messages like this?

    What criteria can I use in a smart mailbox to find all messages like this?
    The message from Robert Nicholson <[email protected]> concerning “Hi Testing” has not been downloaded from the server. You need to take this account online in order to download it.
    I have a lot of these because I use IMAP for my mail but there's no point in keeping these messages as they were deleted from the server a long time ago.

    Robert,
    I am not sure what a Smart Mailbox would have to offer with respect to this?
    However, the problem is likely not that the message has been deleted from the server, but that Mail 2.0 has problems with some IMAP servers at displaying some messages.
    I am hopeful, but cannot assure anyone, that a fix is being worked on for this, and perhaps will be available sometime in the future.
    If you were to access with a different version of Mail, such as 1.3.11, or another mail client, you might access these messages. Therefore, I would not be quick to try and eliminate them.
    Ernie

  • How can I remove all messages, save to a DVD, and access them easily later?

    I recently dropped my .Mac account in order to use Gmail full time. I would like to be able to take those mac.com messages off of my computer--preferably saving them to a DVD--so that when I activate my Gmail account in Mail, they would be totally separate. I am also trying to save hard drive space.
    I've looked around about this, and even downloaded some Applescripts for Archiving mail, but those seem to continually make Mail crash (I have 3 years worth of email saved in Mail.app--about 3,000 emails). I have read enough about Backup to know that it saves things in strange/proprietary ways.
    Is the best plan simply to copy that ~/Library/Mail folder, straight up to a DVD, and then clear it off of my Mac? How do I do that without making Mail.app unstable? And will it be difficult to then read them from the DVD later if I need messages?

    ... and import its contents back into Mail whenever you wish ...
    You can also open individual .emlx message files within the copied mailboxes to read them, without first importing them back into Mail. However, by itself this isn't very practical because the files have names like "12345.emlx" that offer no clue about their content, so finding the message of interest among 3000 of them is a challenge.
    You might think that Spotlight would help with this, but in its normal state it excludes .emlx files from searches, so you can't simply do a Finder search on subject, content, etc. There are ways around this but none are simple:
    1. Use a Spotlight "raw query" search to find the messages. This avoids the exclusion of .emlx files that is tacked onto all normal Spotlight queries but requires knowledge of the syntax of raw queries. (To get an idea of how that looks, & to see the exclusions, you can do a "Get Info" on a Smart Folder. The raw query string is listed after the "Query:" entry in the General section.)
    2. Replace the ".emlx" extension with ".txt" or similar in the copied messages. (This could be done with an AppleScript using Finder.) Spotlight will then include the files in searches. In this case, opening the message file by default will be with TextEdit or similar, so you won't have access to "Reply" or similar features of Mail, but you will see the entire message, including the preference-like xml info about it that follows the message body in the raw .emlx file. As long as you don't alter the content, you can reimport the message into Mail by changing the extension back to ".emlx."
    3. Mimic what the Mail archive utilities do & construct a database that either relates the numbered .emlx files to their content or import entire files into database records & use its search features to find the messages of interest. This is appealing if you have a powerful database app like Filemaker & skills at database construction because you can construct any view of the info you want & organize it however you like. Obviously, if you don't, it would be simpler to buy a utility, which may offer other features that you might find useful.
    These alternatives would be most useful if you need to avoid reimporting large mailboxes back into Mail because of disk space concerns. They also avoid the perhaps considerable time it would take to reimport thousands of messages just to find one or two of interest. The second & third ones are somewhat self-contained & independent of Mail itself, which is both a strength & a weakness, depending on your needs.

  • How can I download all messages in my inbox to a CD?

    I want to download my entire inbox to a CD. There are >600 messages, so I cannot do them one at a time. Is there a bulk way to do it?

    This depends rather on what format you want to use to store the messages.
    The safest route IMHO is to use the Thunderbird native .eml file format, which as far as possible stores your messages verbatim, including attachments. The downside is that you need an email client, such as Thunderbird, so be able to see the .eml files. Whilst eml is supposedly an industry standard, MS's email clients don't handle it well, so your store would not be useful to a huge proportion of the world's computer users.
    Other options are to export your messages to plain text (which loses all the graphical content) or HTML format (which isn't always entirely accurate), or just to copy the mail store files, which are a variant of a standard known as mbox files.
    The other consideration is your reason for placing messages on the CD. Is it to be able to refer to them, whiilst perhaps releasing space on your HDD, or is it a back-up against hardware failure? Each of these has an influence of the choice of methodology. Alternatively, if you want to move these messages to another computer, copying the whole profile might be a productive route.
    [https://support.mozilla.org/en-US/kb/profiles-tb Thunderbird profile article]
    For most of these export options, I'd be looking at the [https://addons.mozilla.org/en-US/thunderbird/addon/importexporttools/ ImportExportTools] add-on, which if you choose plain text or HTML, can also build index files which you can view in a browser. Recent versions also allow attachments to be preserved.
    http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html
    Beware! A Thunderbird profile can often be several gigabytes in size, and won't necessarily fit on a standard data DVD.

  • How can I delete all messages in my I pad in box at once

    Is there a way to " delete all" emails in my I pad inbox. I tried clicking one message, clicking " move" and holding move while  unclicking the first message. Did not work.

    Tap "Edit" near the top left of your inbox view, then click the circles next to each email message you want to delete. Then hit "Trash" near the bottom left.

  • I have recently updated my computer and it has imessage on it but sometimes they dont send them to my phone how can i make all the messages be on both?

    i have recently updated my computer and it has imessage on it but sometimes they dont send them to my phone how can i make all the messages be on both?

    See Here  >  About Messages
    Using Messages  >  http://support.apple.com/kb/HT3529
    Troubleshooting Messages  >  http://support.apple.com/kb/TS2755
    Mac 101: Messages
    http://support.apple.com/kb/HT5395

  • HT201269 hi, my new device was set up in the store that I bought it from. How can I transfer all old text messages over to my new device? I have followed the icloud back up steps on this page. Please help, thank you.

    hi, my new device was set up in the store that I bought it from. How can I transfer all old text messages over to my new device? I have followed the icloud back up steps on this page. Please help, thank you.
    Its an iPhone 4
    Message was edited by: zzziggy85

    Here is how
    http://support.apple.com/kb/HT2109

  • I have a new IMAC 5k running Yosemite and when I log in I am asked a whole series of questions as to what keychain can access. How can I authorise all of these to be available upon login? Items concerned are such as "Talagent", "Messages agent" etc

    I have a new IMAC 5k running Yosemite and when I log in I am asked a whole series of questions as to what keychain can access. How can I authorise all of these to be available upon login? Items concerned are such as "Talagent", "Messages agent" etc

    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select
              Change Settings for Keychain "login"
    In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
              Keychain Access ▹ Preferences... ▹ First Aid
    There are four checkboxes in the window that opens. Check all of them. if they're not already checked. Close the window.
    Select
              Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.
    If you use iCloud Keychain, open the iCloud preference pane and uncheck the Keychain box. You'll be prompted to delete the local iCloud keychain. Confirm. Then re-check the box. Follow one of the procedures described in this support article to set up iCloud Keychain on an additional device.

  • How can i view all my messages i posted in this form?

    hello,
    how can i view all my messages i posted in this form?
    i can view only the recent message i sent.
    is thier any way to view all my message i posted
    thaks
    daya

    Do a forum Serach for your screen name.

  • I just opened my mail on icloud and all messages disappeared from the last year! I have one email left in my inbox which is the most recent. I moved to icloud 2 weeks ago and it has been working fine until now. How can I retrieve old messages? Thank you.

    i just opened my mail on icloud and all messages disappeared from the last year! I have one email left in my inbox which is the most recent. I moved to icloud 2 weeks ago and it has been working fine until now. How can I retrieve old messages? Thank you.

    I guess you could try but I don't believe Apple can help with activation lock issues.  They may, however, be able to determine if the Apple ID belongs to one of you and reset the password for you if you can prove your identity.
    You might want to try calling Apple by going to https://expresslane.apple.com; click 'More Products and Services, then 'Apple ID'.  In the next page select 'Other Apple ID Topics' then 'Lost or forgotten Apple ID password'.  Perhaps they can help determine if it's your ID and reset the password for you (and they probably have more expertise in doing this than the Apple store).

  • When i try to delete my messages it turns my imessage off so i have to restart my phone to get it to work again, by then all my messages have come back which i deleted... how can i delete old messages i dont need anymore withou imessage going off?

    when i try to delete my messages it turns my imessage off so i have to restart my phone to get it to work again, by then all my messages have come back which i deleted... how can i delete old messages i dont need anymore withou imessage going off?

    To get rid of "pop-up ads and other crap on my computer when I am on the internet", click on Safari in the Menu bar, and select Preferences. Next select Extensions. Delete all of them. Restart Safari.
    The first step in addressing the black screen is an SMC reset.
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.
    Excerpt from
    http://support.apple.com/kb/ht39

  • TS4036 I have restored a backup into a new iPad but it did not downloaded all my photos. There is a message saying " downloading 515 of 1230" but it never finishes downloading. How can I get all my photod downloadeda.

    I have restored a backup into a new iPad but it did not downloaded all my photos. There is a message saying " downloading 515 of 1230" but it never finishes downloading. How can I get all my photod downloadeda.

    Sorry this solution is late but I just got off of the phone with Apple support and this worked. 
    Open iTunes
    Connect your iPhone and keep it connected during this entire process.
    In the iTunes menu at the very top (File, Edit, View) choose STORE> Sign in and sign into your iTunes account.
    Once this is complete look at the upper right corner of iTunes and you will see an iPhone and Store button, cick STORE.  Now you will be in the iTunes store where you see the advertisements of the various albums, songs etc.  Look on your upper left of the window for your itunes account name and in the black band next to your iTunes account name, you will see a House icon, then Music, Movies, TV Shows etc.
    Make sure the HOUSE icon is selected.
    Stay on this screen in iTunes and on the lower RIGHT, you will see an area that says- QUICK LINKS.  In that area click - Purchased
    After you do this you will be transported to another area of iTunes.  Here there will be a menu across the top- Music, Movies, TV Shows, Apps, Books are the choices. 
    Choose APPS and you will see the apps that you have purchased.  You will also see the apps that didn't download to your phone. 
    Find the apps that didn't download and click the cloud next to their name.  Doing this will download the chosen apps to the computer you are on. 
    Once you have downloaded the apps in question, in the upper right corner click LIBRARY.
    Now you should see the button that says iPhone because your phone is still plugged in.  Click the iPhone button and then click SYNC on the lower right to sync your iPhone.  
    The apps you downloaded will now be on your phone.
    Sorry for the long instructions but this is what works.

  • TS2755 Now that my husband has an iPhone5 as well, he receives all the messages sent to me, and my replies to them. How can I keep my messages private?

    Now that my husband has an iPhone5, he receives all the messages sent to me, and I receive his. Do I have a setting wrong? How can we keep our messages private?

    Go into the settings app.
    Settings > Messages > Send and Receive from
    Set each phone to send and receive only from the specific phone number assigned to the phone and the specifics one number of each user.
    If you each are using the same App,e ID I suggest one of you getting a different ID to keep all your stuff separate. I also recommend that each of you have different email addresses.

Maybe you are looking for

  • Audio ahead of video in iTunes using Windows 8

    I recently bought a new HP ENVY m4 laptop with Windows 8 at Best Buy. I do not like Windows 8, I prefer Windows 7, but there was nothing I could do about it. After I bought my new laptop, I downloaded iTunes along with everything I have ever bought o

  • Cannot Import Graphics Into Project

    I am experiencing some very odd behavior in RoboHelp 9 project. When I attempt to import/insert a graphic into a topic, I receive the message: Unable to rename file, "image.gif". The file contains illegal characters. First of all, I am NOT trying to

  • Loading an external .swf then referencing to it's label

    I'm new with Actionscript and am currently working at building a website. I've got a lot figured out so far but one problem I'm running into is when I try to load an external .swf using the loader component and then reference it or try to point to it

  • How to create a exe file from a Java application

    hi, i have developed an application in java,now i want to distribute it to my client, for this i need to build a .exe file out of this application. i already have a jar file ,now can i convert a jar file to a exe file. im trying this out with JSmooth

  • Photo Management with large iPhoto libraries

    I have over 50,000 photos in iPhoto and this slows iPhoto to the point of hanging. I am now importing new photos into a new library but this is a nuisance when wanting to select photos from both libraries for a specific porject. I'm not keen to have