Bsd usr ports updating permission denied Aroban sex pron

Posted by / 09-Jan-2018 02:18

Bsd usr ports updating permission denied

[9/12] Extracting glib-2.42.1: 100% No schema files found: doing nothing. [10/12] Extracting rubygem-glib2-2.2.3: 100% [11/12] Installing libev-4.15_1,1...[11/12] Extracting libev-4.15_1,1: 100% [12/12] Installing milter-manager-2.0.4...[4/9] Extracting libltdl-2.4.2.418: 100% [5/9] Installing unzoo-4.4_2... [9/9] Extracting clamav-milter-0.98.5_1: 100%clamav_clamd_enable="YES" clamav_freshclam_enable="YES" clamav_milter_enable="YES" clamav_milter_socket_mode="660" clamav_milter_socket_group="mail" clamav_freshclam_flags="--daemon-notify=/usr/local/etc/--checks=12 --user=clamav"# grep -v "^#" | grep -v '^$' Database Directory /var/db/clamav Update Log File /var/log/clamav/Log File Max Size 2M Log Time yes Log Verbose yes Log Rotate yes Pid File /var/run/clamav/Database Owner clamav Allow Supplementary Groups yes Database Mirror database.Notify Clamd /usr/local/etc/On Update Execute /usr/local/etc/rc.d/restart#grep -v "^#" | grep -v '^$' Log File /var/log/clamav/Log File Max Size 2M Log Time yes Log Verbose yes Log Rotate yes Pid File /var/run/clamav/Database Directory /var/db/clamav Local Socket /var/run/clamav/Fix Stale Socket yes User clamav Allow Supplementary Groups yes Scan Mail yes#grep -v "^#" | grep -v '^$' Milter Socket /var/run/clamav/Fix Stale Socket yes User clamav Allow Supplementary Groups yes Pid File /var/run/clamav/Clamd Socket unix:/var/run/clamav/On Infected Reject Add Header Replace Log File /var/log/clamav/Log Time yes Log Verbose yes Log Infected Full# pw groupadd -n milter-manager -g 333 # pw useradd -n milter-manager -u 333 -g milter-manager -G mail -s /usr/sbin/nologin \ -d /var/run/milter-manager -c "milter manager" # service milter-manager start# milter-manager -u milter-manager --show-config ...[5/9] Extracting unzoo-4.4_2: 100% [6/9] Installing lha-1.14i_6... # /usr/local/lib/milter-manager/binding/lib/milter/manager/detector.rb:34 define_milter("clamav-milter") do |milter| # /usr/local/lib/milter-manager/binding/lib/milter/manager/detector.rb:42 milter.connection_spec = "unix:/var/run/clamav/clmilter.sock" # default milter.description = nil # /usr/local/lib/milter-manager/binding/lib/milter/manager/detector.rb:35 milter.enabled = true # default milter.fallback_status = "accept" # default milter.evaluation_mode = false # default milter.applicable_conditions = [] # /usr/local/lib/milter-manager/binding/lib/milter/manager/detector.rb:37 milter.command = "/usr/sbin/service" # /usr/local/lib/milter-manager/binding/lib/milter/manager/detector.rb:38 milter.command_options = "clamav-milter start" # default milter.user_name = nil # default milter.connection_timeout = 297.0 # default milter.writing_timeout = 7.0 # default milter.reading_timeout = 7.0 # default milter.end_of_message_timeout = 297.0 endmilter_protocol = 6 milter_default_action = accept milter_mail_macros = smtpd_milters = unix:/var/run/milter-manager/milter_command_timeout = 90s milter_connect_timeout = 60s milter_connect_macros = j v _Jan 10 - postfix/submission/smtpd[-]: connect from -[-] Jan 10 - postfix/submission/smtpd[-]: Anonymous TLS connection established from -[-]: TLSv1 with cipher AES256-SHA (256/256 bits) Jan 10 - postfix/submission/smtpd[-]: A25B79A0EB4: client=-[-], sasl_method=PLAIN, sasl_username=foo Jan 10 - postfix/cleanup[-]: A25B79A0EB4: message-id=, relay=local, delay=0.17, delays=0.16/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir) Jan 10 - postfix/qmgr[-]: A25B79A0EB4: removed Jan 10 - postfix/submission/smtpd[-]: disconnect from -[-] Jan 10 - milter-manager[-]: [statistics] [session][end][end-of-message][accept][0.296839](29) Jan 10 - milter-manager[-]: [statistics] [sessions][finished] 15( 1) 0# pkg install milter-greylist Updating Free BSD repository catalogue... [y/N]: y Fetching postfix-2.11.3_3,1.txz: 100% 1 MB 223.0k/s Checking integrity... のような感じです。 さて、portsに戻って、再導入を行います。 INST_BASE_DESC= Install into /usr and /etc/postfix これはどうしようと思いましたが、/usr/local以下にあって良いので、付けずに利用することにしました。 Linuxの設定例をそのまま利用できそうで便利そうには思うのですが、自分のメモと一致しない方が面倒そうでした。 結局は以下のように、SPFとTLS、そしてDovecot 2系でいれることにしました。 # cd /usr/local/etc/postfix/ # ll total 96 -rw-r--r-- 1 root wheel 11942 Jan 4 LICENSE -rw-r--r-- 1 root wheel 1629 Jan 4 TLS_LICENSE -rw-r--r-- 1 root wheel 3547 Jan 4 default -rw-r--r-- 1 root wheel 26309 Jan 4 -rw-r--r-- 1 root wheel 33187 Jan 4 default -rw-r--r-- 1 root wheel 2253 Jan 4 -rw-r--r-- 1 root wheel 6200 Jan 4 master.cf# cp -p orig # grep -v "^#" | grep -v '^$' queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix unknown_local_recipient_reject_code = 550 mynetworks_style = host debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = /usr/local/share/doc/postfix manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = /usr/local/share/doc/postfix inet_protocols = ipv4myhostname = ns.myorigin = $mydomain mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain virtual_alias_maps = hash:/usr/local/etc/postfix/virtual unknown_local_recipient_reject_code = 550 mynetworks_style = host alias_maps = hash:/etc/mail/aliases alias_database = hash:/etc/mail/aliases home_mailbox = Maildir/ header_checks = regexp:$config_directory/header_checks debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = /usr/local/share/doc/postfix manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = /usr/local/share/doc/postfix inet_protocols = ipv4 これで基本的な設定ができました。 SMTP認証や、SPAM対策、ウィルス対策、RBLチェック、TLS通信、Procmail連動、SPFの連動、Mail Man連動など設定する部分は盛りだくさんなのですが、順番にこなしていくしかありません。 たぶん、Milterで連動することにすると思いますし、のんびりやっていきます。移行もmailboxからmaildirへ移動したり、またMail Manのデータやシーケンサの番号も調整が必要になります。 では、メールが外から送信できないのは困るのでSMTP認証から開始していきます。 導入は、既にされているので設定をしていきます。 設定ファイルは、/usr/local/etc/dovecot/以下に設定しますが、現時点はREADMEだけはいったフォルダ。 「Configuration files go to this directory. [y/N]: y Fetching milter-manager-2.0.4.txz: 100% 763 k B 195.5k/s Fetching ruby-2.0.0.598,1.txz: 100% 6 MB 241.4k/s Fetching libyaml-0.1.6_1.txz: 100% 68 k B 70.2k/s Fetching readline-6.3.8.txz: 100% 309 k B 158.7k/s Fetching libffi-3.0.13_3.txz: 100% 32 k B 33.0k/s Fetching libexecinfo-1.1_3.txz: 100% 8 k B 8.5k/s Fetching rubygem-glib2-2.2.3.txz: 100% 440 k B 225.3k/s Fetching rubygem-pkg-config-1.1.6.txz: 100% 91 k B 93.6k/s Fetching ruby20-gems-1.8.29.txz: 100% 501 k B 257.0k/s Fetching glib-2.42.1.txz: 100% 2 MB 228.8k/s Fetching python27-2.7.9.txz: 100% 10 MB 237.9k/s Fetching libev-4.15_1,1.txz: 100% 116 k B 118.9k/s Checking integrity... If you are upgrading from Postfix 2.6 or earlier, review the RELEASE_NOTES to familiarize yourself with new features and incompatabilities.

==== Message for python27-2.7.9: ===================================================================== Note that some standard Python modules are provided as separate ports as they require additional dependencies. The following 9 packages will be affected (of 0 checked): New packages to be INSTALLED: clamav-milter: 0.98.5_1 libxml2: 2.9.2_2 curl: 7.39.0_1 ca_root_nss: 3.17.3_1 libltdl: 2.4.2.418 unzoo: 4.4_2 lha: 1.14i_6 arj: 3.10.22_4 arc: 5.21p The process will require 23 MB more space. done (0 conflicting) [1/9] Installing ca_root_nss-3.17.3_1... [1/9] Extracting ca_root_nss-3.17.3_1: 100% [2/9] Installing libxml2-2.9.2_2...[3/18] Extracting p5-HTML-Tagset-3.20_1: 100% [4/18] Installing p5-Mozilla-CA-20130114_1...[4/18] Extracting p5-Mozilla-CA-20130114_1: 100% [5/18] Installing p5-Net-SSLeay-1.66_1...[8/9] Extracting arc-5.21p: 100% [9/9] Installing clamav-milter-0.98.5_1... The following 1 packages will be affected (of 0 checked): Installed packages to be UPGRADED: pkg: 1.4.3 - 1.4.4 The process will require 34 k B more space. done (0 conflicting) [1/1] Upgrading pkg from 1.4.3 to 1.4.4... The following 1 packages will be affected (of 0 checked): New packages to be INSTALLED: milter-greylist: 4.4.3_4 The process will require 255 k B more space. done (0 conflicting) [1/1] Installing milter-greylist-4.4.3_4... [1/1] Extracting milter-greylist-4.4.3_4: 100% Message for milter-greylist-4.4.3_4: === IMPORTANT NOTE A sample configuration file has been installed in /usr/local/etc/mail directory.[1/1] Extracting pkg-1.4.4: 100% Message for pkg-1.4.4: If you are upgrading from the old package format, first run: # pkg2ng Updating Free BSD repository catalogue... Copy and edit it to suit your needs before launching milter-greylist.

bsd usr ports updating permission denied-79bsd usr ports updating permission denied-36bsd usr ports updating permission denied-13

Free BSD 2.xから、主な利用サーバはsendmailで生活していましたが、今回Postfixに移り住むことにしました。 qmailは既にPDSになり、eximも一部が利用しているだけ。Open SMTPdはまだ成長期の前段階にあるように見えるし。 やはり過渡期には、成熟しているPostfixが良いなぁ、と思ったのです。 過去に、Postfixを導入して利用してきてはいますので、試す…は今回しませんでした。 既に非公開にしている過去のページと公開したままの過去のページをベースに導入設定を開始します。 今回の環境は、Free BSD 9.3です。Maildirで利用し、imap/popはDovecotを使用する予定です。 メール関連では、Mail ManやProcmail、アンチウィルス、アンチスパムなどもありますが、これも既にお試し済みなので徐々にやっていきます。 #pkg install postfix Updating Free BSD repository catalogue... gmailから早速送信してみました。結果初回失敗。 Jan 10 - postfix/smtpd[-]: connect from mail-la0-f50.google.com[2.50] Jan 10 - postfix/smtpd[-]: 1FB429A0E6A: client=mail-la0-f50.google.com[2.50] Jan 10 - postfix/cleanup[-]: 1FB429A0E6A: message-id=, relay=local, delay=0.58, delays=0.57/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir) Jan 10 - postfix/qmgr[-]: 1FB429A0E6A: removed Jan 10 - postfix/smtpd[-]: disconnect from mail-la0-f50.google.com[2.50]smtps inet n - n - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= -o smtpd_relay_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATINGJan 10 - postfix/submission/smtpd[-]: connect from -[-] Jan 10 - postfix/submission/smtpd[-]: Anonymous TLS connection established from -[-]: TLSv1 with cipher AES256-SHA (256/256 bits) Jan 10 - postfix/submission/smtpd[-]: 26B279A0E6E: client=-[-], sasl_method=PLAIN, sasl_username=foo Jan 10 - postfix/cleanup[-]: 26B279A0E6E: message-id=#grep -v ".*#" | grep -v '^$' queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix mail_owner = postfix myhostname = ns.myorigin = $mydomain mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain virtual_alias_maps = hash:/usr/local/etc/postfix/virtual unknown_local_recipient_reject_code = 550 mynetworks_style = host alias_maps = hash:/etc/mail/aliases alias_database = hash:/etc/mail/aliases home_mailbox = Maildir/ header_checks = regexp:$config_directory/header_checks debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop html_directory = /usr/local/share/doc/postfix manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix readme_directory = /usr/local/share/doc/postfix inet_protocols = ipv4,ipv6 smtpd_tls_auth_only = no smtpd_tls_key_file = /etc/ssl/private/smtpd_tls_cert_file = /etc/ssl/certs/smtpd_tls_session_cache_database = btree:/var/db/postfix/smtpd_tls_scache smtpd_tls_loglevel = 1 smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_path = /var/spool/postfix/private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination message_size_limit = 10240000 mailbox_size_limit = 51200000 virtual_transport = lmtp:unix:private/dovecot-lmtp smtpd_helo_required = yes disable_vrfy_command = yes strict_rfc821_envelopes = yes allow_percent_hack = yes swap_bangpath = yes allow_untrusted_routing = no smtpd_client_restrictions = permit_mynetworks, reject_rbl_client jp, reject_rbl_client org, reject_rbl_client spamcop.net, reject_rbl_client sbl.spamhaus.org, permit# pkg install milter-manager Updating Free BSD repository catalogue... [2/12] Extracting readline-6.3.8: 100% [3/12] Installing libffi-3.0.13_3...