質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Postfix

Postfixは、電子メールサーバソフトウェアで、 メールを配送するシステムMTAの一種です。

Q&A

解決済

2回答

5843閲覧

Mastodonにてpostfixを利用したメール送信が出来ません

RhymeLight

総合スコア12

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Postfix

Postfixは、電子メールサーバソフトウェアで、 メールを配送するシステムMTAの一種です。

0グッド

0クリップ

投稿2017/05/24 08:57

編集2017/05/24 12:33

###前提・実現したいこと
現在、Mastodonを構築中です。
先程、postfixについてご質問した後でございますが質問させて頂きます。
マストドンにメールを送らせようしましたが、失敗します。

###発生している問題・エラーメッセージ
Sidekiq画面にて

Net::SMTPFatalError: 550 5.7.1 Relaying denied

###.env.production
編集した部分です

~省略~ # E-mail configuration # Note: Mailgun and SparkPost (https://sparkpo.st/smtp) each have good free tiers # If you want to use an SMTP server without authentication (e.g local Postfix relay) # then set SMTP_AUTH_METHOD to 'none' and *comment* SMTP_LOGIN and SMTP_PASSWORD. # Leaving them blank is not enough for authentication method 'none'. SMTP_SERVER=tk2-230-24926.vs.sakura.ne.jp SMTP_PORT=25 SMTP_LOGIN= SMTP_PASSWORD= SMTP_FROM_ADDRESS=root@utbs.info #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail SMTP_AUTH_METHOD=plain SMTP_OPENSSL_VERIFY_MODE=none SMTP_ENABLE_STARTTLS_AUTO=true ~省略~

###config/environments/production.rb

Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web servers # and those relying on copy on write to perform better. # Rake tasks automatically ignore this option for performance. config.eager_load = true # Full error reports are disabled and caching is turned on. config.consider_all_requests_local = false config.action_controller.perform_caching = true config.action_controller.asset_host = ENV['CDN_HOST'] if ENV.key?('CDN_HOST') # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. config.assets.js_compressor = Uglifier.new(mangle: false) # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # Specifies the header that your server uses for sending files. # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # Allow to specify public IP of reverse proxy if it's needed config.action_dispatch.trusted_proxies = [IPAddr.new(ENV['TRUSTED_PROXY_IP'])] unless ENV['TRUSTED_PROXY_IP'].blank? # By default, use the lowest log level to ensure availability of diagnostic information # when problems arise. config.log_level = ENV.fetch('RAILS_LOG_LEVEL', 'info').to_sym # Prepend all log lines with the following tags. config.log_tags = [:request_id] # Use a different logger for distributed setups. # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Parse and split the REDIS_URL if passed (used with hosting platforms such as Heroku). # Set ENV variables because they are used elsewhere. if ENV['REDIS_URL'] redis_url = URI.parse(ENV['REDIS_URL']) ENV['REDIS_HOST'] = redis_url.host ENV['REDIS_PORT'] = redis_url.port.to_s ENV['REDIS_PASSWORD'] = redis_url.password db_num = redis_url.path[1..-1] ENV['REDIS_DB'] = db_num if db_num.present? end # Use a different cache store in production. config.cache_store = :redis_store, { host: ENV.fetch('REDIS_HOST') { 'localhost' }, port: ENV.fetch('REDIS_PORT') { 6379 }, password: ENV.fetch('REDIS_PASSWORD') { false }, db: ENV.fetch('REDIS_DB') { 0 }, namespace: 'cache', expires_in: 10.minutes, } # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = 'http://assets.example.com' # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new # Better log formatting config.lograge.enabled = true # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false config.action_mailer.perform_caching = false # E-mails config.action_mailer.smtp_settings = { :port => ENV['SMTP_PORT'], :address => ENV['SMTP_SERVER'], # :user_name => ENV['SMTP_LOGIN'].presence, # :password => ENV['SMTP_PASSWORD'].presence, :domain => ENV['SMTP_DOMAIN'] || ENV['LOCAL_DOMAIN'], :authentication => ENV['SMTP_AUTH_METHOD'] == 'none' ? nil : ENV['SMTP_AUTH_METHOD'] || :plain, :openssl_verify_mode => ENV['SMTP_OPENSSL_VERIFY_MODE'], :enable_starttls_auto => ENV['SMTP_ENABLE_STARTTLS_AUTO'] || true, } config.action_mailer.delivery_method = ENV.fetch('SMTP_DELIVERY_METHOD', 'smtp').to_sym config.react.variant = :production config.to_prepare do StatsD.backend = StatsD::Instrument::Backends::NullBackend.new if ENV['STATSD_ADDR'].blank? Sidekiq::Logging.logger.level = Logger::WARN end config.action_dispatch.default_headers = { 'Server' => 'Mastodon', 'X-Frame-Options' => 'DENY', 'X-Content-Type-Options' => 'nosniff', 'X-XSS-Protection' => '1; mode=block', } end

###試したこと
下記のサイトを参考にしました
http://qiita.com/ymchn/items/1df8453fd2c8ceb8ad71
http://scriptlife.hacca.jp/contents/programming/2017/04/26/post-2278/

###補足情報(言語/FW/ツール等のバージョンなど)
CentOS7
postfix
Mastodon

###追記
postfixの設定を見直しを行った所

[root@tk2-230-24926 mastodon]# systemctl status postfix.service ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 水 2017-05-24 21:28:42 JST; 26s ago Process: 28007 ExecStop=/usr/sbin/postfix stop (code=exited, status=1/FAILURE) Process: 28281 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE) Process: 28279 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 28275 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) Main PID: 23625 (code=killed, signal=TERM) 5月 24 21:28:40 tk2-230-24926.vs.sakura.ne.jp systemd[1]: Starting Postfix Mail Transport Agent... 5月 24 21:28:40 tk2-230-24926.vs.sakura.ne.jp postfix/postfix-script[28351]: starting the Postfix mail system 5月 24 21:28:40 tk2-230-24926.vs.sakura.ne.jp postfix/master[28353]: fatal: open lock file /var/lib/postfix/master.lock: unable to set exclusive lock: Resource temporarily unavailable 5月 24 21:28:41 tk2-230-24926.vs.sakura.ne.jp postfix/master[28352]: fatal: daemon initialization failure 5月 24 21:28:42 tk2-230-24926.vs.sakura.ne.jp postfix/postfix-script[28354]: fatal: mail system startup failed 5月 24 21:28:42 tk2-230-24926.vs.sakura.ne.jp systemd[1]: postfix.service: control process exited, code=exited status=1 5月 24 21:28:42 tk2-230-24926.vs.sakura.ne.jp systemd[1]: Failed to start Postfix Mail Transport Agent. 5月 24 21:28:42 tk2-230-24926.vs.sakura.ne.jp systemd[1]: Unit postfix.service entered failed state. 5月 24 21:28:42 tk2-230-24926.vs.sakura.ne.jp systemd[1]: postfix.service failed.
[root@tk2-230-24926 mastodon]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix 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 home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 10485760 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = utbs.info myhostname = tk2-230-24926.vs.sakura.ne.jp mynetworks = tk2-230-24926.vs.sakura.ne.jp myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES relayhost = $mydomain sample_directory = /usr/share/doc/postfix-2.10.1/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes unknown_local_recipient_reject_code = 550

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

ベストアンサー

tk2-230-24926.vs.sakura.ne.jp が postfix で、25番ポートで認証なしでメールを送信したいのですよね?

550 5.7.1 Relaying denied

postfix で Mastodon ホストからのリレーが許可されていないようです。
postfix の main.cf の設定で、mynetworks に Mastodon の IPアドレスを追加する必要があります。
もし、postfix が Mastodon と同じホストならば、SMTP_SERVER=localhost または SMTP_SERVER=127.0.0.1 に変更するといいと思います。

投稿2017/05/24 11:32

TaichiYanagiya

総合スコア12141

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

RhymeLight

2017/05/24 11:58

main.cf内 mynetworks=tk2-230-24926.vs.sakura.ne.jp を追加し、 .env.production SMTP_SERVER=127.0.0.1 に変更した所、 RuntimeError: Invalid delivery method :"smtp # delivery method can also be sendmail" というエラーが発生いたしました。
TaichiYanagiya

2017/05/24 12:04

このエラーは以前から出ていたのですか? 「SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail」の「#」以降がコメントと認識されていないようです。 「#」以降を削除して「SMTP_DELIVERY_METHOD=smtp」のみにするとどうですか?
RhymeLight

2017/05/24 12:13

#以降を削除しました SMTP_SERVER=127.0.0.1 SMTP_PORT=25 SMTP_LOGIN= SMTP_PASSWORD= SMTP_FROM_ADDRESS=root@utbs.info #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN SMTP_DELIVERY_METHOD=smtp SMTP_AUTH_METHOD=plain SMTP_OPENSSL_VERIFY_MODE=none SMTP_ENABLE_STARTTLS_AUTO=true Sidekiqにて確認した所、 Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 25 と出ました
TaichiYanagiya

2017/05/24 12:17

postfix が停止しているのではないですか? それとも postfix と Mastodon は同じホストではないのでしょうか?
RhymeLight

2017/05/24 12:24

posfixとMastodonは同じホストで利用しています。 コンソールにて # postfix reload を行いましたが上記のエラーが出ております。
TaichiYanagiya

2017/05/24 12:29

"service postfix status" の結果、および、"postconf -n" の結果を教えてもらえませんか?
RhymeLight

2017/05/24 12:33

追記に追加しました。ご確認下さい。
TaichiYanagiya

2017/05/24 12:43

systemctl や service コマンドを使わずに postfix を起動したりしていませんでしょうか。 何らかのプロセスが /var/lib/postfix/master.lock ファイルを使用中ですので、"lsof /var/lib/postfix/master.lock" で使用しているプロセスID (PID)を調べて、"kill PID" でプロセスを停止後、"systemctl start postfix" で起動してみてください。
RhymeLight

2017/05/24 12:50

[root@tk2-230-24926 mastodon]# lsof /var/lib/postfix/master.lock COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME master 28086 root 11uW REG 253,4 33 9529242 /var/lib/postfix/master.lock [root@tk2-230-24926 mastodon]# kill 28086 [root@tk2-230-24926 mastodon]# systemctl start postfix [root@tk2-230-24926 mastodon]# lsof /var/lib/postfix/master.lock COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME master 28756 root 11uW REG 253,4 33 9529242 /var/lib/postfix/master.lock [root@tk2-230-24926 mastodon]# systemctl status postfix.service ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; disabled; vendor preset: disabled) Active: active (running) since 水 2017-05-24 21:46:22 JST; 2min 11s ago Process: 28007 ExecStop=/usr/sbin/postfix stop (code=exited, status=1/FAILURE) Process: 28684 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS) Process: 28680 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 28677 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) Main PID: 28756 (master) Memory: 3.5M CGroup: /system.slice/postfix.service tq28756 /usr/libexec/postfix/master -w tq28757 pickup -l -t unix -u mq28758 qmgr -l -t unix -u 5月 24 21:46:21 tk2-230-24926.vs.sakura.ne.jp systemd[1]: Starting Postfix Mail Transport Agent... 5月 24 21:46:22 tk2-230-24926.vs.sakura.ne.jp postfix/master[28756]: daemon started -- version 2.10.1, configuration /etc/postfix 5月 24 21:46:22 tk2-230-24926.vs.sakura.ne.jp systemd[1]: Started Postfix Mail Transport Agent. Sidekiq上にて Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 25 となっております
TaichiYanagiya

2017/05/24 12:50

あと、main.cf の mynetworks はデフォルトから書き換えてしまっているのですね。 "mynetworks = tk2-230-24926.vs.sakura.ne.jp, 127.0.0.0/8" と追加して、"systemctl reload postfix" で反映させてください。
TaichiYanagiya

2017/05/24 12:51

SELinux は有効ですか? "getenforce" コマンドの結果を教えてください。
RhymeLight

2017/05/24 12:55

main.cfにて mynetworks = tk2-230-24926.vs.sakura.ne.jp, 127.0.0.0/8 と変更し、systemctl reload postfixを行いました。 [root@tk2-230-24926 mastodon]# getenforce Disabled でした
TaichiYanagiya

2017/05/24 13:07

"inet_interfaces = all" なので全I/F で Listen していて、SELinux も無効ですので、127.0.0.1:25 に接続はできるはずなのですが、「Connection refused - connect(2) for "127.0.0.1" port 25」の原因がわかりません。 もしかすると、sendmail をインストールしたことで、/usr/sbin/sendmail.sendmail が優先されているのかもしれません。 sendmail をアンインストールするか、"alternatives --config mta" で /usr/sbin/sendmail.postfix を選んでみてください。
TaichiYanagiya

2017/05/24 13:15

あとは、ファイアーウォール(firewalld, iptables) で何か設定していませんでしょうか。
RhymeLight

2017/05/24 13:20

[root@tk2-230-24926 mastodon]# alternatives --config mta 2 プログラムがあり 'mta' を提供します。 選択 コマンド ----------------------------------------------- + 1 /usr/sbin/sendmail.postfix * 2 /usr/sbin/sendmail.sendmail Enter を押して現在の選択 [+] を保持するか、選択番号を入力します:1 Sidekiq上にて Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.0.1" port 25 となりました
RhymeLight

2017/05/24 13:23

[root@tk2-230-24926 mastodon]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: docker0 eth0 sources: services: dhcpv6-client http https imap imaps pop3 pop3s smtps ssh ports: 3000/tcp 4000/tcp 25/tcp protocols: masquerade: no forward-ports: sourceports: icmp-blocks: rich rules: でした。
TaichiYanagiya

2017/05/24 13:38

ん? 「docker0」? Mastodon が Docker コンテナで、postfix がホスト側ということなのですね? Mastodon の 127.0.0.1:25 では postfix は動いていないので、接続できないです。 すみません、「同じホスト」の認識が合っていなかったようです。 まず、Mastodon 側を「SMTP_SERVER=tk2-230-24926.vs.sakura.ne.jp」に戻します。 次に、postfix 側 main.cf を「mynetworks = tk2-230-24926.vs.sakura.ne.jp, 127.0.0.1/8, (docker0 のネットワークアドレス)」にします。 (docker0 のネットワークアドレス)は "ip addr show dev docker0" で inet で始まる行で確認ください。例えば、172.17.0.1/16 ならばホスト部を 0 にして、172.17.0.0/16 を mynetworks に追加します。 これでも、「550 5.7.1 Relaying denied」となるならば、/var/log/mailog に手がかりがあると思うので、教えてください。
RhymeLight

2017/05/24 14:16

上記の設定を行い、Dockerを再起動しました Sideliq上では Net::SMTPServerBusy: 451 4.3.0 <rhyme_light_mood@yahoo.co.jp>: Temporary lookup failure となり # cat /var/log/mailog ※長かったので割愛します May 24 23:14:33 tk2-230-24926 postfix/smtpd[2814]: connect from unknown[172.18.0.4] May 24 23:14:33 tk2-230-24926 postfix/smtpd[2814]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead May 24 23:14:33 tk2-230-24926 postfix/smtpd[2814]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead May 24 23:14:33 tk2-230-24926 postfix/smtpd[2814]: NOQUEUE: reject: RCPT from unknown[172.18.0.4]: 451 4.3.0 <rhyme_light_mood@yahoo.co.jp>: Temporary lookup failure; from=<root@utbs.info> to=<rhyme_light_mood@yahoo.co.jp> proto=ESMTP helo=<mstdn.utbs.info> May 24 23:14:33 tk2-230-24926 postfix/smtpd[2814]: warning: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead May 24 23:14:33 tk2-230-24926 postfix/smtpd[2814]: disconnect from unknown[172.18.0.4]
TaichiYanagiya

2017/05/24 14:19

ごめんなさい、mynetworks の Typo がありました。 「127.0.0.1/8」→「127.0.0.0/8」
RhymeLight

2017/05/24 14:26

mynetworksの修正を行いました Net::SMTPFatalError: 554 5.7.1 <rhyme_light_mood@yahoo.co.jp>: Relay access denied maillog上にて May 24 23:25:31 tk2-230-24926 postfix/smtpd[3986]: connect from unknown[172.18.0.6] May 24 23:25:31 tk2-230-24926 postfix/smtpd[3986]: NOQUEUE: reject: RCPT from unknown[172.18.0.6]: 554 5.7.1 <rhyme_light_mood@yahoo.co.jp>: Relay access denied; from=<root@utbs.info> to=<rhyme_light_mood@yahoo.co.jp> proto=ESMTP helo=<mstdn.utbs.info> May 24 23:25:31 tk2-230-24926 postfix/smtpd[3986]: disconnect from unknown[172.18.0.6]
TaichiYanagiya

2017/05/24 14:33

(docker0 のネットワークアドレス)は 172.18.0.0/16 または 172.18.0.0/24 ではありませんか? mynetworks を確認ください。
RhymeLight

2017/05/24 14:41

[root@tk2-230-24926 mastodon]# ip addr show dev docker0 5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN link/ether 02:42:a3:fa:74:5c brd ff:ff:ff:ff:ff:ff inet 172.17.0.1/16 scope global docker0 valid_lft forever preferred_lft forever でした。 postfix側 mynetworks = tk2-230-24926.vs.sakura.ne.jp, 127.0.0.0/8, 172.17.0.0/16 に変更しております。
TaichiYanagiya

2017/05/24 14:49

確かに、docker0 は 172.17.0.0/16 ですが、maillog を見るとコンテナからの接続は 172.18.0.6 です。 ここはどうなっているのかわからないのですが、試しに、「mynetworks = tk2-230-24926.vs.sakura.ne.jp, 127.0.0.0/8, 172.18.0.6」にして試してもらえますか? コンテナの IPアドレスは起動するたびに変わると思うので、ネットワークアドレスで許可したいところ ですが。
RhymeLight

2017/05/24 14:59

mynetworksの変更を行いました。 Sidekiq上のエラーがなくなりました・・・がメールが届いてないようです。 maillog上にて May 24 23:53:51 tk2-230-24926 postfix/smtpd[4981]: connect from unknown[172.18.0.6] May 24 23:53:51 tk2-230-24926 postfix/smtpd[4981]: 3260FC00578F: client=unknown[172.18.0.6] May 24 23:53:51 tk2-230-24926 postfix/cleanup[4984]: 3260FC00578F: message-id=<59259e7f2e5e5_13fd902260ff0477b3@668534bd7d80.mail> May 24 23:53:51 tk2-230-24926 postfix/smtpd[4981]: disconnect from unknown[172.18.0.6] May 24 23:53:51 tk2-230-24926 postfix/qmgr[4966]: 3260FC00578F: from=<root@utbs.info>, size=2576, nrcpt=1 (queue active) May 24 23:53:51 tk2-230-24926 postfix/smtp[4985]: warning: relayhost configuration problem May 24 23:53:51 tk2-230-24926 postfix/smtp[4985]: 3260FC00578F: to=<rhyme_light_mood@yahoo.co.jp>, relay=none, delay=0.02, delays=0.01/0/0.01/0, dsn=4.3.5, status=deferred (mail for utbs.info loops back to myself)
TaichiYanagiya

2017/05/24 15:19

リレーは許可されて、メールキューに溜まっているものと思われます。 「relayhost = $mydomain」で、$mydomain が自ホストなので、ループして外部にメールを送れません。 relayhost 設定を削除して、DNS MX宛に送るようにするといいと思います。
RhymeLight

2017/05/24 15:39

relayhost = $mydomainを削除した所、正常にメールが送信されることを確認しました。 長時間に渡り、お付き合い頂きありがとうございました。
guest

0

不正が疑われる送信というか転送(リレー)を破棄していますね。

/etc/mail/access ファイルの設定の問題かと思われます。

Connect:localhost.localdomain RELAY Connect:127.0.0.1 RELAY

と書けば、サーバ内でのリレーが可能になる筈ですので、
一度上記ファイルを確認してみてください。

投稿2017/05/24 09:35

編集2017/05/24 09:51
nora_kuragen

総合スコア101

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

RhymeLight

2017/05/24 10:10

確認してみた所、sendmailがインストールされておらず、新規にインストールを行いました # Check the /usr/share/doc/sendmail/README.cf file for a description # of the format of this file. (search for access_db in that file) # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc # package. # # If you want to use AuthInfo with "M:PLAIN LOGIN", make sure to have the # cyrus-sasl-plain package installed. # # By default we allow relaying from localhost... Connect:localhost.localdomain RELAY Connect:localhost RELAY Connect:127.0.0.1 RELAY となっておりました
RhymeLight

2017/05/24 10:29

再度、Sidekiqを確認して見たところ、 RuntimeError: Invalid delivery method :"smtp # delivery method can also be sendmail" となっておりました
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問