{"id":39,"date":"2008-06-18T19:08:36","date_gmt":"2008-06-18T10:08:36","guid":{"rendered":"http:\/\/www.kaz.bz\/wp\/2008-06-18_214\/"},"modified":"2008-06-18T19:08:36","modified_gmt":"2008-06-18T10:08:36","slug":"vpopmail%e3%81%ae%e5%85%a8%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%83%bb%e5%85%a8%e3%83%a1%e3%83%bc%e3%83%ab%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e3%81%ae%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83","status":"publish","type":"post","link":"https:\/\/wp.kaz.bz\/tech\/2008\/06\/18\/39.html","title":{"rendered":"vpopmail\u306e\u5168\u30c9\u30e1\u30a4\u30f3\u30fb\u5168\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3002"},"content":{"rendered":"<p>vpopmail\u306e\u5168\u30d0\u30fc\u30c1\u30e3\u30eb\u30c9\u30e1\u30a4\u30f3\u30fb\u5168\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u76ee\u7684\u3068\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3002<br \/>\nvadddomain\/vadduser\u306a\u3069\u3067\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u203b\u540c\u3058\u74b0\u5883\u3092\u5225\u306e\u30b5\u30fc\u30d0\u306b\u30b3\u30d4\u30fc\u3059\u308b\u969b\u3092\u60f3\u5b9a\u3002<\/p>\n<p>#! \/bin\/sh<\/p>\n<p>PATH=$PATH:\/home\/vpopmail\/bin<\/p>\n<p>for i in `vdominfo &#124; awk '\/domain:\/{print($2);}'`<br \/>\ndo<br \/>\n  ISALIAS=`vdominfo $i &#124; grep \"domain:\" &#124; grep \"(alias of\"`<\/p>\n<p>  if [ -z \"$ISALIAS\" ]; then<br \/>\n  # real domain<br \/>\n    # vadddomain<br \/>\n    vuserinfo postmaster@$i \\<br \/>\n    &#124; awk --assign=DOM=$i '<br \/>\n      \/clear passwd:\/{ printf(\"vadddomain %s %s\\n\",DOM,$3); }<br \/>\n      '<br \/>\n    # vadduser<br \/>\n    vuserinfo -D $i \\<br \/>\n    &#124; egrep \"name:&#124;clear passwd:\" \\<br \/>\n    &#124; awk --assign=DOM=$i '<br \/>\n      \/name:\/{ NAME = $2; }<br \/>\n      \/clear passwd:\/{ PASS = $3; printf(\"vadduser %s@%s %s\\n\", NAME, DOM ,PASS); }<br \/>\n      ' \\<br \/>\n    &#124; grep -v \"postmaster@\"<\/p>\n<p>    # valias<br \/>\n    valias -s $i \\<br \/>\n    &#124; awk --assign=DOM=$i '<br \/>\n      BEGIN { FS = \" -> \"; }<br \/>\n      { printf(\"valias -i \\\"%s\\\" %s\\n\",$2,$1);}'<\/p>\n<p>  else<br \/>\n  # alias domain<br \/>\n    # vaddaliasdomain<br \/>\n    vdominfo $i \\<br \/>\n    &#124; grep domain: \\<br \/>\n    &#124; sed -e 's\/^.*(alias of \\([^\\)]*\\))$\/\\1\/g' \\<br \/>\n    &#124; awk --assign=DOM=$i '{ printf(\"vaddaliasdomain %s %s\\n\",$2,DOM); }'<br \/>\n  fi<br \/>\ndone<\/p>\n","protected":false},"excerpt":{"rendered":"<p>vpopmail\u306e\u5168\u30d0\u30fc\u30c1\u30e3\u30eb\u30c9\u30e1\u30a4\u30f3\u30fb\u5168\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u76ee\u7684\u3068\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3002 vadddomain\/vadduser\u306a\u3069\u3067\u4f5c\u6210\u3059\u308b\u3002 \u203b\u540c\u3058\u74b0\u5883\u3092\u5225\u306e\u30b5\u30fc\u30d0\u306b\u30b3\u30d4\u30fc\u3059\u308b\u969b\u3092\u60f3\u5b9a\u3002 #! \/bin\/sh  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-qmail-vpopmail"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":852,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/06\/03\/852.html","url_meta":{"origin":39,"position":0},"title":"postfix + dovecot \u3067\u4eee\u60f3\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3002","author":"kaz. Suenaga","date":"2011\/06\/03","format":false,"excerpt":"postfix + dovecot \u3067\u4eee\u60f3\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3002 \u30c6\u30b9\u30c8\u9001\u4fe1\uff0b\u53d7\u4fe1\u4ed8\u3002\u2026","rel":"","context":"postfix_dovecot","block_context":{"text":"postfix_dovecot","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/postfix_dovecot"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":36,"url":"https:\/\/wp.kaz.bz\/tech\/2008\/07\/18\/36.html","url_meta":{"origin":39,"position":1},"title":"qmail\u306e\u30ad\u30e5\u30fc\u306b\u305f\u307e\u3063\u305fSPAM\u306e\u5b9f\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7","author":"kaz. Suenaga","date":"2008\/07\/18","format":false,"excerpt":"\/var\/qmail\/queue \u3067\u4ee5\u4e0b\u3092\u5b9f\u884c \/var\/qmail\/bin\/qmail-qread\u2026","rel":"","context":"qmail \/ vpopmail","block_context":{"text":"qmail \/ vpopmail","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb\/qmail-vpopmail"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4,"url":"https:\/\/wp.kaz.bz\/tech\/2009\/11\/11\/4.html","url_meta":{"origin":39,"position":2},"title":"qmail + vpopmail\u74b0\u5883\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"kaz. Suenaga","date":"2009\/11\/11","format":false,"excerpt":"qmail + vpopmail \u306e\u74b0\u5883\u306bmailman \u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306e\u624b\u9806\u3002 v\u2026","rel":"","context":"mailman","block_context":{"text":"mailman","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/mailman"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":634,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/02\/03\/634.html","url_meta":{"origin":39,"position":3},"title":"daemontools + ucspi-tcp + djbdns(dnscache) + netqmail =","author":"kaz. Suenaga","date":"2011\/02\/03","format":false,"excerpt":"\u4e00\u6c17\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6c7a\u3081\u3046\u3061\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 \/usr\/local\/src\/djb \u3068\u304b\u306b ins\u2026","rel":"","context":"DJB","block_context":{"text":"DJB","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":103,"url":"https:\/\/wp.kaz.bz\/tech\/2006\/06\/05\/103.html","url_meta":{"origin":39,"position":4},"title":"\/service\/v_pop3d\/run","author":"kaz. Suenaga","date":"2006\/06\/05","format":false,"excerpt":"#! \/bin\/sh HOST_FQDN=`uname -n` PATH=\"\/var\/qmail\/b\u2026","rel":"","context":"qmail \/ vpopmail","block_context":{"text":"qmail \/ vpopmail","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb\/qmail-vpopmail"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8,"url":"https:\/\/wp.kaz.bz\/tech\/2009\/09\/17\/8.html","url_meta":{"origin":39,"position":5},"title":"vpgsql.c \u306e\u30d0\u30b0\u3002","author":"kaz. Suenaga","date":"2009\/09\/17","format":false,"excerpt":"vpopmail-5.4.28 \u3067\u3001 \u30fbDB\u306bPostgreSQL\u3092\u5229\u7528 \u30fbvalias \u3092DB\u3067\u5229\u2026","rel":"","context":"qmail \/ vpopmail","block_context":{"text":"qmail \/ vpopmail","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb\/qmail-vpopmail"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":0,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}