Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Export all email adresses including aliases?

Messages: 110
Karma: 0
Send a private message to this user
is there any way to export all email addresses the mail server is receiving mail on?
We have one primary domain and 10 alias domains, so paul.example could be reached on our but also on domain.
Now, we need to import all of these addresses into an external additional spamfilter and I haven't found a convenient way to do this yet.
Any help out there?


KC 7.3.1, Win2003 in vsphere 4.1, store drive attached via iSCSI, OS drive attached via NFS.
220+ IMAP Accounts: 210 OSX Mail /Entourage Clients, 10 Outlook 2003 KOC Clients - iPhones, Nokia E66, HTC 4350
Archive:EMA Appliance, SpamFilter: Nospamproxy

Messages: 145
Karma: 1
Send a private message to this user
I too need a list for the external additional spam filter.

Messages: 3
Karma: 0
Send a private message to this user
Here´s a quick and dirty script i´ve used to export my users for an external Postfix-Filter.

You need:
- Python (
- libxml2 für Python

The paths in the script should be modified as needed.

[Updated on: Thu, 26 July 2007 08:48]


Messages: 3
Karma: 0
Send a private message to this user
If anyone is interested i updated my script a little bit.
Groupaddresses and aliasses not belonging to a user are now considered.

While i only maintain one internal mailserver behind my postfix-gateway now, this could change soon. Therefore you can now give multiple mailserver.cfg/users.cfg pairs to the script. Duplicate addresses and Wildcard-Aliasses will be removed.

No more hardcoded paths, so Windows users only have to change the magic line (or run the script on the postfix-gateway, which is probably a linux box, with copies of the configs).

usage: [options]

  -h, --help            show this help message and exit
  -m MAILSERVER.CFG, --mailserver-xml=MAILSERVER.CFG
                        add a MAILSERVER.CFG for parsing. Can be given
                        multiple times. Every MAILSERVER.CFG should be
                        followed by a matching --users-xml (-u).
  -u USERS.CFG, --users.xml=USERS.CFG
                        add a USERS.CFG for parsing. Can be given multiple
                        times. Every USERS.CFG should have a preceding
                        --mailserver-xml (-m).
  --no-addresses        dont add user adresses and aliasses.
  --no-aliasses         dont add aliasses without users relationship.
  --no-groups           dont add group addresses.
  -t TEMPLATE, --template=TEMPLATE
                        template string for the output. Only one %s for the
                        address is allowed! (default: %s      OK)

This is still a quick and dirty one, so feel free to post fixes or additions.

Previous Topic: lock out imap logins
Next Topic: Training Spam Assassin with POP3
Goto Forum:

Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Mon Nov 20 14:32:14 CET 2017

Total time taken to generate the page: 0.00400 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.