Bsd usr ports updating permission denied browse netwoking com or dating com or chatting com

Posted by / 11-May-2020 10:35

[7/12] Extracting python27-2.7.9: 100% [8/12] Installing rubygem-pkg-config-1.1.6...

[8/12] Extracting rubygem-pkg-config-1.1.6: 100% [9/12] Installing glib-2.42.1...

[6/9] Extracting lha-1.14i_6: 100% [7/9] Installing arj-3.10.22_4... Fetching meta.txz: 100% 968 B 1.0k/s Fetching packagesite.txz: 100% 5 MB 229.4k/s Processing entries: 100% Free BSD repository update completed.

[7/9] Extracting arj-3.10.22_4: 100% [8/9] Installing arc-5.21p... 23759 packages processed New version of pkg detected; it needs to be installed first. [y/N]: y Fetching pkg-1.4.4.txz: 100% 2 MB 226.1k/s Checking integrity... [y/N]: y Fetching milter-greylist-4.4.3_4.txz: 100% 101 k B 103.9k/s Checking integrity...

This is accomplished by adding postfix to group mail and making the /usr/local/etc/sasldb* file(s) readable by group mail (this should be the default for new installs).

If you are using SASL, you need to make sure that postfix has access to read the sasldb file.

Add following lines dnl j,,,i, are already enabled by default define(`conf MILTER_MACROS_HELO', conf MILTER_MACROS_HELO``, '') define(`conf MILTER_MACROS_ENVRCPT', conf MILTER_MACROS_ENVRCPT``, '') INPUT_MAIL_FILTER(`greylist', `S=local:/var/milter-greylist/milter-greylist.sock, F=T, T=R:30s') to your /etc/mail/configuration.

To run milter-greylist from startup, add miltergreylist_enable="YES" in your /etc/or your /etc/local See /usr/local/share/doc/milter-greylist/README for operation details. [y/N]: y Fetching spamass-milter-0.4.0.txz: 100% 46 k B 47.2k/s Fetching spamassassin-3.4.0_17.txz: 100% 945 k B 193.7k/s Fetching p5-HTTP-Date-6.02_1.txz: 100% 14 k B 15.2k/s Fetching p5-HTML-Parser-3.71_1.txz: 100% 81 k B 83.3k/s Fetching p5-HTML-Tagset-3.20_1.txz: 100% 9 k B 10.2k/s Fetching p5-IO-Socket-SSL-2.008.txz: 100% 138 k B 141.3k/s Fetching p5-Mozilla-CA-20130114_1.txz: 100% 128 k B 132.0k/s Fetching p5-Net-SSLeay-1.66_1.txz: 100% 226 k B 231.4k/s Fetching p5-Socket-2.016_1.txz: 100% 39 k B 40.1k/s Fetching p5-IO-Socket-IP-0.35.txz: 100% 26 k B 27.4k/s Fetching gnupg1-1.4.18_2.txz: 100% 1 MB 217.5k/s Fetching p5-Net Addr-IP-4.069_2.txz: 100% 80 k B 81.9k/s Fetching p5-Net-DNS-0.81_1.txz: 100% 271 k B 278.1k/s Fetching p5-Digest-HMAC-1.03_1.txz: 100% 9 k B 9.6k/s Fetching p5-IO-Socket-INET6-2.72_1.txz: 100% 17 k B 17.8k/s Fetching p5-Socket6-0.25_2.txz: 100% 17 k B 18.1k/s Fetching re2c-0.13.6.txz: 100% 162 k B 165.8k/s Fetching p5-Encode-Detect-1.01_1.txz: 100% 66 k B 67.6k/s Checking integrity...

[4/12] Extracting libexecinfo-1.1_3: 100% [5/12] Installing ruby-2.0.0.598,1...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... The following 1 packages will be affected (of 0 checked): New packages to be INSTALLED: postfix: 2.11.3_3,1 The process will require 12 MB more space. done (0 conflicting) [1/1] Installing postfix-2.11.3_3,1... See example configuration files in /usr/local/share/doc/dovecot/example-config/」と書かれていますので、必要な設定ファイルを持ってくることにします。 drwxr-xr-x 2 root wheel 1024 Jan 4 conf.d/ -rw-r--r-- 1 root wheel 1507 Jan 4 ext -rw-r--r-- 1 root wheel 852 Jan 4 ext -rw-r--r-- 1 root wheel 5292 Jan 4 ext -rw-r--r-- 1 root wheel 5612 Jan 4 ext -rw-r--r-- 1 root wheel 4410 Jan 4 # cd /etc/ssl # mkdir private certs # cd /usr/local/share/examples/dovecot/ # sh ./Generating a 1024 bit RSA private key .............................. writing new private key to '/etc/ssl/private/dovecot.pem' ----- subject= /OU=IMAP server/CN=imap.example.com/email [email protected] Fingerprint=E9:3D:40: D4:8E:2A:64:3C:1F:50:8A::28: AC:59: D8:9D:3E 以上のように、認証できました。当然メールは何も届いていない状態なので、空振りしました。 IMAPは、そもそもポートあけていないので、利用できる状態になっていないので、ここではスキップします。 (後日考えます) ここで、もうネームサーバをこのサーバに仕向けてしまうことにしました。 MXレコードを変更するだけです。※面倒になってきたので、ここには書かないけど、大丈夫ですよね? Updating database digests format: 100% The following 12 packages will be affected (of 0 checked): New packages to be INSTALLED: milter-manager: 2.0.4 ruby: 2.0.0.598,1 libyaml: 0.1.6_1 readline: 6.3.8 libffi: 3.0.13_3 libexecinfo: 1.1_3 rubygem-glib2: 2.2.3 rubygem-pkg-config: 1.1.6 ruby20-gems: 1.8.29 glib: 2.42.1 python27: 2.7.9 libev: 4.15_1,1 The process will require 135 MB more space. done (0 conflicting) [1/12] Installing libyaml-0.1.6_1... [1/12] Extracting libyaml-0.1.6_1: 100% [2/12] Installing readline-6.3.8...[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...

bsd usr ports updating permission denied-52bsd usr ports updating permission denied-48bsd usr ports updating permission denied-64

[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.