Quantcast
Channel: Zimbra :: Forums - Developers
Viewing all 286 articles
Browse latest View live

PHP module for integration into the admin SOAP API

$
0
0
Hey there,

I've released a Symfony2 bundle to integrate with the admin SOAP API. https://github.com/synaq/SynaqZasaBundle

Although packaged as a Symfony2 bundle, this code can easily be used in any PHP project.

If anyone has any questions or needs some help, don't hesitate to ask!

Nic Parry

Password Authentication Fails with SHA1 Encryption - Works fine with SSHA and MD5

$
0
0
Greetings,
I am trying to create users in Zimbra using Java API. I have managed to store their password on SSHA, MD5 and SHA1 encryption.
Although user can logging successfully with its password when it is SSHA or MD5, this is not the case when is SHA1. Can someone explain this to me?
Is there a particular reason why this is happening?

Thank you in advance

Open email in mime format (.eml file) directly in compose window

$
0
0
Hi,

is there any way opening an existing .eml file (either in the client machine or the server) in a compose window directly calling an url?
Or to programmatically (by calling an url) opening a compose window passing it custum subject, to, body AND ATTACHMENTs?

I cannot find the right way by myself,
Help me please or give me some hints!

Thanks in advance
Marco

Problems getting hold of the Source Code

$
0
0
Hi, I'm looking to do a little development work with Zimbra and thought I'd start by trying to compile up the source code, only to be stymied at the first hurdle - I can't seem to download it!

export P4PORT=codes.zimbra.com:2666
p4 -u public -P public1234 -c public-view sync -f //depot/zcs/IRONMAIDEN/...

Gives me;

Remote depot 'depot' database access failed.
TCP connect to perforce-zimbra.eng.vmware.com:1666 failed.
connect: perforce-zimbra.eng.vmware.com:1666: Connection refused


Can anyone point me in the right direction??

Bugzilla: Where's the Voting feature?

$
0
0
Hi Zimbra!

I've noticed, that you updated your Bugzilla installation (at last). While it's nice, to have a more appealing user interface, I'm missing the voting feature. Have you just forgotten to activate it or have you removed it?

If so, what are your plans on prioritising bugs and feature requests in the future?

Kind regards
Dennis

zimlet framework notification: onSendMsgSuccess

$
0
0
Hello All,

I use "onSendMsgSuccess" method to do some stuff when a message has been succesfully sent.

But this method is fired also when a draft is saved.

Is there any way to know if the message that has been "sent" is a "really sent message" or a "saved draft"?

Thanks
Roberto

is there a way to search a custom field?

$
0
0
Hi,

I saw some threads and discussions about people looking to add custom information to a message but did not find the information I was looking for.
I want to optionally "tag" E-Mails with a CustomerID and/or a TransactionID.
I tried the Notes Zimlet which is quite nice but realized that the information is not searchable which means no hook from a customer ID to the messages with the same customer ID.

After some more approaches I found the API command SetCustomMetadata which allows to add metadata to the messages.
I added:

<meta section="UDX_Data">
<a n="CustomerID">10000</a>
<a n="TransactionID">456123</a>
</meta>

Which is about what I was trying to do but still not searchable.
As we have quite a lot of transactions and customers it seems not practicable to me to use the built in tags for this issue.

I got the hint to use conversation IDs to tag my transactions the other way round which would work but is more a workaround not a solution.

Has anyone an idea or hint which could lead to a soulution?

Thanks

n||i||k||o

Admin Extension with XForm


When Zimbra finished migrating source to git

$
0
0
Like the title, Zimbra has announced that its source codes would be migrated to github instead perforce, so I want to know when this task finish? Now, I can not access Perforce server to update source codes.

customize attachment links

SOAP: ModifyAppointmentRequest and rev/ms attributes

$
0
0
ZCS version: 7.2.4_GA_2900 (build 20130523111128)
I'm trying a SOAP call in PHP to ModifyAppointmentRequest action but response get INVITE_OUT_OF_DATE exception. How can I set values of rev and ms attributes? I have also call CreateAppointmentRequest action and this goes OK.

JavaDocs for Zimbra API

$
0
0
Is there a place to view the JavaDocs for the Zimbra API? I am writing a Zimlet that uses a JSP to access Zimbra Properties

visual plugin for RAM, DISK and CPU?

$
0
0
Hi there,

how about a plug-in that shows, on the Zimbra administrator page, the current CPU load? RAM usage? Hard drive usage?
Currently number of connected users with IMAP and / or POP?
would be nice*— I am not always next to a terminal…

I love Zimbra.
I will never look at an Apple Server again.
Ever.

Miguel

How to open zimbra mail composer from external appliaction with attachments

$
0
0
Hi all!
I shuld develope a function in my win32 application to open the zimbra mail composer passing some parameters...

i've already found i can use something like this:
Code:

http://demo2.zimbra.com/zimbra/h/search?si=0&so=0&sc=7251&st=message&action=compose&to=someone@example.com&subject=SUBJECT&bcc=someone.else@example.com
but the question is: is it possible to post one or more attachment to the new mail window while opening it with an http post request?

many thx

Re-write Zimbra web front?

$
0
0
I'm new to Zimbra and have a few questions. Basically I already have a postfix / dovecot / cyrus based mail system built which has been working for the last few years but I want to throw in a web based layer with calendar / tasks functionality. Appears Zimbra is the choice but I want to customize the front end to suite my enterprise environment.

So which of the following is more difficult?
1) Install Zimbra and just use it's core functions but completely re-design / write the web front end? Or write the web interface from the ground up?
2) Write the web front end from scratch building on my existing setup, adding in calendar / task / contact, etc.

I guess it depends whether Zimbra has everything exposed via SOAP API and I can just use Java to call?

Also, is the source that is available the full network edition or only contain the feature in the open source edition? This is important because I'm using Outlook at the moment and if the code is only the open source edition this means it won't work with Outlook.

Sending automatic abuse complaints

$
0
0
Hi everyone!

I'm just dropping by to share a little script I wrote a couple of days ago.
I've noticed a huge increase in open relay scanning, and although Zimbra users aren't vulnerable, I thought this was a good opportunity to annoy spammers.

Suspicious entries in the daily log look like this:
Code:

message reject detail
---------------------
    RCPT
        Relay access denied (total: 38)
            5 ono.com
            3 190.5.230.178
            3 p578bd5ec.dip0.t-ipconnect.de
            3 nuvox.net
            3 63.115.40.56
            3 amos-traffic.co.uk
            2 charter.com
            2 static.sbb.rs
            2 bband-dyn112.178-41-177.t-com.sk
            2 119.73.152.205
            2 mtnbusiness.co.za
            1 201.203.3.10
            1 telesp.net.br
            1 rogers.com
            1 rr.com
            1 teksavvy.com
            1 cox.net
            1 rima-tde.net
            1 88.247.78.4

What's going on? Basically, someone is looking for misconfigured mail servers which will forward e-mails for anyone. This would allow them to send spam and have someone else deal with consequences.
Looking more closely at the logs, I figured that all those scans were originating from the same individual (because of patterns in the scan). At first, I began sending abuse mail manually, but it didn't take long for me to realize that it was far too time consuming. So I wrote a small shell script that does the job by itself: everyday, it parses Zimbra logs, looks for suspicious entries and sends everything to the registered abuse contact in the WHOIS database.
Code:

#!/bin/bash

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.


MAIL_HEAD="Hello,\n
\n\
I have received suspicious connexion on port 25 from a machine located in your network.\n\
Here are the relevant postfix logs:\n"

MAIL_FOOT="\nOne of your computers may have been infected, or it is possible that one of your clients is up to no good.\n\
Could you please look into it?\n\
\n\
Regards,\n\
[My Name]"

for IP in `grep -i "relay access" /var/log/zimbra.log.1 |perl -ne '/from [A-Za-z0-9.-]+\[([0-9.]+)\]/ && print $1 . "\n"' |sort -u`
do
    ABUSE_MAIL=`whois $IP |egrep -o "abuse[A-Za-z0-9.-]*@[A-Za-z0-9.-]+" |sort -u`
    if [[ -n "$ABUSE_MAIL" ]]
    then
        echo -e $MAIL_HEAD > mail.tmp
        grep $IP /var/log/zimbra.log.1 >> mail.tmp
        echo -e $MAIL_FOOT >> mail.tmp
        # Add "-b my@mail.tld" to mutt's arguments if you want to recieve a blind carbon copy of the sent e-mails.
        mutt -e 'set from=my@mail.tld realname="My Name"' -s "SMTP abuse from $IP" $ABUSE_MAIL < mail.tmp
    fi
done
rm -f mail.tmp

(You may have to install mutt manually.)
In order for the script to be called everyday, all you have to do is edit zimbra's logrotate script located at
Code:

/etc/logrotate.d/zimbra
:
Code:

/var/log/zimbra.log {
daily
missingok
notifempty
create 0644 syslog adm
compress
postrotate
    /usr/sbin/service rsyslog restart >/dev/null || true
    su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true
    # -------- EDIT THIS --------
    /path/to/abuse.sh || true
    # ---------------------------
endscript
}

This way, every time zimbra logs get archived, the script goes through them just before they are compressed.
Finally, here is a sample mail generated by this script.
Quote:

Hello,

I have received suspicious connexion on port 25 from a machine located in your network.
Here are the relevant postfix logs:

Jan 31 19:27:02 atria postfix/smtpd[21972]: warning: hostname 88.247.78.4.static.ttnet.com.tr does not resolve to address 88.247.78.4: No address associated with hostname
Jan 31 19:27:02 atria postfix/smtpd[21972]: connect from unknown[88.247.78.4]
Jan 31 19:27:03 atria postfix/smtpd[21972]: NOQUEUE: filter: RCPT from unknown[88.247.78.4]: <test@live.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<test@live.com> to=<therichsheickc@yahoo.com> proto=ESMTP helo=<[192.168.2.33]>
Jan 31 19:27:03 atria postfix/smtpd[21972]: NOQUEUE: filter: RCPT from unknown[88.247.78.4]: <test@live.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10024; from=<test@live.com> to=<therichsheickc@yahoo.com> proto=ESMTP helo=<[192.168.2.33]>
Jan 31 19:27:03 atria postfix/smtpd[21972]: NOQUEUE: reject: RCPT from unknown[88.247.78.4]: 554 5.7.1 <therichsheickc@yahoo.com>: Relay access denied; from=<test@live.com> to=<therichsheickc@yahoo.com> proto=ESMTP helo=<[192.168.2.33]>
Jan 31 19:27:03 atria postfix/smtpd[21972]: disconnect from unknown[88.247.78.4]
Jan 31 19:30:23 atria postfix/anvil[21974]: statistics: max connection rate 1/60s for (smtp:88.247.78.4) at Jan 31 19:27:02
Jan 31 19:30:23 atria postfix/anvil[21974]: statistics: max connection count 1 for (smtp:88.247.78.4) at Jan 31 19:27:02
Jan 31 22:15:21 atria postfix/smtpd[3430]: warning: hostname 88.247.78.4.static.ttnet.com.tr does not resolve to address 88.247.78.4: No address associated with hostname
Jan 31 22:15:21 atria postfix/smtpd[3430]: connect from unknown[88.247.78.4]
Jan 31 22:15:21 atria postfix/smtpd[3430]: NOQUEUE: filter: RCPT from unknown[88.247.78.4]: <test@live.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<test@live.com> to=<therichsheickc@yahoo.com> proto=ESMTP helo=<[192.168.2.33]>
Jan 31 22:15:21 atria postfix/smtpd[3430]: NOQUEUE: filter: RCPT from unknown[88.247.78.4]: <test@live.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10024; from=<test@live.com> to=<therichsheickc@yahoo.com> proto=ESMTP helo=<[192.168.2.33]>
Jan 31 22:15:21 atria postfix/smtpd[3430]: NOQUEUE: reject: RCPT from unknown[88.247.78.4]: 554 5.7.1 <therichsheickc@yahoo.com>: Relay access denied; from=<test@live.com> to=<therichsheickc@yahoo.com> proto=ESMTP helo=<[192.168.2.33]>
Jan 31 22:15:22 atria postfix/smtpd[3430]: disconnect from unknown[88.247.78.4]
Jan 31 22:18:42 atria postfix/anvil[3432]: statistics: max connection rate 1/60s for (smtp:88.247.78.4) at Jan 31 22:15:21
Jan 31 22:18:42 atria postfix/anvil[3432]: statistics: max connection count 1 for (smtp:88.247.78.4) at Jan 31 22:15:21
Jan 31 22:43:40 atria postfix/smtpd[16701]: warning: hostname 88.247.78.4.static.ttnet.com.tr does not resolve to address 88.247.78.4: No address associated with hostname
Jan 31 22:43:40 atria postfix/smtpd[16701]: connect from unknown[88.247.78.4]
Jan 31 22:43:41 atria postfix/smtpd[16701]: NOQUEUE: filter: RCPT from unknown[88.247.78.4]: <test@live.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<test@live.com> to=<therichsheickc@yahoo.com> proto=ESMTP helo=<[192.168.2.33]>
Jan 31 22:43:41 atria postfix/smtpd[16701]: NOQUEUE: filter: RCPT from unknown[88.247.78.4]: <test@live.com>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10024; from=<test@live.com> to=<therichsheickc@yahoo.com> proto=ESMTP helo=<[192.168.2.33]>
Jan 31 22:43:41 atria postfix/smtpd[16701]: NOQUEUE: reject: RCPT from unknown[88.247.78.4]: 554 5.7.1 <therichsheickc@yahoo.com>: Relay access denied; from=<test@live.com> to=<therichsheickc@yahoo.com> proto=ESMTP helo=<[192.168.2.33]>
Jan 31 22:43:41 atria postfix/smtpd[16701]: disconnect from unknown[88.247.78.4]
Jan 31 22:47:01 atria postfix/anvil[16703]: statistics: max connection rate 1/60s for (smtp:88.247.78.4) at Jan 31 22:43:40
Jan 31 22:47:01 atria postfix/anvil[16703]: statistics: max connection count 1 for (smtp:88.247.78.4) at Jan 31 22:43:40

One of your computers may have been infected, or it is possible that one of your clients is up to no good.
Could you please look into it?

Regards,
Ivan
That's it! It doesn't cost much, and may cost precious resources to spammers if ISPs and hosting providers recieve enough complaints.
Feel free to extend the script to detect other types of undesirable behaviour!

Zimbra public code access now available

Get Date From ZmMailMsg

$
0
0
Hello,
I have a question about ZmMailMsg: I want to get the datetime the message was received. I'm not able to find this property.
I can get the Subject, the recipients, the sender, the body, etc. but no datetime. Further I don't find something on google about this.

Maybe you can give me a hint?

thank u

How to build 8.0.6 and Ironmaiden (8.0.7) in Ubuntu 12.04

$
0
0
Zimbra source code was made available again as a GIT repository recently. :)

After many fixes to the current official documentation :( I have finally managed to build Zimbra OSE 8.0.6 and Zimbra OSE 8.0.7 in an Ubuntu 12.04 64 bit system :cool:. The original instructions are in Spanish but the commands speak for themselves. Just make sure you use a new minimal installation so that you don't loose any important contents.

Feel free to adapt it to a Zimbra Wiki page so that it helps more people.

Feedback is welcome.

Compilar Zimbra OSE 8.0.6

Compilar Zimbra OSE Ironmaiden (8.0.7)

SendInviteReply not causing Event Status to be updated

$
0
0
I am using SendInviteReply to update the status of an event but it does not seem to be updating it. Below is the XML request and response:

<SendInviteReplyRequest xmlns="urn:zimbraMail" echo="1" html="1" id="361-360" compNum="0" verb="ACCEPT" updateOrganizer="TRUE">
<m>
<e t="t" a="c80calendar@gmail.com"></e>
<e t="t" a="c80calendar@gmail.com"></e>
<mp part="" ct="text/plain" body="1">
<content>test</content>
</mp>
</m>
</SendInviteReplyRequest>
<SendInviteReplyResponse xmlns="urn:zimbraMail" invId="361-475" apptId="361" calItemId="361"></SendInviteReplyResponse>

Am I doing something wrong?

Thanks for the help in advance.
Viewing all 286 articles
Browse latest View live