亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sendmail2vpopmail.pl

?? 相當(dāng)優(yōu)秀的 UNIX 進(jìn)程管理工具
?? PL
?? 第 1 頁 / 共 2 頁
字號:
#!/usr/bin/perl# USE AT YOUR OWN RISK!!! Sendmail2Vpopmail.pl v0.0.4  Date:21.07.2003## v0.0.2	* Fixed the bug in chmod/chown not working and default forwards#                 limit not assigned.# v0.0.3	* Fixed the bug of creating aliases/forwards with . inside# v0.0.4	* Fixed the bug of creating aliases/forwards with capital letters## This script "should" convert sendmail users including users from virtusertable# files to vpopmail. It only works for vpopmail installations which DOES NOT# utilize LARGE_SITE. Although it would be trivial to include large site support.# Script also can read the system quota limits for the directory where the mail# of users is located and transfer it to vpopmail system## FEATURES## * Supports converting system quotas# * Supports setting a minimum quota for users with or without quota# * Supports setting a default quota if system quota is not used#   or if a user doesnt have system quota# * Supports virtusertable file# * Supports setting QmailAdmin and vQadmin limits# * Supports system traditional system mail spool directory or#   if the mail is stored in user directory.# * Supports processing of password file for a default domain name#   for the users which do not exist in virtusertable# * Suports creating aliases or forwards from virtusertable file for#   users whouse virtual username is not same with system username# * Supports putting all users to default domain without processing#   virtusertable file# * Supports creating duplicate accounts in default domain for the #   users already processed in virtusertable file# * Supports processing of alias file# * Works with DES or MD5 passwords on FreeBSD## TODO## * Script could log its actions...# * LARGE_SITE support...# * Script could support aliases file better...# * Cleaning variables!## BUGS## * There is no simple way to know (at least for me) the domain's directory#   path in vpopmail system. This script is just assuming that since postmaster#   is the first account to be created, it must be in the domain's first#   level. Then extracts one directory and finds the domain directory.# * If a username is aliased to aliased alias then this wont work.#   If somebody knows how to fix this then please contact me!# * Too many variables used...# * If a username is under multiple virtual domains, then it wont be#   created for the other domains. (unless duplicate is selected?)## NOTES## * Be sure that the quotas are enabled if you mount your users directory#   with NFS or similar. I did this mistake and no quotas were processed!# * Be sure that you disable debugging sleep times to 0 otherwise it will#   take long long time to process all your users.# # For any comments or if you add new features, please contact with me.# Evren Yurtesen <yurtesen@ispro.net.tr>## I have tested this script on a FreeBSD system with about 10000 users with# quotas and the mail files stored on user directories. The rest is untested!# So if you have any experiences please write!#there is no doubt these modules MUST be installed in your system! :)use DBI;use Quota;# debuglevel: increase the number for more and more messages# currently only 0-10-20 levels exist$DEBUG=0;#waiting time after a debug message$SLEEPTIME=1;#system alias file#if an empty file is given then it will be ignored#(/dev/null would suffice perhaps)#it is needed if you have been using alias file in#conjunction with virtusertable file. For example#if you have this in your virtusertable file#abc@abc.com                    abc#and in your alias file#abc:   abc1,abc2,abc3$ALIASFILE="/etc/aliases";#$ALIASFILE="/dev/null";#system virtusertable file#if an empty file is given then all users in password file #will be added to defaultdomain (/dev/null would suffice)$VIRTFILE="virtusertable";#$VIRTFILE="/dev/null";#do you want to create all users in password file, also in the#default domain? even if they were previously created because#they exist in virtusertable file? if set to 1 then duplicates#will be created$DUPLICATE=0;#FreeBSD password file (might work for Linux shadow?)a$PASSFILE="/etc/master.passwd";#do you want to use system quota? if enabled then the script#will find the hard limit of the user.#the inode limit is not processed!#to disable, set to 0$SYSTEMQUOTA=1;#default quota for all moved users (in bytes) or if SYSTEMQUOTA#is set, then this effects the users who doesnt have quota if#DEFAULTQUOTA is set to 0 then the users wont have quota if#SYSTEMQUOTA is also disabled. If SYSTEMQUOTA is enabled then the#users who doesnt have system quotas will not have quota$DEFAULTQUOTA="10000000S";#well considering the hard drive technology is advancing quite fast,#you might want to increase the minimum quota for your users.#lets say if they have a quota of 6000kbyte then you can increase#it to 10000kbyte if MINQUOTA is set to 10000.#if the user has 12000kbyte then it wont effect anything#if set to 0 then it wont have effect (obviously)#if you are not checking SYSTEMQUOTA then MINQUOTA does not have#any effect$MINQUOTA="10000";#minimum and maximum userid's while processing the password file#this is required so that you wont process root account etc.#accidentally and make an email address with root password!#it wouldnt be nice :p$MINUID=100;$MAXUID=60000;#VPOPMAIL USER/GROUP$VPOPMAILUSER="vpopmail";$VPOPMAILGROUP="vchkpw";#default domain limits for qmailadmin etc. will have this quotas etc.#a value of 0 disables that functionality.$DEFAULTDOMUSERLIMIT="20";$DEFAULTALIASLIMIT="100";$DEFAULTFORWARDSLIMIT="5";$DEFAULTAUTORESPONDERLIMIT="0";$DEFAULTMAILLISTLIMIT="0";$DEFAULTDOMQUOTA="10000000S";#are you using spool directory 0 or user homedirs 1 to store mail?$SPOOL=0;#system mail spool directory (do not set it if user inboxes are in their homedirs)!#$SYSDIR="/var/spool/mail";#inbox file (set it to location of inbox of user inside his directory if user inboxes#are in their homedirs);#$INBOX=$sysuname; #sets the user INBOX name to his username$INBOX="mail/INBOX";#the default vpopmail directory#the domains directory and bin directory must be inside!$VPOPMAILHOMEDIR="/usr/local/vpopmail";#default domain for users which are not in virtusertable#if set to "none" only users in virtusertable is processed.#be aware that it is not possible to process a single domain#excluding the users in virtusertable file without processing#the virtusertable file$DEFAULTDOMAIN="mydomain.net";#default postmaster password for all domains$POSTMASTERPASSWORD="mypassword";#sql settings$SQL_DATABASE="vpopmail";$SQL_SERVER="localhost";$SQL_USERNAME="vpopmail";$SQL_PASSWORD="mypassword";#configuration ends here-----------------------------------------------#open virtusertable fileopen(MYVIRTFILE,"< $VIRTFILE") or die "I could not open $VIRTFILE exiting ....";#open password file and put into an array, since we will use this MANY timesopen(MYPASSFILEH,"< $PASSFILE") or die "I could not open $PASSFILE exiting ....";@MYPASSFILE=<MYPASSFILEH>;close (MYPASSFILE);#open alias file and put into an array, since we will use this MANY times   open(MYALIASFILEH,"< $ALIASFILE") or die "I could not open $ALIASFILE exiting ....";@MYALIASFILE=<MYALIASFILEH>;close (MYALIASFILEH);#connect to database...$dbh = DBI->connect("DBI:mysql:$SQL_DATABASE:$SQL_SERVER","$SQL_USERNAME","$SQL_PASSWORD")    or die "I could not connect $SQL_DATABASE at $SQL_SERVER with $SQL_USERNAME identified by $SQL_PASSWORD";#reset some variables, just to be sure :)$countalias=0;$countdefaultdomain=0;$countforward=0;$countuser=0;$domaindone=0;$userdone=0;$samevirtsys=0;#Go through the virtusertable filewhile( $line=<MYVIRTFILE> ) {  chomp($line);  #just skip the lines which doesnt have any meaning for us...  if ($line =~ /@/ && ! ($line =~ /^#/ ) ) {    #parse the virtusertable and find virtusername, virtuserdomain, systemusername    @values=split(/[\ \t]+/,$line);    $values[0] =~ s/^\s+|\s+$//g;    $values[1] =~ s/^\s+|\s+$//g;    @values1=split(/@/,$values[0]);    #put virtuser values to variables    $virtuname=$values1[0];    $domain=$values1[1];    $sysuname=$values[1];    #detect if we already processed some stuff in a previous run...    foreach $elem (@donedom) {      if($elem eq $domain) {        $domaindone=1;      }    }    foreach $elem (@doneuser) {      if($elem eq $sysuname) {        $userdone=1;      }    }    #do not do anything for stuff we wont need    if ( $sysuname =~ /error:/ || $virtuname eq "") {      if($DEBUG >= 20) {        print("Not searching default user password for domain $domain. Simply needless... \n");        sleep($SLEEPTIME);      }    } else {      &createvpopmailuser($sysuname);      &processalias;      &createaliasforward;    }  }}close (MYVIRTFILE);#process the default domainprint("\n\nProcessing default domain $DEFAULTDOMAIN \n");print("It might take a while. You can monitor your SQL \n");print("database or vpopmail domains directory to see \n");print("what is going on \n\n\n");$domain=$DEFAULTDOMAIN;&createvpopmailuser("PROCESS_WHOLE_PASSWORD_FILE");print ("Setting user/group owners and access rights\n");`chown -R $VPOPMAILUSER:$VPOPMAILGROUP $VPOPMAILHOMEDIR/domains`;`chmod -R go-rwx $VPOPMAILHOMEDIR/domains`;print ("Number of domains processed:\t\t\t\t",$#donedom + 1,"\n");print ("Number of virtusers processed:\t\t\t\t",$#doneuser + 1,"\n");print ("Number of system users processed:\t\t\t",$#doneuser + 1 + $countvpopuser,"\n");if ($DUPLICATE ne 0) {  print ("Number of default domain users processed:\t\t",@doneuser1 + 1,"\n");} else {  print ("Number of default domain users processed:\t\t",$countdefaultdomain,"\n");}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品中文字幕在线观看| 亚洲欧洲国产专区| 成人免费av资源| 亚洲高清免费一级二级三级| 久久九九99视频| 欧美精品九九99久久| 成人av网站免费观看| 日本在线不卡视频| 亚洲黄色av一区| 久久精品视频一区二区| 欧美高清视频在线高清观看mv色露露十八 | 久久不见久久见免费视频7| 亚洲精品视频在线看| 国产亚洲精品超碰| 91精品国产综合久久香蕉麻豆| 成人免费黄色在线| 国产成a人无v码亚洲福利| 日本大胆欧美人术艺术动态 | **网站欧美大片在线观看| 9191国产精品| 在线观看一区日韩| 972aa.com艺术欧美| 国产成人av一区二区| 精品中文字幕一区二区小辣椒| 午夜精品福利久久久| 一区二区三区四区在线免费观看| 国产精品色哟哟网站| 天天做天天摸天天爽国产一区| 国产精品久久久久久久久免费樱桃| 久久综合资源网| 2023国产精品自拍| 精品久久久久久久久久久久久久久久久 | 亚洲青青青在线视频| 中文字幕精品综合| 亚洲国产激情av| 国产亚洲欧美日韩在线一区| 2020国产精品久久精品美国| 精品99一区二区| 久久伊人中文字幕| 国产亚洲一本大道中文在线| 久久久777精品电影网影网| 久久精品免视看| 欧美国产日产图区| 国产精品第一页第二页第三页| 国产三级一区二区| 中文字幕欧美国产| 亚洲欧洲99久久| 一区二区三区在线观看视频| 亚洲黄色在线视频| 午夜精品久久久久影视| 五月婷婷综合激情| 蜜桃久久精品一区二区| 久久精品久久综合| 国产精品456| bt7086福利一区国产| 色一情一乱一乱一91av| 欧美日韩另类一区| 日韩欧美成人一区| 久久久久久久综合| 亚洲欧美韩国综合色| 亚洲综合在线五月| 日本三级韩国三级欧美三级| 美女一区二区视频| 大美女一区二区三区| 色婷婷精品久久二区二区蜜臀av| 欧美日韩一区二区电影| 精品久久五月天| 亚洲丝袜美腿综合| 日本视频免费一区| 成人免费视频视频| 777xxx欧美| 国产清纯在线一区二区www| 亚洲欧美日韩系列| 免费欧美日韩国产三级电影| 成人av资源在线观看| 欧美午夜理伦三级在线观看| 26uuu另类欧美亚洲曰本| 一区二区在线观看不卡| 久久疯狂做爰流白浆xx| www.欧美.com| 日韩精品中文字幕在线一区| 国产精品久久久久久久久免费樱桃 | 国产在线精品一区二区| 在线免费av一区| 精品福利av导航| 一区二区三区**美女毛片| 久久99日本精品| 色一情一乱一乱一91av| 久久网站热最新地址| 亚洲一区二区三区视频在线播放| 激情欧美一区二区三区在线观看| 色婷婷香蕉在线一区二区| 精品对白一区国产伦| 亚洲一二三专区| 成人妖精视频yjsp地址| 日韩免费高清视频| 一区二区三区欧美日韩| 国产suv精品一区二区6| 欧美一区二区啪啪| 洋洋成人永久网站入口| 国产成人亚洲综合a∨猫咪| 欧美剧情片在线观看| 最好看的中文字幕久久| 韩国成人精品a∨在线观看| 欧美人xxxx| 一区二区免费在线播放| 成人福利视频在线| 日韩免费电影网站| 日本女优在线视频一区二区| 一本色道久久综合亚洲91| 欧美国产日本韩| 国产一区二区0| 日韩专区欧美专区| 色婷婷综合久久久久中文一区二区 | **欧美大码日韩| 成人妖精视频yjsp地址| 国产午夜精品一区二区三区嫩草| 日本欧美加勒比视频| 欧美乱熟臀69xxxxxx| 亚洲一区在线播放| 色老综合老女人久久久| 亚洲男人天堂av网| 91性感美女视频| 亚洲欧美中日韩| 成人免费毛片高清视频| 国产精品网站在线观看| 国产成人在线免费| 国产亚洲午夜高清国产拍精品| 国产在线国偷精品免费看| 精品成人私密视频| 国产一区视频在线看| 精品乱码亚洲一区二区不卡| 蜜臀av亚洲一区中文字幕| 欧美电影精品一区二区| 韩国成人福利片在线播放| 欧美xxxx老人做受| 国产精品中文字幕欧美| 国产欧美精品一区aⅴ影院| 国产宾馆实践打屁股91| 国产精品天干天干在线综合| 不卡一区中文字幕| 亚洲桃色在线一区| 在线亚洲人成电影网站色www| 一区二区三区中文字幕| 欧美日韩精品一二三区| 同产精品九九九| 日韩欧美亚洲国产精品字幕久久久| 日本vs亚洲vs韩国一区三区二区 | 色婷婷av一区二区三区大白胸| 一区二区三区免费看视频| 欧美日本不卡视频| 久久精品国产亚洲a| 国产欧美日韩在线| 色呦呦国产精品| 亚洲国产一区二区视频| 欧美一级二级三级乱码| 国产在线精品免费| 亚洲视频网在线直播| 欧美精品久久久久久久多人混战 | 国产一区二区在线观看免费| 亚洲国产高清在线观看视频| 色噜噜偷拍精品综合在线| 日产国产欧美视频一区精品| 久久精品欧美日韩精品| 在线观看亚洲一区| 麻豆精品国产传媒mv男同| 国产欧美日韩视频在线观看| 色呦呦国产精品| 国产揄拍国内精品对白| 亚洲卡通欧美制服中文| 日韩欧美一区中文| 99视频在线精品| 免费看欧美美女黄的网站| 中文字幕av不卡| 777a∨成人精品桃花网| 国产成人亚洲精品狼色在线| 亚洲一区二区四区蜜桃| 久久精品欧美一区二区三区不卡| 91成人在线精品| 国产盗摄视频一区二区三区| 亚洲综合成人在线| 久久久久99精品国产片| 欧美色大人视频| 成人涩涩免费视频| 日韩成人伦理电影在线观看| 综合久久久久久久| 精品国产一区久久| 欧美最新大片在线看 | 不卡的电影网站| 日本视频一区二区| 夜夜嗨av一区二区三区网页 | 91麻豆免费看| 精品在线观看视频| 亚洲午夜激情av| 国产精品全国免费观看高清| 欧美一级黄色大片| 在线精品视频免费播放| 成人丝袜18视频在线观看| 久久99精品国产麻豆婷婷洗澡| 亚洲国产视频一区|