{"id":53,"date":"2012-10-06T12:24:34","date_gmt":"2012-10-06T03:24:34","guid":{"rendered":"http:\/\/www.very-cute.net\/wp\/?p=53"},"modified":"2012-10-06T13:25:45","modified_gmt":"2012-10-06T04:25:45","slug":"postfixadmin-setup","status":"publish","type":"post","link":"https:\/\/www.very-cute.net\/wp\/53\/","title":{"rendered":"PostfixAdmin\u3067\u30d0\u30fc\u30c1\u30e3\u30eb\u30e1\u30fc\u30eb\u306e\u69cb\u7bc9"},"content":{"rendered":"<p>postfix\/dovecot\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u3001\u5f93\u6765\u306e\u65b9\u5f0f\u300cFTP\u30e6\u30fc\u30b6\u30fc\u304c\u30e1\u30fc\u30eb\u53d7\u4fe1\u30e6\u30fc\u30b6\u30fc\u300d\u3068\u3044\u3046\u74b0\u5883\u304b\u3089\u30d0\u30fc\u30c1\u30e3\u30eb\u30e1\u30fc\u30eb\u74b0\u5883\u306b\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002<br \/>\n\u30d0\u30fc\u30c1\u30e3\u30eb\u30e1\u30fc\u30eb\u306e\u904b\u7528\u30c4\u30fc\u30eb\u306f PostfixAdmin \uff11\u629e\u3067\u3059\u3002<br \/>\n\u4ed6\u306b\u3088\u3044\u30c4\u30fc\u30eb\u3092\u77e5\u308a\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3057\u3066\u3001PostfixAdmin\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 MySql \u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u524d\u63d0\u6761\u4ef6\u3068\u3057\u3066postfix\/dovecot\u3067\u30e1\u30fc\u30eb\u3092\u9001\u53d7\u4fe1\u3067\u304d\u308b\u74b0\u5883\u307e\u3067\u8a2d\u5b9a\u6e08\u307f\u3068\u3057\u307e\u3059\u3002<br \/>\npostfix\/dovecot\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306f <a href=\"\/wp\/postfix2setting\/\">postfix 2.3.x \u306e\u8a2d\u5b9a<\/a> \u3084 <a href=\"\/wp\/dovecot1vs2change\/\">dovecot ver.1\u7cfb\u30682\u7cfb\u306e\u9055\u3044<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u25a0 PostfixAdmin \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<h3>(0) \u4e8b\u524d\u6e96\u5099<\/h3>\n<p>mysql \u306b postfix\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u5c02\u7528\u306epostfix\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u7a7a\u3067\u3088\u3044\u3067\u3059\uff09<\/p>\n<pre>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d: postfix\r\n\u30e6\u30fc\u30b6\u30fc\u540d    : postfix\r\n\u30d1\u30b9\u30ef\u30fc\u30c9    : xxxxxxxxxxxx<\/pre>\n<p>\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30d0\u30fc\u30c1\u30e3\u30eb\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u5f8c\u3067\u3044\u304f\u3064\u304b\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u30e6\u30fc\u30b6\u30fcID\u3001\u30b0\u30eb\u30fc\u30d7ID\u3092\u8a18\u8ff0\u3059\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u6c7a\u3081\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u4f7f\u3063\u3066\u3044\u306a\u3044\u756a\u53f7\u306a\u3089\u4f55\u3067\u3082\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306f \u30e6\u30fc\u30b6\u30fcID = 600\u3001 \u30b0\u30eb\u30fc\u30d7ID = 600 \u3068\u3057\u307e\u3059\u3002<\/p>\n<pre># mkdir \/home\/vmailbox\r\n# groupadd -g 600 vuser\r\n# useradd -g vuser -u 600 -d \/home\/vmailbox -s \/sbin\/nologin vuser\r\n# chown vuser:vuser \/home\/vmailbox\r\n# chmod 771 \/home\/vmailbox<\/pre>\n<p><!--more--><\/p>\n<h3>(1) PostfixAdmin \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre># cd \/usr\/local\/src\r\n# \r\n# wget http:\/\/jaist.dl.sourceforge.net\/project\/postfixadmin\/postfixadmin\/postfixadmin-2.3.5\/postfixadmin-2.3.5.tar.gz\r\n# \r\n# tar xzvf postfixadmin-2.3.5.tar.gz\r\n# mv postfixadmin-2.3.5 \/var\/www\/postfixadmin\r\n# cd \/var\/www\/postfixadmin\r\n# chown -R apache *\r\n#<\/pre>\n<h3>(2) PostfixAdmin \u8a2d\u5b9a<\/h3>\n<p>\/var\/www\/postfixadmin\/config.inc.php<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\n\/\/$CONF['configured'] = false;\r\n$CONF['configured'] = true;\r\n\r\n$CONF['setup_password'] = 'changeme'; \/\/ setup\u5f8c\u306b\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u305f\u3082\u306e\u3092\u8a2d\u5b9a\r\n\r\n\/\/$CONF['default_language'] = 'en';\r\n$CONF['default_language'] = 'ja';\r\n\r\n$CONF['database_type'] = 'mysql';\r\n$CONF['database_host'] = 'localhost';\r\n$CONF['database_user'] = 'postfix';\r\n$CONF['database_password'] = 'xxxxxxxxxxxx';\r\n$CONF['database_name'] = 'postfix';\r\n\r\n$CONF['encrypt'] = 'md5crypt';\t\/\/ DB\u306b\u306fMD5\u30cf\u30c3\u30b7\u30e5\u3092\u683c\u7d0d\r\n$CONF['encrypt'] = 'cleartext';\t\/\/ APOP\u304c\u5fc5\u8981\u306a\u3089\u5e73\u6587\u3067\u683c\u7d0d\r\n\r\n\/\/$CONF['page_size'] = '10';\r\n$CONF['page_size'] = '100';\r\n\r\n\/\/$CONF['domain_path'] = 'NO';\t\/\/  NO \u306e\u5834\u5408 maildir:\/home\/vmailbox\/%n@%d\r\n$CONF['domain_path'] = 'YES';\t\/\/ YES \u306e\u5834\u5408 maildir:\/home\/vmailbox\/%d\/\uff5e\r\n\r\n\/\/$CONF['domain_in_mailbox'] = 'YES';\t\/\/ YES \u306e\u5834\u5408 maildir:\/home\/vmailbox\/%d\/%n@%d\r\n$CONF['domain_in_mailbox'] = 'NO';\t\/\/  NO \u306e\u5834\u5408 maildir:\/home\/vmailbox\/%d\/%n\r\n\r\n$CONF['aliases'] = '100';\r\n$CONF['mailboxes'] = '100';\r\n$CONF['maxquota'] = '100';\r\n\r\n$CONF['quota'] = 'NO'; \r\n\r\n$CONF['alias_control'] = 'YES';\t\/\/ \u30a8\u30a4\u30ea\u30a2\u30b9(\u8ee2\u9001\u5148\u306a\u3069\u306e\u4f5c\u6210)\u3092\u81ea\u5206\u3067\u5236\u5fa1\r\n\r\n$CONF['alias_control_admin'] = 'YES';\r\n\r\n$CONF['backup'] = 'NO'; \r\n$CONF['sendmail'] = 'NO'; \r\n$CONF['fetchmail'] = 'NO';\r\n\r\n$CONF['user_footer_link'] = &quot;main.php&quot;;\r\n\r\n\/\/$CONF['show_footer_text'] = 'YES';\r\n$CONF['show_footer_text'] = 'NO';\r\n\r\n\/\/$CONF['emailcheck_resolve_domain']='YES';\r\n$CONF['emailcheck_resolve_domain']='NO';\r\n\r\n\/\/ \u7ba1\u7406\u8005\u30e1\u30fc\u30eb\u30c9\u30ec\u30b9\r\n$CONF['admin_email'] = 'admin@\u904b\u7528\u30c9\u30e1\u30a4\u30f3\u540d';\r\n\r\n$CONF['default_aliases'] = array (\r\n    'admin' =&gt; 'admin@\u904b\u7528\u30c9\u30e1\u30a4\u30f3\u540d'\r\n);\r\n\r\n<\/pre>\n<p>\/var\/www\/postfixadmin\/backup.php<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsession_cache_limiter('public'); \/\/ IE &amp; SSL\u30b5\u30a4\u30c8\u7528\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\r\nrequire_once('common.php');\r\n<\/pre>\n<p>Apache alias\u8a2d\u5b9a<\/p>\n<p>\/etc\/httpd\/conf.d\/postfixadmin.conf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nAlias \/postfixadmin &quot;\/var\/www\/postfixadmin&quot;\r\n\r\n&lt;Directory &quot;\/var\/www\/postfixadmin&quot;&gt;\r\n    Order allow,deny\r\n    Allow from all\r\n&lt;\/Directory&gt;\r\n<\/pre>\n<p>Apache\u518d\u8d77\u52d5<\/p>\n<pre># apachectl configtest\r\n# apachectl restart<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u521d\u671f\u8a2d\u5b9a<\/p>\n<pre>http:\/\/xxxxxxxxxxxx\/postfixadmin\/setup.php\r\nSetup password \u3092\u8a2d\u5b9a\u3057\u305f\u5f8c\r\n\u30c9\u30e1\u30a4\u30f3\u7ba1\u7406\u8005\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9 xxxx@xxxx.xxxx \u203b\u7279\u6a29\u7ba1\u7406\u8005\u306e\u30ed\u30b0\u30a4\u30f3\u540d\r\n\u30c9\u30e1\u30a4\u30f3\u7ba1\u7406\u8005\u30d1\u30b9\u30ef\u30fc\u30c9     xxxx<\/pre>\n<p>\u753b\u9762\u306b setup_password \u306e\u30cf\u30c3\u30b7\u30e5\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067 config.inc.php \u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<h2>\u25a0 postfix\u306e postfixadmin\u5bfe\u5fdc<\/h2>\n<p>\/etc\/postfix\/main.cf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nmyorigin = $myhostname\r\n\r\ninet_interfaces = all\r\n\r\nhome_mailbox = Maildir\/\r\n\r\n# SMTP-Auth\r\nsmtpd_sasl_auth_enable = yes\r\nsmtpd_sasl_local_domain = $myhostname\r\nsmtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination\r\n\r\n# dovecot-sasl\r\nsmtpd_sasl_type = dovecot\r\nsmtpd_sasl_path = private\/auth\r\n\r\n# for broken\r\nbroken_sasl_auth_clients = yes\r\n\r\n# hash\u30d0\u30fc\u30c1\u30e3\u30eb\u30c9\u30e1\u30a4\u30f3\u8a2d\u5b9a\u3092\u4f7f\u308f\u306a\u3044\r\n#virtual_alias_maps = hash:\/etc\/postfix\/virtual\r\n\r\n# \u30d0\u30fc\u30c1\u30e3\u30eb\u30c9\u30e1\u30a4\u30f3\u8a2d\u5b9a\r\nvirtual_transport = virtual\r\nvirtual_mailbox_base = \/home\/vmailbox\r\nvirtual_alias_maps = mysql:\/etc\/postfix\/mysql_virtual_alias_maps.cf\r\nvirtual_alias_domains = $virtual_alias_maps\r\nvirtual_mailbox_domains = mysql:\/etc\/postfix\/mysql_virtual_domains_maps.cf\r\nvirtual_mailbox_maps = mysql:\/etc\/postfix\/mysql_virtual_mailbox_maps.cf\r\n# \u4e8b\u524d\u6e96\u5099\u3067\u7528\u610f\u3057\u305f\u30e6\u30fc\u30b6ID,\u30b0\u30eb\u30fc\u30d7ID\r\nvirtual_minimum_uid = 600\r\nvirtual_uid_maps = static:600\r\nvirtual_gid_maps = static:600\r\n\r\n# \u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u30b5\u30a4\u30ba\u5236\u9650\r\nvirtual_mailbox_limit_maps = mysql:\/etc\/postfix\/mysql_virtual_mailbox_limit_maps.cf\r\nvirtual_mailbox_limit_override = yes\r\nvirtual_overquota_bounce = yes\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u90e8\u5206\u306f\u3001\u4e8b\u524d\u6e96\u5099\u3067\u4f5c\u6210\u3057\u305fmysql\u306epostfix\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\/etc\/postfix\/mysql_virtual_alias_maps.cf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nuser = postfix\r\npassword = xxxxxxxxxxxx\r\nhosts = localhost\r\ndbname = postfix\r\ntable = alias\r\nselect_field = goto\r\nwhere_field = address\r\n<\/pre>\n<p>\/etc\/postfix\/mysql_virtual_domains_maps.cf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nuser = postfix\r\npassword = xxxxxxxxxxxx\r\nhosts = localhost\r\ndbname = postfix\r\ntable = domain\r\nselect_field = domain\r\nwhere_field = domain\r\n<\/pre>\n<p>\/etc\/postfix\/mysql_virtual_mailbox_maps.cf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nuser = postfix\r\npassword = xxxxxxxxxxxx\r\nhosts = localhost\r\ndbname = postfix\r\ntable = mailbox\r\nselect_field = maildir\r\nwhere_field = username\r\n<\/pre>\n<p>\/etc\/postfix\/mysql_virtual_mailbox_limit_maps.cf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nuser = postfix\r\npassword = xxxxxxxxxxxx\r\nhosts = localhost\r\ndbname = postfix\r\ntable = mailbox\r\nselect_field = quota\r\nwhere_field = username\r\n<\/pre>\n<h2>\u25a0 dovecot\u306e postfixadmin\u5bfe\u5fdc <\/h2>\n<p>dovecot-mysql\u30c9\u30e9\u30a4\u30d0\u30fc\u304c\u5fc5\u8981\u3067\u3059<br \/>\ndovecot-mysql\u30c9\u30e9\u30a4\u30d0\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n# yum -y install dovecot-mysql\r\n<\/pre>\n<p>\/etc\/dovecot\/dovecot-mysql.conf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndriver = mysql\r\n#default_pass_scheme = MD5-CRYPT\r\ndefault_pass_scheme = PLAIN\r\nconnect = dbname=postfix user=postfix host=\/var\/lib\/mysql\/mysql.sock password=xxxxxxxxxxxx\r\npassword_query = SELECT password FROM mailbox WHERE username = '%u' AND active = '1'\r\nuser_query = SELECT concat('\/home\/vmailbox\/', maildir) as home, 600 as uid, 600 as gid FROM mailbox WHERE username = '%u' AND active = '1'\r\n<\/pre>\n<p>\/etc\/dovecot\/conf.d\/10-mail.conf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nmail_location = maildir:\/home\/vmailbox\/%d\/%n\r\n\r\nfirst_valid_uid = 600\r\nfirst_valid_gid = 600\r\n<\/pre>\n<p>\/etc\/dovecot\/conf.d\/20-pop3.conf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nprotocol pop3 {\r\n  pop3_uidl_format = %08Xu%08Xv\r\n}\r\n<\/pre>\n<p>\/etc\/dovecot\/conf.d\/10-auth.conf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#disable_plaintext_auth = yes\r\ndisable_plaintext_auth = no\r\n\r\n#auth_mechanisms = plain\r\nauth_mechanisms = plain login\r\n\r\n#!include auth-system.conf.ext\r\n!include auth-mysql.conf.ext\r\n<\/pre>\n<p>\/etc\/dovecot\/conf.d\/10-master.conf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n  # Postfix smtp-auth\r\n  unix_listener \/var\/spool\/postfix\/private\/auth {\r\n    mode = 0666\r\n    user = postfix\r\n    group = postfix\r\n  }\r\n<\/pre>\n<p>\u2605\u65b0\u898f\u4f5c\u6210<br \/>\n\/etc\/dovecot\/conf.d\/auth-mysql.conf.ext<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\npassdb {\r\n  driver = sql\r\n  args = \/etc\/dovecot\/dovecot-mysql.conf\r\n}\r\n\r\nuserdb {\r\n  driver = sql\r\n  args = \/etc\/dovecot\/dovecot-mysql.conf\r\n}\r\n<\/pre>\n<p>\u86c7\u8db3\u3067\u3059\u304cpostfix\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9xxxxxxxxxxxx\u3092\u66f8\u3044\u3066\u304a\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u3092FTP\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u7f6e\u63db\u3059\u308c\u3070\u4e00\u767a\u3067\u3059\u3002<\/p>\n<pre>\r\nsed -i \"s\/xxxxxxxxxxxx\/\u30d1\u30b9\u30ef\u30fc\u30c9\/g\" \/etc\/postfix\/mysql_virtual_alias_maps.cf\r\nsed -i \"s\/xxxxxxxxxxxx\/\u30d1\u30b9\u30ef\u30fc\u30c9\/g\" \/etc\/postfix\/mysql_virtual_domains_maps.cf\r\nsed -i \"s\/xxxxxxxxxxxx\/\u30d1\u30b9\u30ef\u30fc\u30c9\/g\" \/etc\/postfix\/mysql_virtual_mailbox_maps.cf\r\nsed -i \"s\/xxxxxxxxxxxx\/\u30d1\u30b9\u30ef\u30fc\u30c9\/g\" \/etc\/postfix\/mysql_virtual_mailbox_limit_maps.cf\r\nsed -i \"s\/xxxxxxxxxxxx\/\u30d1\u30b9\u30ef\u30fc\u30c9\/g\" \/etc\/dovecot\/dovecot-mysql.conf\r\n<\/pre>\n<p>\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a\u3001\u518d\u8d77\u52d5\u306a\u3069<\/p>\n<pre>\r\nchkconfig dovecot on\r\nchkconfig postfix on\r\n\r\n\/etc\/init.d\/dovecot restart\r\n\/etc\/init.d\/postfix restart\r\n\r\ntail -30 \/var\/log\/maillog\r\n<\/pre>\n<h2>\uff08\u304a\u307e\u3051\uff09postfixadmin \u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u81ea\u52d5\u524a\u9664<\/h2>\n<p>postfixadmin\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u524a\u9664\u3057\u3066\u3082\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u524a\u9664\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u305d\u308c\u3092cron\u3067\u524a\u9664\u3059\u308b\u4ed5\u7d44\u307f\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p>\/var\/www\/postfixadmin\/ADDITIONS\/mailbox_remover.pl<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\n# \u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u524a\u9664\u5f8c\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u30d5\u30a9\u30eb\u30c0\r\nmy $archdir=&quot;\/home\/vmailbox_archives&quot;;\r\n\r\n# z option \u304c\u3042\u308b\u30a2\u30fc\u30ab\u30a4\u30d6\u5727\u7e2e\u30b3\u30de\u30f3\u30c9\r\nmy $archcmd=&quot;\/bin\/tar&quot;;\r\n\r\n# \u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306e\u30d9\u30fc\u30b9\u30d5\u30a9\u30eb\u30c0\r\nmy $maildir_path=&quot;\/home\/vmailbox&quot;;\r\n\r\n# \u30b5\u30d6\u30d5\u30a9\u30eb\u30c0\u3092\u63a2\u7d22\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b config.inc.php \u304c\u5fc5\u8981\r\n# $CONF['domain_path'] = 'YES';\r\nmy $pfadmin_config=&quot;\/var\/www\/postfixadmin\/config.inc.php&quot;;\r\n\r\n# database information\r\nmy $host=&quot;localhost&quot;;\r\nmy $port=&quot;3306&quot;;\r\nmy $userid=&quot;postfix&quot;;\r\nmy $passwd=&quot;xxxxxxxxxx&quot;;\r\nmy $db=&quot;postfix&quot;;\r\n##########\r\n\r\n#print &quot;Ctrl-C in 5 seconds to abort before removal starts...\\n&quot;;\r\n#sleep 5;\r\n\r\n120\u884c\u76ee \u884c\u672b\u30bb\u30df\u30b3\u30ed\u30f3\u3092\u8ffd\u52a0 ;\r\n\tsystem(@args) == 0 or die &quot;Creating archive for $maildir failed: $?&quot;;\r\n\r\n<\/pre>\n<p>\u5b9f\u884c\u53ef\u80fd\u306b\u3057\u3066<\/p>\n<pre>\r\n# chmod 755 \/var\/www\/postfixadmin\/ADDITIONS\/mailbox_remover.pl\r\n<\/pre>\n<p>\u672c\u5f53\u306b\u524a\u9664\u3058\u3083\u306a\u304f\u3066\u79fb\u52d5\u3059\u308b\u306e\u3067\u3001\u79fb\u52d5\u5148\u30a2\u30fc\u30ab\u30a4\u30d6\u30d5\u30a9\u30eb\u30c0\u4f5c\u6210<\/p>\n<pre>\r\n# mkdir \/home\/vmailbox_archives\r\n<\/pre>\n<p>cron\u767b\u9332<br \/>\n\/etc\/cron.d\/postfixadmin<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n0 4 * * * root \/var\/www\/postfixadmin\/ADDITIONS\/mailbox_remover.pl\r\n<\/pre>\n<p>\u3053\u308c\u3067\u6bce\u671d\uff14\u6642\u306b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u7121\u304f\u306a\u3063\u3066\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u30c7\u30fc\u30bf\u3092 \/home\/vmailbox_archives \u3078\u79fb\u52d5\u3057\u307e\u3059\u3002<br \/>\n\u672c\u5f53\u306b\u8981\u3089\u306a\u3044\u5834\u5408\u306f\u6642\u3005\u81ea\u5206\u3067\u524a\u9664\u3059\u308b\u304b\u3001\u307e\u305f\u306f\u5225\u306ecron\u4ed5\u8fbc\u3080\u7b49\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>postfix\/dovecot\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u3001\u5f93\u6765\u306e\u65b9\u5f0f\u300cFTP\u30e6\u30fc\u30b6\u30fc\u304c\u30e1\u30fc\u30eb\u53d7\u4fe1\u30e6\u30fc\u30b6\u30fc\u300d\u3068\u3044\u3046\u74b0\u5883\u304b\u3089\u30d0\u30fc\u30c1\u30e3\u30eb\u30e1\u30fc\u30eb\u74b0\u5883\u306b\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002 \u30d0\u30fc\u30c1\u30e3\u30eb\u30e1\u30fc\u30eb\u306e\u904b\u7528\u30c4\u30fc\u30eb\u306f PostfixAdm &hellip; <a href=\"https:\/\/www.very-cute.net\/wp\/53\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,7,5],"tags":[12,20],"_links":{"self":[{"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/posts\/53"}],"collection":[{"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":0,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}