- 締切済み
Postfixのmaster.cfの設定について
Postfixのmaster.cfにおいて、下記の様な設定があると思うのですが、 /etc/postfix/master.cf: ============================================================= # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # =========================================================== smtp inet n - n - - smtpd この中で、maxproc というパラメータがあると思いますが、 これはどいういった意味合いなのか教えて頂けないでしょうか? Postfixの公式HPも見たのですが、具体的には見つけられず、 詳しく説明されているサイトなどをご存知の方がいらっしゃいましたら、 教えて頂けないでしょうか? 宜しくお願い致します。
- TIRA921
- お礼率100% (6/6)
- オープンソース開発
- 回答数1
- ありがとう数10
- みんなの回答 (1)
- 専門家の回答
みんなの回答
- notnot
- ベストアンサー率47% (4846/10257)
man 5 master によると、 Process limit (default: $default_process_limit) The maximum number of processes that may execute this service simultaneously. Specify 0 for no process count limit. NOTE: Some Postfix services must be configured as a single-pro- cess service (for example, qmgr(8)) and some services must be configured with no process limit (for example, cleanup(8)). These limits must not be changed.
関連するQ&A
- SMTP認証で自サーバをniftyとつなぎたい
火急の悩みゆえ、取り留めない文章にて失礼します。 【環境】 OS = vinelinux6.2 soft = postfix-2.8.10-1vl6.i686 sasl関係 cyrus-sasl-plain-2.1.23-11vl6.i686 cyrus-sasl-2.1.23-11vl6.i686 cyrus-sasl-gssapi-2.1.23-11vl6.i686 cyrus-sasl-devel-2.1.23-11vl6.i686 cyrus-sasl-md5-2.1.23-11vl6.i686 network mail server -- router -- nifty niftyをプロバイダにしてインターネットに接続しています。 自サーバで独自ドメインのサブドメインにて運営しています。 自サーバから他方へメールを送信する場合、OP25Bの制限によりniftyのメールサーバへ 転送してからの送信となります。 先週まで、その設定で出来ていたのですが、今週から突然通信不可のとなり困っています。 1つの原因は「smtp_sasl_auth_enable=yes」と、頭のsmtpがsmtpd出なかったためと思われます。 その時は「said: 451 4.1.8 Sender domain must be resolved (in reply to MAIL FROM command))」というエラーが出ていました。 現在、「smtpd_sasl_auth_enable=yes」に変更したところ 「said: 530 5.7.0 Authentication required (in reply to MAIL FROM command))」に変わりました。 どうやらpostfixがSMTP認証で蹴られているようです。仕事上で利用しているのでとても困っています。 現在のpostfixの設定を記載しますので、ご存知の方、どうかアドバイスをお願いいたします。 mail.cf (関連する部分だけの抜粋とします。ご了承ください) relayhost = [smtp.nifty.com]:587 #add for ob25b smtpd_sasl_auth_enable = yes smtpd_sasl_password_maps = hash:/etc/postfix/nifty.pw smtpd_sasl_security_options = noanonymous smtpd_sasl_mechanism_filter = LOGIN, CRAM-MD5, PLAIN ---- EOF ---- nifty.pw(IDとパスワードは置き換えています) [smtp.nifty.com]:587 id:pass ---- EOF ---- master.cf # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (50) # ========================================================================== smtp inet n - n - - smtpd submission inet n - n - - smtpd -o smtpd_etrn_restrictions=reject -o smtpd_client_restrictions=permit_sasl_authenticated,reject ---- EOF ----
- ベストアンサー
- その他(ITシステム運用・管理)
- postfix設定について
こんにちは、 postfixadminに関する設定を行っているのですが、 アドレス登録時に、下記のようなエラーが発生してしまい、 データベース上には登録されるのですが、 メールボックスが作成されませんでした。 Postfix 2.3 Postfix Admin 2 MySQL 4.1 cyrus-sasl 2.1.19 Sep 8 18:00:20 host postfix/postfix-script: starting the Postfix mail system Sep 8 18:00:20 host postfix/master[5209]: daemon started -- version 2.3.12, configuration /etc/postfix Sep 8 18:01:02 host postfix/smtpd[5284]: warning: unsupported SASL server implementation: cyrus Sep 8 18:01:02 host postfix/smtpd[5284]: fatal: SASL per-process initialization failed Sep 8 18:01:03 host postfix/master[5209]: warning: process /usr/libexec/postfix/smtpd pid 5284 exit status 1 Sep 8 18:01:03 host postfix/master[5209]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Sep 8 18:02:03 host postfix/smtpd[5286]: warning: unsupported SASL server implementation: cyrus Sep 8 18:02:03 host postfix/smtpd[5286]: fatal: SASL per-process initialization failed Sep 8 18:02:04 host postfix/master[5209]: warning: process /usr/libexec/postfix/smtpd pid 5286 exit status 1 Sep 8 18:02:04 host postfix/master[5209]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
- ベストアンサー
- Linux系OS
- POSTFIXのエラーについて
CentOS6.8でメールサーバーをたてています。 Postfixを使ってサーバーを構築したのですが、ログにエラーが貯まっています。 >postfix/smtpd[23899]: fatal: open dictionary: expecting "type:name" form instead of ":" >postfix/master[22762]: warning: process /usr/libexec/postfix/smtpd pid 23899 exit status 1 >postfix/master[22762]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling このようなエラー?が一分おきに出ています。 これはどういう意味なのでしょうか?
- ベストアンサー
- Linux系OS
- Postfixで送信ができない
/var/log/syslog 10:33 solaris postfix/smtp[18719]: [ID 947731 mail.crit] fatal: open database /etc/postfix/saslpasswd.db: No such file or directory 10:34 solaris postfix/master[18715]: [ID 947731 mail.warning] warning: process /usr/libexec/postfix/smtp pid 18719 exit status 1 10:34 solaris postfix/master[18715]: [ID 947731 mail.warning] warning: /usr/libexec/postfix/smtp: bad command startup -- throttling となっているのですがsaslpasswdはあります。saslpasswd.dbにするために何かコマンドを打つ必要があるのでしょうか? また、後に出ているsmtpのエラーがよくわかりません、参考になるサイトなどご紹介いただけると幸いです /etc/postfix/main.cf alias_maps = dbm:/etc/mail/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 inet_interfaces = all mail_owner = postfix mail_spool_directory = /var/spool/mail mailq_path = /usr/bin/mailq manpage_directory = /usr/local/man mydestination = $myhostname, localhost myhostname = solaris mynetworks = 192.168.1.2, 127.0.0.0/8 myorigin = $myhostname newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix relayhost = [192.168.1.3]:587 sample_directory = /etc/postfix sendmail_path = /usr/lib/sendmail setgid_group = postdrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd smtp_sasl_security_options = noanonymous smtpd_banner = $myhostname ESMTP $mail_name unknown_local_recipient_reject_code = 550 /etc/postfix/saslpasswd [192.168.1.3]:587 username:password
- ベストアンサー
- Solaris系OS
- Postfixの設定について
LAN内にメールサーバA(postfix稼働)を構築し、 LAN内の各サーバからのメールは、全てメールサーバAを経由して、 外部の宛先へ送信されるように設定を行いたいと考えております。 各サーバはMSP(Mail Submission Program)としてsendmailが稼働しており、 /etc/mail/submit.cfを修正し、メールサーバAへメールが転送されるようになりましたが、 各サーバのログに「stat=Deferred: Connection refused」が出力され、メールが送信できておりません。 各サーバからtelnetを利用してメールを送信した場合は、正常に送信できております。 postconf -n の出力は以下の通りです(一部抜粋してあります) home_mailbox = Maildir/ inet_interfaces = all manpage_directory = /usr/share/man message_size_limit = 10485760 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mydomain = aaaaa.net myhostname = aaaaa.net mynetworks_style = subnet newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix relay_domains = $mydestination, bbbbbbb.ne.jp ← 外部へ送信する際のアドレス relayhost = [mail.aaaaaaaaa.ne.jp]:587 ← ISPのメールサーバを指定 smtp_sasl_auth_enable = yes smtp_sasl_mechanism_filter = LOGIN, CRAM-MD5, PLAIN smtp_sasl_password_maps = hash:/etc/postfix/authinfo smtp_sasl_security_options = noanonymous smtpd_banner = $myhostname ESMTP unknown smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname unknown_local_recipient_reject_code = 550 原因が分かる方がいれば、ご教示いただければと思います。 どうぞ宜しくお願いいたします。
- 締切済み
- その他(ITシステム運用・管理)
- Postfixのsmtp_sasl~ と smtpd_sasl~の違い
タイトルの通りでどちらも似たような書式・パラメータを持っていますが、この2つに違いは何か違いがあるのですか? 私の環境はfedora10にPostfixで本片手に勉強中の身で、その本では両方の設定をmain.cfに追加しています。Postfix側のSMTP認証のためにsmtpd_sasl、OP25B対策にsmtp_saslの項目を設定していると書いてあるのですが、後者はともかく、前者の意味がわかりません。 smtpd_sasl~の設定をコメントアウトし、メールソフトから送信テストしてみたところ、何事もなく認証が通り、メールが送信されているようなのでsmtpd_saslがなぜ必要なのか混乱しています。 わかる方いらっしゃいましたらご教授願います。
- ベストアンサー
- Linux系OS
- 自宅メールサーバについて
http://okwave.jp/qa2450886.htmlにて質問をさせていただきましたが、改めて設定を見直し、内部→内部 内部→外部の送信OK、外部→内部NGとなりました。設定方法が判らないため/etc/postfix/main.cfにrelayhost=[smtp.nifty.com]は削除しています。 設定内容です。 ・Postfix main.cf myhostname = *HOSTNAME*.dyndns.org mydomain = dyndns.org myorigin = $myhostname inet_interfaces = all #inet_interfaces = localhost #mydestination = $myhostname, localhost.$mydomain, localhost mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain local_recipient_maps = unix:passwd.byname $alias_maps # Enable SMTP Auth smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks, premit_auth_destination,permit_sasl_authenticated, reject content_filter = smtp-amavis:[127.0.0.1]:10024 ・postfix master.cf smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000
- ベストアンサー
- ハードウェア・サーバー
- Postfixで外部からメールが受信できない
Postfix(debian)でメールサーバ構築の勉強をしている者です。 バーチャルドメイン(VIRTUAL.********.**)に対して外部からメールを送信してみたのですが、gmailで送信した場合は成功し、携帯電話から送信した場合には失敗してしまいます。 失敗したときのログ[mail.log] Dec 30 21:31:36 ******** postfix/anvil[20511]: statistics: max connection rate 1/60s for (smtp:192.168.0.6) at Dec 30 21:27:24 Dec 30 21:31:36 ******** postfix/anvil[20511]: statistics: max connection count 1 for (smtp:192.168.0.6) at Dec 30 21:27:24 Dec 30 21:31:36 ******** postfix/anvil[20511]: statistics: max cache size 1 at Dec 30 21:27:24 [/etc/postfix/main.cf] smtpd_banner = $myhostname ESMTP biff = no append_dot_mydomain = no readme_directory = no smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache myhostname = mail.********.** mydomain = *******.** virtual_alias_domains = VIRTUAL.********.** virtual_alias_maps = regexp:/etc/postfix/virtual alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = $myhostname, localhost.$mydomain, $mydomain, localhost relayhost = [●●.jp] #OP25B対策 mynetworks = 192.168.1.0/24, 127.0.0.0/8 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all home_mailbox = Maildir/ message_size_limit = 1024000 [/etc/postfix/virtual] USERNAME@VIRTUAL.********.** USERNAME 送信元(携帯)にはInvalid Destination Domain (in reply to RCPT TO command)と通知されます。 ちなみに、mail.********.**に対しての送信は成功するようです。 どなたか御教授よろしくおねがいします。
- 締切済み
- その他(ITシステム運用・管理)
- postfixのSMPT_AUTH設定
FedoraCore6にpostfixをインストールしメールサーバとして使用したいと思っていますが、BIGLOBE(gooに質問あげてすみません)の中継サーバから弾かれてしまうようでログに下記のように書かれます。(教えてgooの禁止事項に当たるのでメールアドレスの部分は置き換えます。) Apr 24 11:11:44 fedora6 postfix/smtp[5005]: 1918D18482: to=<Yahooメールのアドレス>, relay=msagw.biglobe.ne.jp[133.205.103.17]:25, delay=0.21, delays=0.07/0.04/0.09/0.01, dsn=5.0.0, status=bounced (host msagw.biglobe.ne.jp[133.205.103.17] said: 530 Need AUTH before MAIL (in reply to MAIL FROM command)) SMPT_AUTHの設定としては下記のものを入れています。 main.cfに下記の行を追加 # Enable SMTP Auth smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject smtpd.confに下記の行を追加 mech_list: plain login cram-md5 digest-md5 どこが悪いのか分からなくて困っています。 あと足りない情報があるでしょうか。 宜しくお願いします。
- ベストアンサー
- Linux系OS
- amavisd-new設定
こんにちは、 postfix+postfixadmin+courier-imap メールサーバーの設定が終わり、 amavisd-newの設定を行っているのですが、 messagesログに下記のエラーが出ており、 送信キューは溜るのですが、 送信がされない状態になってしまいました。 content_filter=smtp-amavis:[127.0.0.1]:10024 をはずすと、正常に使うことが出来ることは 確認しました。 messagesログ ------------------------- Sep 13 21:13:01 host postfix/smtpd[8015]: sql_select option missing Sep 13 21:13:01 host postfix/smtpd[8015]: auxpropfunc error no mechanism available ------------------------- mail.cfに追加 ------------------------- content_filter=smtp-amavis:[127.0.0.1]:10024 ------------------------- master.cf設定(全文) ------------------------- smtp inet n - n - - smtpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp relay unix - - n - - smtp -o fallback_relay= showq unix n - n - - showq error unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} old-cyrus unix - n n - - pipe flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} cyrus unix - n n - - pipe user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient #ウィルスチェック smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 --------------------------
- 締切済み
- Linux系OS
お礼
ありがとうございます。 なんとなくはわかるんですが、この値を変える事に よって、どの様な影響が出るのか知りたい為、 詳細が知りたかった次第です。