Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Importing and exporting Exchange Server 2003 sender filters
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Importing and exporting Exchange Server 2003 sender filters


Serdar Yegulalp
06.14.2006
Rating: -5.00- (out of 5)


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Exchange Server 2003's sender filtering is a helpful feature that lets you specify who can and can't send email from within your organization.
VIEW MEMBER FEEDACK TO THIS EXCHANGE SERVER TIP
It does have some limitations though -- it only stores about 800 addresses and can't be easily imported or exported from Exchange Server.

If you've ever wanted to export a copy of your Exchange Server's sender filters and reuse them somewhere else, or just have a copy on hand for reference, these limitations can be frustrating.

Exchange Server guru Brian Desmond has come with a way to import and export a list of filtered sender domains in Exchange 2003. I've reprinted his techniques here in detail with his permission.

To export:

From a command prompt or batch file, run the following command:


ldifde -m -f senderfilter.ldf -r "(objectCategory=msExchSMTPTurfList)" 
-d "cn=configuration,dc=yourdomain " -l msExchTurfListNames

For this to work in your organization, you'll need to replace dc=yourdomain with your own domain's address. For instance, if your domain for this Exchange server is utena.ohtori.org, you'd render this as dc=utena,dc=ohtori,dc=org. For a local address like myserver.local, use dc=myserver,dc=local.

The results will be exported to a file named senderfilter.ldf, which can be read in any text file.

To import:

If you're importing this list into a new domain, edit the senderfilter.ldf file and replace each dc=domain instance with the proper domain description as outlined above. Then use this command to import the file:


ldifde -i -f senderfilter.ldf

If you're using this to copy lists to many domains, you can replace the domain references in the file with dc=x and use the command:


ldifde -i -f senderfilter.ldf –c dc=x dc=targetdomain,dc=local

The enumeration for the domain name you're copying to is dc=targetdomain,dc=local, which allows you to keep the file in one consistent format and only make the changes needed when supplying the import command.
More Microsoft Exchange tips and resources:

Prevent Exchange Server 2003 users from sending or receiving Internet email

Securing email messages with Outlook 2003's Information Rights Management feature

Microsoft Exchange administration tools and downloads

Microsoft Exchange Server 2003 Reference Center

Note that if you import a list of filtered senders to an Exchange server that already has such a list, the results will be merged and not replaced. In other words, any existing filtered senders will be kept, and the ones listed in the file will be added.

About the author: Serdar Yegulalp is editor of Windows Insight.

MEMBER FEEDBACK TO THIS EXCHANGE TIP

Exporting senderfilter isn't a problem, but importing is.

I use this command for export:

ldifde -m -f senderfilter.ldf -r "(objectcategory=msexchsmtpturflist)" -d "cn=configuration,dc=interlogica,dc=nl" -l msexchturflistnames

Now I get a senderfilter.ldf file. I can modify it and would like to import this on the same server.

I use this command for import:

ldifde -i -f senderfilter.ldf -r "(objectcategory=msexchsmtpturflist)" -d "cn=configuration,dc=interlogica,dc=nl" -l msexchturflistnames

However, this is not working.

I didn't modify the *.ldf file because it's the same server.

Can you tell me what's going wrong?
—Addy L.

******************************************

From what I can tell, the import command you're using is not in the right format. To import you just need to say:

ldifde -i -f senderfilter.ldf

The other options aren't needed.
—Serdar Yegulalp, tip author

******************************************

When I use ldifde -i -f senderfilter.ldf, I get the following messages:

Connecting to "server.domain.com"

Logging in as current user using SSPI

Importing directory from file "senderfilter.ldf"

Loading entries

There is a syntax error in the input file. Failed on line 1. The last token starts with '"'.
0 entries modified successfully. An error has occurred in the program
No log files were written. In order to generate a log file, please specify the log file path via the -j option.

Any help would be great.
—Ryan J.

******************************************

It's possible that the exported file was edited and then saved, but its codepage (UTF-8 vs. ASCII) was not retained when it was saved. Perhaps you should try using a different text editor and see if that helps.
—Serdar Yegulalp, tip author

Do you have comments on this tip? Let us know.

Please let others know how useful this tip was via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a nifty thank-you gift.

Rate this Tip
To rate tips, you must be a member of SearchExchange.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Microsoft Exchange Server Administration Tools
An introduction to the Exchange Remote Connectivity Analyzer tool
Prevent Microsoft Outlook 2007 from hanging when forwarding email
Testing Unified Messaging connectivity in Exchange 2007
Microsoft Exchange Server 2007 performance tutorial
How to custom-configure a Microsoft Outlook 2007 install using OCT
Top Exchange Server performance monitoring and troubleshooting tools
Search and index Microsoft Outlook 2007 public folders
Executing an .MSP customization file in Microsoft Outlook 2007
Using the NTBackup tool for Exchange Server backup and recovery
Tools to bulk modify Active Directory users in Exchange Server 2003
Microsoft Exchange Server Administration Tools Research

Microsoft Exchange Server 2003
Remove Exchange 2003 objects from AD to install Exchange 2010
Leapfrogging from Exchange 2003 to Exchange 2010
Top 5 Exchange ActiveSync tips
Exchange Mailbag: POP3 settings and Outlook issues
Migrating to Exchange 2007 with correct permissions
Problems receiving email from outside a Exchange Server 2003 domain
Exchange admins: Is it time to rethink your email address policy?
Exchange Server 2003 collects email from only specific POP3 domains
Changing email address formats in Exchange Server 2003
Should you remove .STM files from Exchange Server 2003?
Microsoft Exchange Server 2003 Research

Microsoft Exchange Server Permissions
Exchange users receiving email addressed to legacy users
Restrict access to Outlook Web Access via Exchange System Manager
Why you should secure Exchange 2007 using administrative policies
Editing Exchange Server public folder permissions
Can't delete old Microsoft Outlook public folders
Why can't I grant users permissions to an Exchange public folder?
Exchange public folder calendar can't be opened in Microsoft Outlook
Grant or deny permissions to access a user's Exchange 2007 mailbox
Set Outlook calendar permissions for group to view private meetings
Exchange Admin 101: Exchange 2003 and Exchange 2007 admin privileges

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Remote Installation Service  (SearchExchange.com)
TCPMAN  (SearchExchange.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts