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

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

?? sendmail2vpopmail.pl

?? 相當(dāng)優(yōu)秀的 UNIX 進(jìn)程管理工具
?? PL
?? 第 1 頁 / 共 2 頁
字號(hào):
#!/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
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区在线播放相泽| 精品乱人伦一区二区三区| 欧美激情一区二区三区| 国产一区二区在线免费观看| 亚洲精品一区二区三区精华液| 精品一区二区三区影院在线午夜| 久久综合久久综合久久综合| 国产成人免费视频一区| 国产精品情趣视频| 91精彩视频在线观看| 亚洲va天堂va国产va久| 欧美一区二区三区免费观看视频| 开心九九激情九九欧美日韩精美视频电影 | 日韩色视频在线观看| 捆绑紧缚一区二区三区视频| 日本一区二区综合亚洲| 91九色最新地址| 蜜臀av一区二区在线免费观看| 久久久国产一区二区三区四区小说| av在线这里只有精品| 亚洲成人av在线电影| 日韩欧美一卡二卡| 99久久精品国产麻豆演员表| 午夜欧美在线一二页| 国产嫩草影院久久久久| 在线视频中文字幕一区二区| 日韩电影免费在线| 国产精品美女一区二区在线观看| 在线观看视频一区二区| 久久精品72免费观看| 中文字幕亚洲区| 日韩一区二区三| 99在线精品一区二区三区| 免费一级片91| 亚洲三级小视频| 91精品国产一区二区三区蜜臀 | 91一区二区三区在线播放| 视频一区视频二区中文| 中文字幕日韩欧美一区二区三区| 91精品国产综合久久久久久久久久 | 视频一区视频二区中文| 国产精品免费看片| 3d成人h动漫网站入口| 99综合电影在线视频| 另类综合日韩欧美亚洲| 一区二区三区四区视频精品免费| 精品88久久久久88久久久| 91九色02白丝porn| 成人v精品蜜桃久久一区| 日韩av一区二区三区四区| 亚洲欧美福利一区二区| 久久久精品影视| 在线电影院国产精品| 99久久国产综合精品色伊| 国产美女av一区二区三区| 日本成人中文字幕在线视频| 亚洲男人天堂一区| 国产精品女主播在线观看| 337p粉嫩大胆噜噜噜噜噜91av| 欧美日韩电影一区| 91国偷自产一区二区开放时间 | 亚洲成av人影院在线观看网| 综合色天天鬼久久鬼色| 国产欧美1区2区3区| xfplay精品久久| 日韩视频免费观看高清完整版在线观看| 一本色道久久综合精品竹菊| 不卡av在线网| 成人性视频免费网站| 国产成人免费视频网站高清观看视频 | 色综合天天综合在线视频| 成人99免费视频| 大桥未久av一区二区三区中文| 狠狠狠色丁香婷婷综合激情 | 激情综合网天天干| 毛片av一区二区三区| 日av在线不卡| 久久精品国产精品亚洲红杏 | 亚洲午夜在线视频| 亚洲国产裸拍裸体视频在线观看乱了 | 午夜欧美视频在线观看| 婷婷久久综合九色国产成人| 丝袜国产日韩另类美女| 视频一区在线视频| 麻豆精品在线看| 狠狠色丁香婷婷综合久久片| 国产麻豆精品视频| 成人综合在线观看| av在线综合网| 欧美亚洲国产怡红院影院| 欧美视频在线一区| 欧美一区二区三区在线| 欧美成人a在线| 国产女人18毛片水真多成人如厕| 国产精品电影一区二区| 国产精品国产三级国产有无不卡 | 中文子幕无线码一区tr| 17c精品麻豆一区二区免费| 一区二区三区精品| 日韩不卡一区二区三区| 国产揄拍国内精品对白| 99视频精品全部免费在线| 欧日韩精品视频| 91精品国产品国语在线不卡| 精品国产免费久久| 亚洲欧美一区二区三区极速播放| 亚洲一级电影视频| 久久99久久久久| 不卡在线观看av| 欧美久久久久久久久中文字幕| 精品国产乱码久久久久久图片| 国产欧美日韩在线视频| 亚洲午夜久久久久久久久久久| 日本不卡一区二区三区| 丁香五精品蜜臀久久久久99网站| 在线观看www91| 日韩一卡二卡三卡四卡| 中文字幕精品—区二区四季| 婷婷激情综合网| 成人app网站| 精品免费一区二区三区| 一区二区三区高清在线| 精品在线观看免费| 在线精品视频免费观看| 精品国产乱码久久久久久久| 亚洲另类在线视频| 国产精品主播直播| 欧美精品第一页| 国产精品国产精品国产专区不蜜| 日本91福利区| 在线精品观看国产| 国产精品免费视频一区| 蜜桃av噜噜一区二区三区小说| 91网站在线播放| 久久日韩精品一区二区五区| 一区二区三区波多野结衣在线观看| 乱中年女人伦av一区二区| 91老师国产黑色丝袜在线| 17c精品麻豆一区二区免费| 国模少妇一区二区三区| 欧美性高清videossexo| 亚洲欧美怡红院| 国产一区二区三区在线观看免费| 欧美日韩国产精选| 亚洲免费av观看| 丰满放荡岳乱妇91ww| 337p粉嫩大胆噜噜噜噜噜91av| 午夜精品一区二区三区免费视频 | 国产精品素人视频| 国产在线精品一区在线观看麻豆| 欧美亚洲国产bt| 亚洲欧美福利一区二区| 成人美女视频在线看| 久久婷婷久久一区二区三区| 免费精品视频在线| 欧美精品视频www在线观看| 亚洲综合免费观看高清完整版在线| 成人性色生活片免费看爆迷你毛片| 日韩一区二区三区在线| 五月天激情小说综合| 在线观看日韩精品| 一区二区三区久久| 在线影视一区二区三区| 亚洲伦理在线精品| 91丨九色丨蝌蚪丨老版| 亚洲欧美在线视频| 99久久久久免费精品国产| 国产精品超碰97尤物18| k8久久久一区二区三区| 亚洲国产精品成人综合| 粉嫩aⅴ一区二区三区四区| 亚洲精品一区二区三区99| 久久不见久久见免费视频7| 欧美成人猛片aaaaaaa| 久久99日本精品| 国产欧美一区二区三区鸳鸯浴| 国产盗摄一区二区三区| 久久久久久黄色| 国产99久久精品| 亚洲欧洲日韩女同| 91久久精品一区二区三| 一区av在线播放| 欧美人与禽zozo性伦| 另类调教123区| 久久人人97超碰com| 豆国产96在线|亚洲| 综合久久给合久久狠狠狠97色 | 国产99久久久国产精品潘金| 中文一区二区完整视频在线观看 | 精品一区二区三区免费毛片爱| 久久久久成人黄色影片| 91在线视频免费91| 亚洲午夜一区二区三区| 日韩午夜电影av| 国产成人三级在线观看| 亚洲免费av观看| 精品少妇一区二区| av午夜精品一区二区三区| 亚洲一区在线观看网站| 欧美r级在线观看|