How do I import email filters from one server to another

Mike Lima

Verified User
Joined
May 6, 2015
Messages
13
I am migrating everything from one CentOS server to another, both using DirectAdmin.

I would like to migrate the filters every server is using.

How do I do that?
 
I mean e-mail account filters: User Level > domain > SPAM Filters.

I already transferred the servers but the filters are not there.
 
I've checked a tar.gz backup on my server and I see backup/domain.com/email/email.conf file in it, and it contains all the filters set on my domain. Do you have it in your backups?
 
Thanks but you are not understanding my point. I did not use DirectAdmin migration when I migrated these servers. I simply copied files that were on public_html folders from all domains I had, from one server to another. For that reason I have no filters now.

Also, directAdmin will not let me simply copy filters from /etc/virtual/domain/filter from one domain to the other. Won't work.

So the question is: how do I do it now?
 
I don't know why you did not use Directadmin's functionality to migrate your users, and don't know why you did not specify it in your posts.

You can copy content of files:

/etc/virtual/domain.com/filter
/etc/virtual/domain.com/filter.conf

to any other domain, and it should work, and you should see filters in Directadmin web interface and Exim should read and respect it, unless you ruin file permissions.
 
Back
Top