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
Third-party Exchange Server 2007 backup and restore tools
Customizing an Outlook Web Access 2003 email signature
Tool exports messages from Microsoft Outlook to Unix .EML file format
Monitor mail flow with the Exchange Server 2007 Queue Viewer tool
Use Performance Monitor to detect Exchange 2003 message queue problems
Migrating antispam settings from Exchange 2003 to Exchange 2007
An affordable Exchange Server database backup software option for SMBs
How to set up Remote Desktop for Exchange Server administration
Solve server problems with the Exchange Troubleshooting Assistant tool
Monitor and search Exchange mailboxes for music and video files
Microsoft Exchange Server Administration Tools Research

Microsoft Exchange Server 2003
Repairing damaged OWA virtual directories in Exchange Server 2003
Configure a mobile device to receive POP3 email from Exchange Server
Customizing an Outlook Web Access 2003 email signature
Why Exchange ActiveSync fails with NAT firewalls
Is it time to upgrade users' Windows Mobile devices?
Top 10 Microsoft Exchange Server 2003 registry hacks
Use Performance Monitor to detect Exchange 2003 message queue problems
How to set up email disclaimers on a single, back-end Exchange server
How to customize OWA authentication logon in Exchange Server 2003
Can a deleted transaction log be restored in Exchange Server 2003?
Microsoft Exchange Server 2003 Research

Microsoft Exchange Server Permissions
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
Selectively set email permissions for Exchange groups
Public folder permissions fail in Exchange mixed mode
Configure admin rights to access Exchange 2003 mailbox
Share a user's calendar without giving access to the entire mailbox
How to prevent a user from moving an Exchange Server shared calendar to personal mailbox
Creating an ethical firewall in Exchange Server 2007

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.

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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