Results 1 to 4 of 4

Thread: Automating some user tasks: forwarding, away/vacation etc

  1. #1
    Join Date
    Feb 2009
    Location
    RUSSIA, Far East, Birobidzhan
    Posts
    52
    Rep Power
    6

    Arrow Automating some user tasks: forwarding, away/vacation etc

    Hello!

    Recently I ran into stupid situation. My users uses MS Outlook as primary mail client, getting/sending their mails via POP3/SMTP to/from Zimbra mail server (OSE).

    The email processing is not the main task of them - they have much more jobs to do than simple r/w email. That is why we need to automate some processes.

    Well, I know about zmprov ma ACCT zimbraPrefMailForwardingAddress ANOTHERACCT, but how to automate such process?

    What exactly I need:

    1. admin receives the ticket like "ACCT1 must be forwarded to ACCT2 since DATE1 till DATE2"
    2. admin files this information somewhere and:
    3. on DATE1 forward address will be set up ACCT1-->ACCT2 and the forwarding will be enabled
    4. on DATE2 the forwarding will be disabled (with or without removal of forward-to address)

    I thinking about something like cron-executed script, but need some assistance about best way of how to do that.

    If anyone have working solution or realized ideas, share them with me please?

    Thank you!

    p.s. I will not idly wait for answers, and I will attempt to make this automation by myself, but suggestions are highly appreciated.
    Regards,
    Sergei from Siberia

    The word "traitor" is the antonym to the word "patriot".

  2. #2
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    You're on the right track. Just set up some database on the side that holds the information about what needs to be done when, and make a script that looks at that database for actionable items and act on them.
    01 Networks, LLC / Cybernetik.net
    Zimbra NE and OSS Cloud Hosting
    Shared Web Hosting
    Consulting Services

  3. #3
    Join Date
    Feb 2009
    Location
    RUSSIA, Far East, Birobidzhan
    Posts
    52
    Rep Power
    6

    Default

    any suggestions on scripting?

    1. cron/AT script like

    su -c "some-another-script-visible-to-zimbra $1 $2 $3 $4" - zimbra
    #1 - forwarding start date
    #2 - account to be forwarded from
    #3 - forwarding end date
    #4 - email of account which is to receive forwarded mail

    2. abovementioned script for zimbra (pseudocode!!!):

    #if forwarding begin date reached or due, then set up forward address
    if date(today)>=date($1)
    then ~/bin/zmprov ma $2 zimbraprefmailforwardingaddress $4
    fi
    #if forwarding end date reached or due, then remove forward address
    if date(today)>=date($3)
    then ~/bin/zmprov ma $2 zimbraprefmailforwardingaddress ""
    fi

    Then I need the tools for handling these dates and names. I know almost nothing about awk/perl etc :-(
    Regards,
    Sergei from Siberia

    The word "traitor" is the antonym to the word "patriot".

  4. #4
    Join Date
    Feb 2009
    Location
    RUSSIA, Far East, Birobidzhan
    Posts
    52
    Rep Power
    6

    Default

    Well... I did that!
    Now sudoer enters smth like:

    do-that! start-date end-date forward-from forward-to

    and script checks all and everything, and if success, adds proper data to special file.

    another script running by cron reads that data file and analyses, if any date is reached. If so, the date processed (on or off) and its record dropped out from data file...
    Regards,
    Sergei from Siberia

    The word "traitor" is the antonym to the word "patriot".

Similar Threads

  1. Replies: 2
    Last Post: 12-11-2012, 10:58 AM
  2. Vacation messages bounce to user
    By mohanj in forum Administrators
    Replies: 2
    Last Post: 05-17-2012, 06:17 PM
  3. Automating some tasks?
    By CRCarl in forum General Questions
    Replies: 1
    Last Post: 09-22-2010, 01:21 AM
  4. [SOLVED] Automating user add/remove
    By ceefus in forum Administrators
    Replies: 4
    Last Post: 07-20-2009, 06:17 AM
  5. Forwarding / Reassigning Tasks
    By ewebzone in forum Zimbra Connector for Outlook
    Replies: 3
    Last Post: 03-11-2009, 12:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •