• ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:メールサーバ postfix が設定できません。)

メールサーバ postfix 設定できず

catpowの回答

  • catpow
  • ベストアンサー率24% (620/2527)
回答No.2

>>どこを直せばいいでしょうか? メールサーバは、postfixはdovecotやpostfixadmin,mysqlなど多数のソフトと一緒に利用されることが多いですね。 postfixのみに限っても、設定ファイルも多く、また設定ファイルで指定すべき項目も多いです。 ですので、どこを直せばいいかは、このリストでは分かりません。 ちなみに、私も先週からCentOS7のインストール後、ソースコードからpostfixやその他の設定を行っていますけど、ネットに書かれた情報と、自分がインストールしたソフトのバージョンが違っていたり、パンチミスがあったり、自分の勘違いで値が違っていたりで、なかなか正常動作するまで時間がかかりました。 新品はもう買えず古本でしか入手できないようですけど、以下の本が、エラー原因を調査するために参考となりますよ。 私もこの本に書かれたやり方を参考に接続テストのコマンドを入力しながら、サーバ側のmaillogへのログ書き込みをチェックすることでエラー箇所を特定できて、さきほど正常動作するようになりました。 この本はAmazonより、3,428円で入手可能です。 Postfix実践入門 (Essential Software Guide Book) 単行本(ソフトカバー) 2010/9/3 清水 正人 (著)

jump7799
質問者

お礼

ご回答誠にありがとうございます。

関連するQ&A

  • # systemctl status httpd.

    いつも大変お世話になり、誠にありがとうございます。 表記の件。 apache2をインストールした後に、FireFoxで確認すると【1.2.3...】が出ますが 先に進めていくうちに、見れなくなります。 どうすれば直りますか? ご回答のほど、宜しくお願い申し上げます。 # systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since 月 2020-05-11 01:37:36 JST; 1min 2s ago Docs: man:httpd(8) man:apachectl(8) Process: 6811 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Process: 6815 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 6815 (code=exited, status=1/FAILURE) 5月 11 01:37:35 localhost.localdomain systemd[1]: Stopped The Apache HTTP Server. 5月 11 01:37:35 localhost.localdomain systemd[1]: Starting The Apache HTTP Server... 5月 11 01:37:36 localhost.localdomain httpd[6815]: AH00526: Syntax error on line ...: 5月 11 01:37:36 localhost.localdomain httpd[6815]: DocumentRoot '/var/www/html' i...e 5月 11 01:37:36 localhost.localdomain systemd[1]: httpd.service: main process exi...E 5月 11 01:37:36 localhost.localdomain systemd[1]: Failed to start The Apache HTTP.... 5月 11 01:37:36 localhost.localdomain systemd[1]: Unit httpd.service entered fail.... 5月 11 01:37:36 localhost.localdomain systemd[1]: httpd.service failed. Hint: Some lines were ellipsized, use -l to show in full.

  • sshポートフォワーディングがサービス化出来ない

    以下内容でserviceファイルを作成しserviceを起動したところうまく起動しません。手動でExecStartの内容をそのまま実行すると問題なく動作します。何が考えられますでしょうか。 OS:Centos7 実行は全てrootで実行しています。 よろしくお願いいたします。 serviceファイルの内容 ============= [Unit] Description=SSH Port Forwarding After=network.target [Service] #User=root ExecStart=/usr/bin/ssh -i /mnt/disk01/rdskey/xxxxxxxx.pem -L 5439:xxxxxx.xxxxx.xxxxxx.rds.amazonaws.com:5432 -o ServerAliveInterval=30 xxxxxxx@xxx.xxx.xxx.xxx -p 22 -N -f [Install] WantedBy=multi-user.target status ================================= [root@localhost ~]# systemctl status portforward.service ● portforward.service - SSH Port Forwarding Loaded: loaded (/etc/systemd/system/portforward.service; disabled; vendor preset: disabled) Active: inactive (dead) 4月 11 16:54:13 localhost.localdomain systemd[1]: portforward.service: main process exited, code=exited, status=217/USER 4月 11 16:54:13 localhost.localdomain systemd[1]: Unit portforward.service entered failed state. 4月 11 16:54:13 localhost.localdomain systemd[1]: portforward.service failed. 4月 11 16:57:34 localhost.localdomain systemd[1]: Started SSH Port Forwarding. 4月 11 16:57:34 localhost.localdomain systemd[1]: portforward.service: main process exited, code=exited, status=217/USER 4月 11 16:57:34 localhost.localdomain systemd[1]: Unit portforward.service entered failed state. 4月 11 16:57:34 localhost.localdomain systemd[1]: portforward.service failed. 4月 11 16:58:20 localhost.localdomain systemd[1]: Started SSH Port Forwarding. 4月 11 17:02:10 localhost.localdomain systemd[1]: Started SSH Port Forwarding.

  • apache2が起動しない。

    いつもお世話になり誠にありがとうございます。 標記の件。 下記のとおり、どうしてもapache2が起動しません。 どう対処すればいいでしょうか? ご回答の程、宜しくお願い申し上げます。    記 systemctl stop apache2 localhost:/home/kou # systemctl start apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details. localhost:/home/kou # systemctl status apache2.service × apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2022-06-27 07:38:22 JST; 1min 4s ago Process: 9015 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FA> Main PID: 9015 (code=exited, status=1/FAILURE) Status: "Reading configuration..." Jun 27 07:38:22 localhost systemd[1]: Starting The Apache Webserver... Jun 27 07:38:22 localhost start_apache2[9015]: (98)Address already in use: AH00072: make_sock: could not bind> Jun 27 07:38:22 localhost start_apache2[9015]: (98)Address already in use: AH00072: make_sock: could not bind> Jun 27 07:38:22 localhost start_apache2[9015]: no listening sockets available, shutting down Jun 27 07:38:22 localhost start_apache2[9015]: AH00015: Unable to open logs Jun 27 07:38:22 localhost systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE Jun 27 07:38:22 localhost systemd[1]: apache2.service: Failed with result 'exit-code'. Jun 27 07:38:22 localhost systemd[1]: Failed to start The Apache Webserver. lines 1-15/15 (END)

  • 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

  • Apache2にSSLを導入したら起動しなくなった

    apache2が立ち上がらなくて大変困っています。 httpのときは動作していましたがSSLを導入してhttps化したら立ち上がらなくなり解決方法もわかりません。 助けてください。 apache2を起動すると、 apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2023-12-17 11:09:17 JST; 7min ago Docs: https://httpd.apache.org/docs/2.4/ Process: 6482 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) 12月 17 11:09:17 raspberrypi3 systemd[1]: Starting The Apache HTTP Server... 12月 17 11:09:17 raspberrypi3 apachectl[6482]: Action 'start' failed. 12月 17 11:09:17 raspberrypi3 apachectl[6482]: The Apache error log may have more information. 12月 17 11:09:17 raspberrypi3 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE 12月 17 11:09:17 raspberrypi3 systemd[1]: apache2.service: Failed with result 'exit-code'. 12月 17 11:09:17 raspberrypi3 systemd[1]: Failed to start The Apache HTTP Server. となるので、journalctl -xeすると、 -- The job identifier is 3687. 12月 17 11:09:17 raspberrypi3 apachectl[6482]: Action 'start' failed. 12月 17 11:09:17 raspberrypi3 apachectl[6482]: The Apache error log may have more information. 12月 17 11:09:17 raspberrypi3 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE -- Subject: Unit process exited -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- An ExecStart= process belonging to unit apache2.service has exited. -- -- The process' exit code is 'exited' and its exit status is 1. 12月 17 11:09:17 raspberrypi3 systemd[1]: apache2.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- The unit apache2.service has entered the 'failed' state with result 'exit-code'. 12月 17 11:09:17 raspberrypi3 systemd[1]: Failed to start The Apache HTTP Server. -- Subject: A start job for unit apache2.service has failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- A start job for unit apache2.service has finished with a failure. -- -- The job identifier is 3687 and the job result is failed. と表示されます。

  • Postfixの起動出来ない

    現在RedHat AS2.1でメールサーバの構築を行っており、 Postfixを使用していますが、Postfixの起動時に 下記のエラーとなり、起動出来ていない状態です。 どのように回避すればよいか教えて下さい。 postfix/postfix-script: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ postfix/postfix-script: warning: Replace one by a symbolic link to the other postfix/postfix-script: starting the Postfix mail system postfix/master[9030]: warning: process /usr/libexec/postfix/smtp pid 9060 exit status 1 postfix/master[9030]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

  • Ubuntuでのデータディレクトリの変更

    Raspberry Pi 3にインストールしたUbuntu Mate 16.04にMySQLをインストールしました。 そこで、データディレクトリを外付けHDDに移動しようと考えています。 (外付けHDDは/dataにマウント済みでchmod 777 /dataとしてあります。) uname -a は Linux raspberry 4.4.13-v7+ #893 SMP Wed Jun 8 14:39:18 BST 2016 armv7l armv7l armv7l GNU/Linux mysqld --version は mysqld Ver 5.7.12-0ubuntu1 for Linux on armv7l ((Ubuntu)) となっています。 行ったこと。 ・sudo apt-get install mysql-server ・sudo systemctl stop mysql ・sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf で datadir = /var/lib/mysql から datadir = /data/mysql に変更 ・sudo vi /etc/apparmor.d/local/usr.sbin.mysqld に /data/mysql r, /data/mysql/** rwk, を追加。 ・sudo mv /var/lib/mysql /var/lib/mysql.orig ・sudo mysqld --initialize ここまでで/data/mysqlが作成され、その下に/var/lib/mysql.origと同じファイルやディレクトリが作成されたことを確認しました。 そこで、 sudo systemctl start mysql を実行すると Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. と出てMySQLの起動に失敗します。 systemctl status mysql.service の結果は ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) Active: inactive (dead) (Result: exit-code) since 日 2016-06-12 23:38:36 JST; 16s ago Process: 10181 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS) Process: 10180 ExecStart=/usr/sbin/mysqld (code=exited, status=0/SUCCESS) Process: 13372 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE) Main PID: 10180 (code=exited, status=0/SUCCESS) 6月 12 23:38:35 raspberry systemd[1]: Failed to start MySQL Community Server. 6月 12 23:38:35 raspberry systemd[1]: mysql.service: Unit entered failed state. 6月 12 23:38:35 raspberry systemd[1]: mysql.service: Failed with result 'exit-code'. 6月 12 23:38:36 raspberry systemd[1]: mysql.service: Service hold-off time over, scheduling restart. 6月 12 23:38:36 raspberry systemd[1]: Stopped MySQL Community Server. 6月 12 23:38:36 raspberry systemd[1]: mysql.service: Start request repeated too quickly. 6月 12 23:38:36 raspberry systemd[1]: Failed to start MySQL Community Server. となっています。 journal -xe の結果は -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit brltty.service has finished shutting down. 6月 12 23:41:26 raspberry systemd[1]: Started Braille Device Support. -- Subject: Unit brltty.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit brltty.service has finished starting up. -- -- The start-up result is done. 6月 12 23:41:26 raspberry systemd[13418]: brltty.service: Failed at step SECCOMP spawning /bin/sh: Invalid argument -- Subject: Process /bin/sh could not be executed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The process /bin/sh could not be executed and failed. -- -- The error number returned by this process is 22. 6月 12 23:41:26 raspberry systemd[1]: brltty.service: Main process exited, code=exited, status=228/SECCOMP 6月 12 23:41:26 raspberry systemd[1]: brltty.service: Unit entered failed state. 6月 12 23:41:26 raspberry systemd[1]: brltty.service: Failed with result 'exit-code'. となっています。 ここまで行って手詰まりになってしまいました。 大変恐縮ですが、ここまでの手順で足りないところ、間違っているところなどありましたらご教示ください。 よろしくお願いいたします。

  • Apache2 failed

    これ、どうすれば直るでしょうか? どうか、ご回答願います。 # systemctl restart apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. root@GN164:/var# systemctl restart apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. root@GN164:/var# systemctl status apache2.service ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese> Active: failed (Result: exit-code) since Tue 2020-08-25 08:05:56 JST; 2min> Docs: https://httpd.apache.org/docs/2.4/ Process: 6775 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FA> 8月 25 08:05:56 GN164 systemd[1]: Starting The Apache HTTP Server... 8月 25 08:05:56 GN164 apachectl[6783]: AH00526: Syntax error on line 13 of /et> 8月 25 08:05:56 GN164 apachectl[6783]: <VirtualHost> cannot occur within <Virt> 8月 25 08:05:56 GN164 apachectl[6775]: Action 'start' failed. 8月 25 08:05:56 GN164 apachectl[6775]: The Apache error log may have more info> 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Control process exited, cod> 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Failed with result 'exit-co> 8月 25 08:05:56 GN164 systemd[1]: Failed to start The Apache HTTP Server. [1]+ 停止 systemctl status apache2.service root@GN164:/var# journalctl -xe 8月 25 08:05:56 GN164 apachectl[6775]: The Apache error log may have more info> 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Control process exited, cod> -- Subject: Unit process exited -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- An ExecStart= process belonging to unit apache2.service has exited. -- -- The process' exit code is 'exited' and its exit status is 1. 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Failed with result 'exit-co> -- Subject: Unit failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- The unit apache2.service has entered the 'failed' state with result 'exit-co> 8月 25 08:05:56 GN164 systemd[1]: Failed to start The Apache HTTP Server. -- Subject: A start job for unit apache2.service has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- A start job for unit apache2.service has finished with a failure. -- -- The job identifier is 2046 and the job result is failed. lines 1313-1335/1335 (END)

  • 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 このようなエラー?が一分おきに出ています。 これはどういう意味なのでしょうか?

  • ドメインに参加しているのにWinbind起動エラー

    複数の質問投稿で大変恐縮です。 CentOS7にSambaを入れ、ファイルサーバーとして運用したいと考えています。 同じくSambaで構築したドメインに「net ads join -U administrator」のコマンドで参加できました。 その後で、winbind をstartさせようとしましたが、下記エラーで起動できません。 (centos70がファイルサーバーのコンピューター名、test.comがドメイン名です。) winbind.service - Samba Winbind Daemon Loaded: loaded (/usr/lib/systemd/system/winbind.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 水 2019-07-17 22:16:22 JST; 7min ago Docs: man:winbindd(8) man:samba(7) man:smb.conf(5) Process: 30514 ExecStart=/usr/sbin/winbindd --foreground --no-process-group $WINBINDOPTIONS (code=exited, status=1/FAILURE) Main PID: 30514 (code=exited, status=1/FAILURE) 7月 17 22:16:22 centos70.test.com winbindd[30514]: [2019/07/17 22:16:22.756390, 0] ../source3/winbindd/winbindd_cache.c:31...cache) 7月 17 22:16:22 centos70.test.com winbindd[30514]: initialize_winbindd_cache: clearing cache and re-creating with version number 2 7月 17 22:16:22 centos70.test.com winbindd[30514]: [2019/07/17 22:16:22.758942, 0] ../source3/winbindd/winbindd_util.c:126..._list) 7月 17 22:16:22 centos70.test.com winbindd[30514]: Could not fetch our SID - did we join? 7月 17 22:16:22 centos70.test.com winbindd[30514]: [2019/07/17 22:16:22.758970, 0] ../source3/winbindd/winbindd.c:1360(win...dlers) 7月 17 22:16:22 centos70.test.com winbindd[30514]: unable to initialize domain list 7月 17 22:16:22 centos70.test.com systemd[1]: winbind.service: main process exited, code=exited, status=1/FAILURE 7月 17 22:16:22 centos70.test.com systemd[1]: Failed to start Samba Winbind Daemon. 7月 17 22:16:22 centos70.test.com systemd[1]: Unit winbind.service entered failed state. 7月 17 22:16:22 centos70.test.com systemd[1]: winbind.service failed. Hint: Some lines were ellipsized, use -l to show in full. このためか、smbも下記エラーで起動できません。 ● smb.service - Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 水 2019-07-17 22:23:44 JST; 13min ago Docs: man:smbd(8) man:samba(7) man:smb.conf(5) Process: 31073 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=255) Main PID: 31073 (code=exited, status=255) 7月 17 22:23:43 centos70.test.com systemd[1]: Starting Samba SMB Daemon... 7月 17 22:23:44 centos70.test.com smbd[31073]: [2019/07/17 22:23:44.050879, 0] ../source3/auth/auth_util.c:1372(make_new_s...guest) 7月 17 22:23:44 centos70.test.com smbd[31073]: create_local_token failed: NT_STATUS_NO_MEMORY 7月 17 22:23:44 centos70.test.com smbd[31073]: [2019/07/17 22:23:44.050927, 0] ../source3/smbd/server.c:1993(main) 7月 17 22:23:44 centos70.test.com smbd[31073]: ERROR: failed to setup guest info. 7月 17 22:23:44 centos70.test.com systemd[1]: smb.service: main process exited, code=exited, status=255/n/a 7月 17 22:23:44 centos70.test.com systemd[1]: Failed to start Samba SMB Daemon. 7月 17 22:23:44 centos70.test.com systemd[1]: Unit smb.service entered failed state. 7月 17 22:23:44 centos70.test.com systemd[1]: smb.service failed. Hint: Some lines were ellipsized, use -l to show in full. nmbサービスは起動します。 smb.confの内容は下記の通りです。 [global] dos charset = CP932 unix charset = UTF-8 wins support = yes workgroup = TEST # password server = 192.168.12.9 realm = TEST.COM security = ads # idmap config * : range = 16777216-33554431 idmap config TEST:backend = rid idmap config TEST:range = 20000-29999 template shell = /bin/bash kerberos method = secrets only winbind use default domain = true winbind offline logon = false log level = 1 [shared] path = /mnt/strage writeable = yes comment = test.com ShareFolder vfs objects = acl_xattr acl_xattr:ignore system acls = yes Winbindとsmbを起動するにはどうすればよろしいでしょうか。 何卒ご教示いただけますと幸いです。よろしくお願い申し上げます。