Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.186
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
dovecot /
wiki /
[ HOME SHELL ]
Name
Size
Permission
Action
ACL.txt
11.23
KB
-rw-r--r--
AixPluginsSupport.txt
5.29
KB
-rw-r--r--
AttachmentIndicator.txt
1.13
KB
-rw-r--r--
AuthDatabase.CheckPassword.txt
9.54
KB
-rw-r--r--
AuthDatabase.Dict.txt
10.55
KB
-rw-r--r--
AuthDatabase.LDAP.AuthBinds.tx...
3.28
KB
-rw-r--r--
AuthDatabase.LDAP.PasswordLook...
4.09
KB
-rw-r--r--
AuthDatabase.LDAP.Userdb.txt
6.92
KB
-rw-r--r--
AuthDatabase.LDAP.txt
2.86
KB
-rw-r--r--
AuthDatabase.Lua.txt
9.03
KB
-rw-r--r--
AuthDatabase.Passwd.txt
1.9
KB
-rw-r--r--
AuthDatabase.PasswdFile.txt
6.22
KB
-rw-r--r--
AuthDatabase.SQL.txt
8.53
KB
-rw-r--r--
AuthDatabase.VPopMail.txt
6.84
KB
-rw-r--r--
AuthDatabase.txt
820
B
-rw-r--r--
Authentication.Caching.txt
4.56
KB
-rw-r--r--
Authentication.Kerberos.txt
8.73
KB
-rw-r--r--
Authentication.MasterUsers.txt
10.96
KB
-rw-r--r--
Authentication.Mechanisms.Dige...
3.18
KB
-rw-r--r--
Authentication.Mechanisms.NTLM...
1.22
KB
-rw-r--r--
Authentication.Mechanisms.Winb...
1.48
KB
-rw-r--r--
Authentication.Mechanisms.txt
3.84
KB
-rw-r--r--
Authentication.MultipleDatabas...
3.59
KB
-rw-r--r--
Authentication.PasswordSchemes...
10.72
KB
-rw-r--r--
Authentication.Penalty.txt
1.72
KB
-rw-r--r--
Authentication.Policy.txt
9.31
KB
-rw-r--r--
Authentication.RestrictAccess....
2.76
KB
-rw-r--r--
Authentication.txt
1.77
KB
-rw-r--r--
BasicConfiguration.txt
6.24
KB
-rw-r--r--
Chrooting.txt
2.77
KB
-rw-r--r--
Clients.NegativeUIDs.txt
1.96
KB
-rw-r--r--
Clients.txt
5.48
KB
-rw-r--r--
CompilingSource.txt
13.52
KB
-rw-r--r--
ConfigFile.txt
10.7
KB
-rw-r--r--
Debugging.Authentication.txt
3.63
KB
-rw-r--r--
Debugging.ProcessTracing.txt
1.32
KB
-rw-r--r--
Debugging.Rawlog.txt
5.1
KB
-rw-r--r--
Debugging.Thunderbird.txt
2.12
KB
-rw-r--r--
Design.Arrays.txt
3.82
KB
-rw-r--r--
Design.AuthProcess.txt
16.13
KB
-rw-r--r--
Design.AuthProtocol.txt
8.31
KB
-rw-r--r--
Design.Buffers.txt
2.75
KB
-rw-r--r--
Design.Code.txt
10.01
KB
-rw-r--r--
Design.Dcrypt.txt
4.15
KB
-rw-r--r--
Design.DoveadmProtocol.HTTP.tx...
4.13
KB
-rw-r--r--
Design.DoveadmProtocol.txt
3.68
KB
-rw-r--r--
Design.Dsync.txt
4.94
KB
-rw-r--r--
Design.Events.txt
13.35
KB
-rw-r--r--
Design.Indexes.Cache.txt
6.11
KB
-rw-r--r--
Design.Indexes.MailIndexApi.tx...
2.07
KB
-rw-r--r--
Design.Indexes.MainIndex.txt
10.34
KB
-rw-r--r--
Design.Indexes.TransactionLog....
11.45
KB
-rw-r--r--
Design.Indexes.txt
2.99
KB
-rw-r--r--
Design.InputStreams.txt
10.71
KB
-rw-r--r--
Design.Lua.txt
6.48
KB
-rw-r--r--
Design.MailProcess.txt
215
B
-rw-r--r--
Design.Memory.txt
9.25
KB
-rw-r--r--
Design.OutputStreams.txt
4.81
KB
-rw-r--r--
Design.ParameterForwarding.txt
2.17
KB
-rw-r--r--
Design.Plugins.txt
2.44
KB
-rw-r--r--
Design.Processes.txt
6.59
KB
-rw-r--r--
Design.Storage.ErrorHandling.t...
3.03
KB
-rw-r--r--
Design.Storage.Mail.txt
4.82
KB
-rw-r--r--
Design.Storage.MailNamespace.t...
3.93
KB
-rw-r--r--
Design.Storage.MailStorage.txt
2.07
KB
-rw-r--r--
Design.Storage.MailUser.txt
1.17
KB
-rw-r--r--
Design.Storage.Mailbox.Save.tx...
2.69
KB
-rw-r--r--
Design.Storage.Mailbox.Search....
4.44
KB
-rw-r--r--
Design.Storage.Mailbox.Sync.tx...
6.11
KB
-rw-r--r--
Design.Storage.Mailbox.Transac...
2.83
KB
-rw-r--r--
Design.Storage.Mailbox.txt
1.61
KB
-rw-r--r--
Design.Storage.MailboxList.txt
7.66
KB
-rw-r--r--
Design.Storage.Plugins.txt
5.24
KB
-rw-r--r--
Design.Strings.txt
3.07
KB
-rw-r--r--
Design.txt
2.42
KB
-rw-r--r--
Dict.txt
1.6
KB
-rw-r--r--
Dictionary.txt
9.35
KB
-rw-r--r--
Director.txt
13.14
KB
-rw-r--r--
DomainLost.txt
2.45
KB
-rw-r--r--
Errors.ChgrpNoPerm.txt
1.4
KB
-rw-r--r--
Events.txt
6.68
KB
-rw-r--r--
FindMailLocation.txt
2.6
KB
-rw-r--r--
FinishBasicConfiguration.txt
454
B
-rw-r--r--
HAProxy.txt
3.56
KB
-rw-r--r--
HowTo.AntispamWithSieve.txt
8.8
KB
-rw-r--r--
HowTo.EximAndDovecotSASL.txt
1.47
KB
-rw-r--r--
HowTo.ImapcProxy.txt
6.05
KB
-rw-r--r--
HowTo.PopBSMTPAndDovecot.txt
14.19
KB
-rw-r--r--
HowTo.PopRelay.txt
5.24
KB
-rw-r--r--
HowTo.PostfixAndDovecotSASL.tx...
4.02
KB
-rw-r--r--
HowTo.Rootless.txt
3.79
KB
-rw-r--r--
HowTo.SimpleVirtualInstall.txt
5.93
KB
-rw-r--r--
HowTo.WriteConfiguration.txt
1.54
KB
-rw-r--r--
HowTo.txt
4.49
KB
-rw-r--r--
IMAPServer.Hibernation.txt
1.61
KB
-rw-r--r--
IMAPServer.txt
623
B
-rw-r--r--
ImapMetadata.txt
842
B
-rw-r--r--
IndexFiles.txt
8.5
KB
-rw-r--r--
LDA.Exim.txt
5.43
KB
-rw-r--r--
LDA.Indexing.txt
2.05
KB
-rw-r--r--
LDA.Postfix.txt
10.85
KB
-rw-r--r--
LDA.Qmail.txt
1.15
KB
-rw-r--r--
LDA.Sendmail.txt
4.24
KB
-rw-r--r--
LDA.txt
12.6
KB
-rw-r--r--
LMTP.Exim.txt
5.24
KB
-rw-r--r--
LMTP.txt
4.15
KB
-rw-r--r--
Logging.txt
7.03
KB
-rw-r--r--
LoginProcess.txt
4.93
KB
-rw-r--r--
MDA.txt
439
B
-rw-r--r--
MTA.txt
2.56
KB
-rw-r--r--
MailLocation.LocalDisk.txt
1.77
KB
-rw-r--r--
MailLocation.Maildir.txt
6.08
KB
-rw-r--r--
MailLocation.SharedDisk.txt
2.98
KB
-rw-r--r--
MailLocation.dbox.txt
3.56
KB
-rw-r--r--
MailLocation.mbox.txt
8.5
KB
-rw-r--r--
MailLocation.txt
13.83
KB
-rw-r--r--
MailboxFormat.Cydir.txt
868
B
-rw-r--r--
MailboxFormat.MH.txt
2.61
KB
-rw-r--r--
MailboxFormat.Maildir.txt
18.67
KB
-rw-r--r--
MailboxFormat.dbox.txt
11.63
KB
-rw-r--r--
MailboxFormat.imapc.txt
6.08
KB
-rw-r--r--
MailboxFormat.mailstore.txt
678
B
-rw-r--r--
MailboxFormat.mbox.txt
13.45
KB
-rw-r--r--
MailboxFormat.mbx.txt
1.08
KB
-rw-r--r--
MailboxFormat.txt
13.69
KB
-rw-r--r--
MailboxSettings.txt
3.26
KB
-rw-r--r--
MboxChildFolders.txt
9.19
KB
-rw-r--r--
MboxLocking.txt
2.56
KB
-rw-r--r--
MboxProblems.txt
6
KB
-rw-r--r--
Migration.BincIMAP.txt
8.86
KB
-rw-r--r--
Migration.Courier.txt
3.48
KB
-rw-r--r--
Migration.Cyrus.txt
3.5
KB
-rw-r--r--
Migration.Dsync.txt
5.94
KB
-rw-r--r--
Migration.Gmail.txt
3.89
KB
-rw-r--r--
Migration.Linuxconf.txt
2.6
KB
-rw-r--r--
Migration.MailFormat.txt
10.98
KB
-rw-r--r--
Migration.Online.txt
3.08
KB
-rw-r--r--
Migration.Teapop.txt
1.96
KB
-rw-r--r--
Migration.UW.txt
5.34
KB
-rw-r--r--
Migration.Vm-pop3d.txt
1.75
KB
-rw-r--r--
Migration.txt
7.27
KB
-rw-r--r--
MissingMailboxes.txt
1.95
KB
-rw-r--r--
Mountpoints.txt
2.11
KB
-rw-r--r--
NFS.txt
6.9
KB
-rw-r--r--
Namespaces.txt
13.47
KB
-rw-r--r--
OSCompatibility.txt
1.6
KB
-rw-r--r--
POP3Server.txt
7.19
KB
-rw-r--r--
PasswordDatabase.BSDAuth.txt
205
B
-rw-r--r--
PasswordDatabase.ExtraFields.A...
1.63
KB
-rw-r--r--
PasswordDatabase.ExtraFields.H...
2.76
KB
-rw-r--r--
PasswordDatabase.ExtraFields.N...
495
B
-rw-r--r--
PasswordDatabase.ExtraFields.N...
989
B
-rw-r--r--
PasswordDatabase.ExtraFields.P...
13.02
KB
-rw-r--r--
PasswordDatabase.ExtraFields.U...
1.03
KB
-rw-r--r--
PasswordDatabase.ExtraFields.t...
4.57
KB
-rw-r--r--
PasswordDatabase.IMAP.txt
1.01
KB
-rw-r--r--
PasswordDatabase.PAM.txt
8.4
KB
-rw-r--r--
PasswordDatabase.Shadow.txt
1.19
KB
-rw-r--r--
PasswordDatabase.Static.txt
869
B
-rw-r--r--
PasswordDatabase.oauth2.txt
5.92
KB
-rw-r--r--
PasswordDatabase.txt
8.45
KB
-rw-r--r--
PerformanceTuning.txt
3.24
KB
-rw-r--r--
Pigeonhole.Installation.txt
4.81
KB
-rw-r--r--
Pigeonhole.ManageSieve.Clients...
3.14
KB
-rw-r--r--
Pigeonhole.ManageSieve.Configu...
11.23
KB
-rw-r--r--
Pigeonhole.ManageSieve.Install...
59
B
-rw-r--r--
Pigeonhole.ManageSieve.Trouble...
9.49
KB
-rw-r--r--
Pigeonhole.ManageSieve.txt
1.26
KB
-rw-r--r--
Pigeonhole.Sieve.Configuration...
7.22
KB
-rw-r--r--
Pigeonhole.Sieve.Configuration...
3.54
KB
-rw-r--r--
Pigeonhole.Sieve.Configuration...
4.78
KB
-rw-r--r--
Pigeonhole.Sieve.Configuration...
29.14
KB
-rw-r--r--
Pigeonhole.Sieve.Examples.txt
15.15
KB
-rw-r--r--
Pigeonhole.Sieve.Extensions.Du...
1.98
KB
-rw-r--r--
Pigeonhole.Sieve.Extensions.Ed...
2.35
KB
-rw-r--r--
Pigeonhole.Sieve.Extensions.In...
1.11
KB
-rw-r--r--
Pigeonhole.Sieve.Extensions.Sp...
5.66
KB
-rw-r--r--
Pigeonhole.Sieve.Extensions.Va...
5.01
KB
-rw-r--r--
Pigeonhole.Sieve.Extensions.Va...
1.07
KB
-rw-r--r--
Pigeonhole.Sieve.Extensions.tx...
569
B
-rw-r--r--
Pigeonhole.Sieve.Plugins.Extda...
5.56
KB
-rw-r--r--
Pigeonhole.Sieve.Plugins.Extpr...
12.88
KB
-rw-r--r--
Pigeonhole.Sieve.Plugins.IMAPF...
2.28
KB
-rw-r--r--
Pigeonhole.Sieve.Plugins.IMAPS...
5.43
KB
-rw-r--r--
Pigeonhole.Sieve.Plugins.Pipe....
6.73
KB
-rw-r--r--
Pigeonhole.Sieve.Plugins.txt
2.49
KB
-rw-r--r--
Pigeonhole.Sieve.Troubleshooti...
6.43
KB
-rw-r--r--
Pigeonhole.Sieve.Usage.txt
6.21
KB
-rw-r--r--
Pigeonhole.Sieve.txt
30.59
KB
-rw-r--r--
Pigeonhole.txt
1.8
KB
-rw-r--r--
Plugins.Apparmor.txt
1.15
KB
-rw-r--r--
Plugins.Autocreate.txt
902
B
-rw-r--r--
Plugins.CharsetAlias.txt
712
B
-rw-r--r--
Plugins.Compress.txt
475
B
-rw-r--r--
Plugins.Expire.txt
13.44
KB
-rw-r--r--
Plugins.FTS.Lucene.txt
3.01
KB
-rw-r--r--
Plugins.FTS.Solr.txt
12.3
KB
-rw-r--r--
Plugins.FTS.Squat.txt
5.92
KB
-rw-r--r--
Plugins.FTS.txt
4.31
KB
-rw-r--r--
Plugins.LastLogin.txt
1.67
KB
-rw-r--r--
Plugins.Lazyexpunge.txt
6.53
KB
-rw-r--r--
Plugins.Listescape.txt
2.35
KB
-rw-r--r--
Plugins.MailCrypt.txt
18.14
KB
-rw-r--r--
Plugins.MailFilter.txt
2.56
KB
-rw-r--r--
Plugins.MailLog.txt
1.82
KB
-rw-r--r--
Plugins.MailboxAlias.txt
1.76
KB
-rw-r--r--
Plugins.Notify.txt
329
B
-rw-r--r--
Plugins.NotifyStatus.txt
2.09
KB
-rw-r--r--
Plugins.PushNotification.txt
16.19
KB
-rw-r--r--
Plugins.QuotaClone.txt
1.49
KB
-rw-r--r--
Plugins.Snarf.txt
1.88
KB
-rw-r--r--
Plugins.Stats.txt
59
B
-rw-r--r--
Plugins.Trash.txt
1.5
KB
-rw-r--r--
Plugins.VarExpandCrypt.txt
1.6
KB
-rw-r--r--
Plugins.Virtual.txt
9.96
KB
-rw-r--r--
Plugins.Welcome.txt
812
B
-rw-r--r--
Plugins.Zlib.txt
4.6
KB
-rw-r--r--
Plugins.txt
4.99
KB
-rw-r--r--
PostLoginScripting.txt
8.62
KB
-rw-r--r--
PreAuth.txt
932
B
-rw-r--r--
QuickConfiguration.txt
6.55
KB
-rw-r--r--
Quota.Configuration.txt
18.49
KB
-rw-r--r--
Quota.Count.txt
1.56
KB
-rw-r--r--
Quota.Dict.txt
6.98
KB
-rw-r--r--
Quota.Dirsize.txt
695
B
-rw-r--r--
Quota.FS.txt
4.37
KB
-rw-r--r--
Quota.Maildir.txt
2.29
KB
-rw-r--r--
Quota.txt
4.78
KB
-rw-r--r--
Replication.txt
15.78
KB
-rw-r--r--
RunningDovecot.txt
5.85
KB
-rw-r--r--
SSL.CertificateClientImporting...
1.55
KB
-rw-r--r--
SSL.CertificateCreation.txt
4.69
KB
-rw-r--r--
SSL.DovecotConfiguration.txt
21.3
KB
-rw-r--r--
SSL.SNIClientSupport.txt
696
B
-rw-r--r--
SSL.txt
3.41
KB
-rw-r--r--
Sasl.txt
1.05
KB
-rw-r--r--
SecurityTuning.txt
942
B
-rw-r--r--
Services.txt
19.43
KB
-rw-r--r--
SharedMailboxes.ClusterSetup.t...
1.98
KB
-rw-r--r--
SharedMailboxes.Permissions.tx...
8.06
KB
-rw-r--r--
SharedMailboxes.Public.txt
8.13
KB
-rw-r--r--
SharedMailboxes.Shared.txt
10.53
KB
-rw-r--r--
SharedMailboxes.Symlinks.txt
1.72
KB
-rw-r--r--
SharedMailboxes.txt
750
B
-rw-r--r--
SocketUnavailable.txt
3.71
KB
-rw-r--r--
Statistics.Old.txt
8.54
KB
-rw-r--r--
Statistics.txt
3.73
KB
-rw-r--r--
Submission.txt
8.5
KB
-rw-r--r--
SystemUsers.txt
4.99
KB
-rw-r--r--
TestInstallation.txt
8.61
KB
-rw-r--r--
TestPop3Installation.txt
4.76
KB
-rw-r--r--
TimeMovedBackwards.txt
3.8
KB
-rw-r--r--
Timeouts.txt
2.85
KB
-rw-r--r--
Upgrading.1.0.txt
4.23
KB
-rw-r--r--
Upgrading.1.1.txt
4.33
KB
-rw-r--r--
Upgrading.1.2.txt
2.57
KB
-rw-r--r--
Upgrading.2.0.txt
4.69
KB
-rw-r--r--
Upgrading.2.1.txt
1.87
KB
-rw-r--r--
Upgrading.2.2.txt
2.17
KB
-rw-r--r--
Upgrading.2.3.txt
11.98
KB
-rw-r--r--
Upgrading.txt
1.01
KB
-rw-r--r--
UserDatabase.ExtraFields.txt
4.6
KB
-rw-r--r--
UserDatabase.NSS.txt
1.23
KB
-rw-r--r--
UserDatabase.Prefetch.txt
2.72
KB
-rw-r--r--
UserDatabase.Static.txt
1.58
KB
-rw-r--r--
UserDatabase.txt
5.35
KB
-rw-r--r--
UserIds.txt
6.36
KB
-rw-r--r--
Variables.txt
22.39
KB
-rw-r--r--
VirtualUsers.Home.txt
3.5
KB
-rw-r--r--
VirtualUsers.txt
5.58
KB
-rw-r--r--
WhyDoesItNotWork.txt
5.64
KB
-rw-r--r--
maildrop.txt
3.44
KB
-rw-r--r--
mutt.txt
3.09
KB
-rw-r--r--
uw2dovecot.sh.txt
498
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Migration.BincIMAP.txt
Binc IMAP ========= *WARNING: Badly done migration will cause your IMAP and/or POP3 clients to re-download all mails. Read <Migration.txt> page first carefully.* If you're using only Binc IMAP, it's possible to do a transparent Dovecot migration. Binc IMAP v1.2 and later ------------------------ binc2dovecot.pl attempts to do as perfect migration as possible. Basically it reads Binc's uidlist files from the specified maildir and it's (sub-)folders and generates 'dovecot-uidlist' files out of them. It also converts Binc's subscription file. This script hasn't been tested with Binc IMAP< 1.2. If Binc has been used with the IMAPdir depot format, it need to be converted to Maildir++ with the script IMAPdir2Maildir++ before running binc2dovecot.pl. IMAPdir2Maildir++ ---%<------------------------------------------------------------------------- #!/bin/bash # BINC mailbox definition for the example parameters below # Mailbox { # depot = "IMAPdir", # type = "Maildir", # path = "Maildir", # } # # Parameters: set according to your local system settings # # Path to the IMAPdir IMAPdirName="${1}/Maildir" # Path to the new Maildir++ directory maildirName="${1}/Maildir" # Name used for the inbox with IMAPdir inboxName="INBOX" # the character . is invalid for Maildir++ # What string shall it be replaced with? dotReplacementString="_cdot_" # # Below here nothing should need to be adjusted # # Initialise some variables and settings shopt -s dotglob orgDir=$(pwd) # loop through all file names according to the pattern in $FILES cd $IMAPdirName FILES="*" for file in $FILES do # Skip over Maildir++ directories if [[ ${file:0:1} = "." && -e ${file}/maildirfolder ]] then continue fi # Skip over non-directory file names if [[ ! -d $file ]] then continue fi # Move INBOX contents according to Maildir++ specification if [[ $file = $inboxName ]] then mv ${file}/* $maildirName rmdir $file continue fi # create Maildir++ compliant new folder name newFile=${file//\\\\/\\} newFile=${newFile//\\./$dotReplacementString} newFile=${newFile/#./$dotReplacementString} newFile=.$newFile # rename folder name according to Maildir++ specification & add maildirfolder file mv "$file" "${maildirName}/$newFile" owner=$(stat -c %u "${maildirName}/$newFile") group=$(stat -c %g "${maildirName}/$newFile") touch "${maildirName}/$newFile/maildirfolder" chown $owner:$group "${maildirName}/$newFile/maildirfolder" chmod 600 "${maildirName}/$newFile/maildirfolder" done # Adapt subscriptions file mv .bincimap-subscribed "${maildirName}/.bincimap-subscribed" sed -i "s/\./$dotReplacementString/g" "${maildirName}/.bincimap-subscribed" # Return to original working directory cd $orgDir ---%<------------------------------------------------------------------------- Usage: ./IMAPdir2Maildir++ /path/to/user binc2dovecot.pl ---%<------------------------------------------------------------------------- #!/usr/bin/perl use IO::File; use IO::Dir; use File::stat; use File::Basename; use strict; ### Parameters to adapt to local cofiguration # Name of the Maildir++ directory relative to the path passed as argument my $mailbox = $ARGV[0]."/Maildir"; # Name space used by BINC for private folders, with IMAPdir often = "" our $namespace = "INBOX."; ### Nothing should need to be changed below here our $indent = 0; die("Mailbox doesn't exist") if (!-d $mailbox); parse_mailbox($mailbox); # Sanity check for namespace my $subscriptionsSize = -s $mailbox.'/subscriptions'; if ($subscriptionsSize == 0) { print $/; print $/; print "WARNING: Your new subscriptions file is empty. Are you using the correct namespace? If not re-run script with correct namespace parameter.", $/; } sub parse_mailbox { my ($mailbox) = @_; print " " x $indent, "Parsing ", $mailbox, " ...", $/; $indent += 2; my $mb = IO::Dir->new($mailbox) or die("Unable to open mailbox $mailbox"); while(my $file = $mb->read()) { my $absfile = $mailbox."/".$file; next if ($file eq "." || $file eq ".."); if ($file eq ".bincimap-subscribed" && -f $absfile) { convert_subscribtions($absfile); } elsif ($file eq "bincimap-cache" && -f $absfile) { convert_cache($absfile); } elsif (substr($file, 0, 1) eq "." && -d $absfile && -e $absfile."/maildirfolder") { parse_mailbox($absfile); } } $mb->close(); $indent -= 2; return 1; } sub convert_cache { my ($infile) = @_; my $dir = dirname($infile); my %uids = (); print " " x $indent, "Converting cache...", $/; my $in = IO::File->new("<".$infile) or die("Unable to open cache file $infile"); my ($blockopen, $uid) = (0, 0); my $id = ""; while(my $line = $in->getline()) { if ($line =~ /^\d+\s{$/) { $blockopen = 1; $uid = 0; $id = ""; next; } elsif ($blockopen && $line =~ /^}$/) { $blockopen = 0; next; } elsif ($blockopen && $line =~ /^\t_UID\s=\s(\d+),?$/) { $uid = $1; } elsif ($blockopen && $line =~ /^\t_ID\s=\s"?(.*?)"?,?$/) { $id = $1; } if ($uid > 0 && length($id) > 0) { $uids{$uid} = $id; $uid = 0; $id = ""; next; } } $in->close(); if (scalar(keys(%uids)) <= 0) { print " " x $indent, "Empty uidlist. Skipping...", $/; return 1; } my $uidvalfile = $dir."/bincimap-uidvalidity"; my ($uidvalidity, $uidnext) = (0, 0); die("Error: File $uidvalfile doesn't exist") if (!-f $uidvalfile); $in = IO::File->new("<".$uidvalfile) or die("Unable to open file: $uidvalfile"); while(my $line = $in->getline()) { if ($line =~ /^\t_uidvalidity\s=\s(\d+),?$/) { $uidvalidity = $1; } elsif ($line =~ /^\t_uidnext\s=\s(\d+),?$/) { $uidnext = $1; } } $in->close(); die("Error: either uidnext ($uidnext) or uidvalidity ($uidvalidity) is invalid") if ($uidnext <= 0 || $uidvalidity <= 0); my $version = 1; my $outfile = $dir."/dovecot-uidlist";; my $out = IO::File->new(">".$outfile) or die("Unable to create cache file $outfile"); $out->print($version, " ", $uidvalidity, " ", $uidnext, $/); foreach my $uid (sort{$a <=> $b} (keys(%uids))) { $out->print($uid, " ", $uids{$uid}, $/); } $out->close(); my $stat = stat($infile); chown($stat->uid, $stat->gid, $outfile); chmod(0600, $outfile); return 1; } sub convert_subscribtions { my ($infile) = @_; my $dir = dirname($infile); my @cache = (); print " " x $indent, "Converting subscriptions...", $/; my $in = IO::File->new("<".$infile) or die("Unable to open file: $infile"); while(my $line = $in->getline()) { next if ($line !~ /^$namespace/); $line =~ s/^$namespace?//; $line =~ s/\n$//; $line =~ s/\r$//; $line =~ s/\//\./g; next if (length($line) <= 0); next if (!-d $dir."/.".$line); push(@cache, $line) if (scalar(grep{$_ eq $line}(@cache)) <= 0); } $in->close(); my $outfile = $dir."/subscriptions"; my $out = IO::File->new(">".$outfile) or die("Unable to create subscriptions file: $outfile"); foreach my $subscription (@cache) { $out->print($subscription, $/); } $out->close(); my $stat = stat($infile); chown($stat->uid, $stat->gid, $outfile); chmod(0600, $outfile); return 1; } ---%<------------------------------------------------------------------------- Usage: ./binc2dovecot.pl /path/to/user NOTE: /path/to/user/Maildir MUST exist. If "./Maildir" isn't your default maildir-name, you can edit this at the top of the script. ---%<------------------------------------------------------------------------- Example 1: # find /var/pop -mindepth 1 -maxdepth 1 -type d -exec /path/to/binc2dove.pl {} \; Example 2: # find /usr/local/vpopmail/domains -mindepth 2 -maxdepth 2 -type d -exec /path/to/binc2dove.pl {} \; ---%<------------------------------------------------------------------------- Dovecot configuration --------------------- Binc IMAP by default uses "INBOX/" as the IMAP namespace for private mailboxes. If you want a transparent migration, you'll need to configure Dovecot to use a namespace with "INBOX/" prefix as well. ---%<------------------------------------------------------------------------- mail_location = maildir:~/Maildir namespace { separator = / prefix = INBOX/ inbox = yes } ---%<------------------------------------------------------------------------- Manual conversion ----------------- * Binc's '.bincimap-subscribed' file is compatible with Dovecot's 'subscriptions' file, but you need to remove the "INBOX/" prefixes from the mailboxes. * Binc's 'bincimap-cache + bincimap-uidvalidity' are NOT compatible with Dovecot's 'dovecot-uidlist' file. See file format documention or above script for conversion. * Binc's message flags are compatible with Dovecot (as they are specified by the Maildir specification) (This file was created from the wiki on 2019-06-19 12:42)
Close