Straightforward direct-delivery incoming mail

Hey, @JoshuaJoma. I’ve got a configuration that modifies the mail receiver to use the let’s encrypt certs that app.yml generates and maintains. It’s now standard on my installs. If you already have a working Standard Install, I’ll install the mail receiver for $150–Incoming Mail Server – Literate Computing, LLC.

Hey, @mpalmer. Would you be interested in a PR? It’s just opening up ports 465 & 587, adding the let’s encrypt volume, and adding some POSTCONF_smtpd_XXX lines to tell postgres to use the certs.

I think it’s mostly safe to assume (or enforce) that anyone who has the wherewithal to install the mail receiver also can enable let’s encrypt, though adding a mail-receiver-no-certs template might make sense.

3 Likes

I’ve done everything in the book. mxtoolbox.com detects dns (shows DNS Record Published DNS Record found ) . but no mail reaches recieved /bounced folder. What did I do wrong?
I set it as DISCOURSE_MAIL_ENDPOINT:
http://myforumdomain.com/admin/email/handle_mail

Where to do it???

It’s hard to know what you did wrong without knowing anything about what you did right? You claim to have done “everything in the book”, but what book did you use?

So you installed the incoming mail server?

Can you telnet to port 25 from localhost? (that would indicate that it’s probably working)

Can you telnet to it remotely? If you can connect from localhost but cannot remotely, then something is blocking incoming port 25. If that’s the case, then you can start to troubleshoot whether it’s a firewall managed by the operating system or whatever your hosting environment it.

What does ./launcher logs mail-receiver say?

Can you share your actual host name so that we could check those things?

4 Likes

Thanks I read the topic and it turned out that I need to enable port 25 on the server and change the address in the mail-receiver settings from http to https. And now it works (perhaps…).

Nevertheless I don’t know if it works well. Here I created a separate topic with my question —>>>

HOSTNAME=ip-172-26-2-xx9-mail-receiver
GEM_HOME=/usr/local/bundle
TERM=xterm
BUNDLE_SILENCE_ROOT_WARNING=1
BUNDLE_APP_CONFIG=/usr/local/bundle
PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUBY_DOWNLOAD_SHA256=341cd9032e9fd17c452ed8562a8d43f7e45bfe05e411d0d7d627751dd82c578c
DOCKER_HOST_IP=17xx.17.0.1
PWD=/
DISCOURSE_API_USERNAME=system
LANG=en_US.UTF-8
RUBY_MAJOR=2.3
RUBYGEMS_VERSION=2.6.11
BUNDLE_BIN=/usr/local/bundle/bin
SHLVL=1
HOME=/root
DISCOURSE_MAIL_ENDPOINT=https://mydomain.com/admin/email/handle_mail
DISCOURSE_API_KEY=
BUNDLE_PATH=/usr/local/bundle
MAIL_DOMAIN=mydomain.com
RUBY_VERSION=2.3.4
BUNDLER_VERSION=1.14.6
_=/usr/bin/env
Delivering mail sent to mydomain.com to Discourse
Starting Postfix
<22>Apr 10 13:39:11 postfix/master[1]: daemon started -- version 3.1.1, configuration /etc/postfix
<22>Apr 10 13:40:01 postfix/smtpd[81]: connect from mail-oi1-f172.google.com[209.85.167.172]
<22>Apr 10 13:40:02 postfix/smtpd[81]: 206B510187D: client=mail-oi1-f172.google.com[209.85.167.172]
<22>Apr 10 13:40:02 postfix/cleanup[88]: 206B510187D: message-id=<CABkggBRkQEOmr_gSEHbHh9=A9OS0S4ZTG7jHh1R7H8v6ctu=Xg@mail.gmail.com>
<22>Apr 10 13:40:02 postfix/qmgr[80]: 206B510187D: from=<myprivatemail@gmail.com>, size=2569, nrcpt=1 (queue active)
<23>Apr 10 13:40:02 receive-mail[90]: Recipient: testowe@mydomain.com
<22>Apr 10 13:40:02 postfix/smtpd[81]: disconnect from mail-oi1-f172.google.com[209.85.167.172] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 13:40:02 postfix/pipe[89]: 206B510187D: to=<testowe@mydomain.com>, relay=discourse, delay=0.71, delays=0.36/0/0/0.35, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 13:40:02 postfix/qmgr[80]: 206B510187D: removed
<22>Apr 10 13:41:22 postfix/smtpd[81]: connect from mail-ot1-f49.google.com[209.85.210.49]
<22>Apr 10 13:41:22 postfix/smtpd[81]: 7318210187D: client=mail-ot1-f49.google.com[209.85.210.49]
<22>Apr 10 13:41:22 postfix/cleanup[88]: 7318210187D: message-id=<CABkggBTvQKz4HaNHEtv8BOK__yLDHka-jSM6jyQy+vZxhBExFA@mail.gmail.com>
<22>Apr 10 13:41:22 postfix/qmgr[80]: 7318210187D: from=<myprivatemail@gmail.com>, size=2562, nrcpt=1 (queue active)
<23>Apr 10 13:41:22 receive-mail[93]: Recipient: testowe@mydomain.com
<22>Apr 10 13:41:22 postfix/smtpd[81]: disconnect from mail-ot1-f49.google.com[209.85.210.49] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 13:41:22 postfix/pipe[89]: 7318210187D: to=<testowe@mydomain.com>, relay=discourse, delay=0.4, delays=0.23/0/0/0.17, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 13:41:22 postfix/qmgr[80]: 7318210187D: removed
<22>Apr 10 13:43:04 postfix/smtpd[96]: connect from mail-oi1-f169.google.com[209.85.167.169]
<22>Apr 10 13:43:04 postfix/smtpd[96]: ECA3110187D: client=mail-oi1-f169.google.com[209.85.167.169]
<22>Apr 10 13:43:05 postfix/cleanup[100]: ECA3110187D: message-id=<CABkggBTo=oKQEsazaGYH_wat-maWODv8T7T1-4T5uM2L=xXPFw@mail.gmail.com>
<22>Apr 10 13:43:05 postfix/qmgr[80]: ECA3110187D: from=<myprivatemail@gmail.com>, size=2578, nrcpt=1 (queue active)
<23>Apr 10 13:43:05 receive-mail[102]: Recipient: testt@mydomain.com
<22>Apr 10 13:43:05 postfix/smtpd[96]: disconnect from mail-oi1-f169.google.com[209.85.167.169] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 13:43:05 postfix/pipe[101]: ECA3110187D: to=<testt@mydomain.com>, relay=discourse, delay=0.36, delays=0.2/0/0/0.15, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 13:43:05 postfix/qmgr[80]: ECA3110187D: removed
<22>Apr 10 13:43:49 postfix/smtpd[96]: connect from mail-ot1-f52.google.com[209.85.210.52]
<22>Apr 10 13:43:49 postfix/smtpd[96]: D73A010187D: client=mail-ot1-f52.google.com[209.85.210.52]
<22>Apr 10 13:43:49 postfix/cleanup[100]: D73A010187D: message-id=<CABkggBQPAtwoSCz9MQ2Q5RsoT9rWz9ryMLovDPeuzZqT=9aPeg@mail.gmail.com>
<22>Apr 10 13:43:49 postfix/qmgr[80]: D73A010187D: from=<myprivatemail@gmail.com>, size=2568, nrcpt=1 (queue active)
<23>Apr 10 13:43:50 receive-mail[105]: Recipient: testowe@mydomain.com
<22>Apr 10 13:43:50 postfix/smtpd[96]: disconnect from mail-ot1-f52.google.com[209.85.210.52] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 13:43:50 postfix/pipe[101]: D73A010187D: to=<testowe@mydomain.com>, relay=discourse, delay=0.25, delays=0.11/0/0/0.14, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 13:43:50 postfix/qmgr[80]: D73A010187D: removed
<22>Apr 10 13:47:10 postfix/anvil[83]: statistics: max connection rate 1/60s for (smtp:209.85.167.172) at Apr 10 13:40:01
<22>Apr 10 13:47:10 postfix/anvil[83]: statistics: max connection count 1 for (smtp:209.85.167.172) at Apr 10 13:40:01
<22>Apr 10 13:47:10 postfix/anvil[83]: statistics: max cache size 2 at Apr 10 13:43:49
<22>Apr 10 13:49:55 postfix/smtpd[108]: connect from a7-20.smtp-out.eu-west-1.amazonses.com[54.240.7.20]
<22>Apr 10 13:49:55 postfix/smtpd[108]: 453F510187D: client=a7-20.smtp-out.eu-west-1.amazonses.com[54.240.7.20]
<22>Apr 10 13:49:55 postfix/cleanup[115]: 453F510187D: message-id=<0102016a075884de-3efe8109-c3d6-4bed-8810-be4446177b30-000000@eu-west-1.amazonses.com>
<22>Apr 10 13:49:55 postfix/qmgr[80]: 453F510187D: from=<0102016a075884de-3efe8109-c3d6-4bed-8810-be4446177b30-000000@eu-west-1.amazonses.com>, size=8116, nrcpt=1 (queue active)
<23>Apr 10 13:49:55 receive-mail[117]: Recipient: testt@mydomain.com
<22>Apr 10 13:49:55 postfix/pipe[116]: 453F510187D: to=<testt@mydomain.com>, relay=discourse, delay=0.48, delays=0.17/0/0/0.31, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 13:49:55 postfix/qmgr[80]: 453F510187D: removed
<22>Apr 10 13:49:56 postfix/smtpd[120]: connect from a7-17.smtp-out.eu-west-1.amazonses.com[54.240.7.17]
<22>Apr 10 13:49:57 postfix/smtpd[120]: 0168110187D: client=a7-17.smtp-out.eu-west-1.amazonses.com[54.240.7.17]
<22>Apr 10 13:49:57 postfix/cleanup[115]: 0168110187D: message-id=<0102016a078324c5-74a091bc-d942-487d-83c2-48df626e6907-000000@eu-west-1.amazonses.com>
<22>Apr 10 13:49:57 postfix/qmgr[80]: 0168110187D: from=<0102016a078324c5-74a091bc-d942-487d-83c2-48df626e6907-000000@eu-west-1.amazonses.com>, size=3227, nrcpt=1 (queue active)
<23>Apr 10 13:49:57 receive-mail[124]: Recipient: noreply@mydomain.com
<22>Apr 10 13:49:57 postfix/pipe[116]: 0168110187D: to=<noreply@mydomain.com>, relay=discourse, delay=0.3, delays=0.16/0/0/0.15, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 13:49:57 postfix/qmgr[80]: 0168110187D: removed
<22>Apr 10 13:50:16 postfix/smtpd[108]: disconnect from a7-20.smtp-out.eu-west-1.amazonses.com[54.240.7.20] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 13:50:21 postfix/smtpd[120]: disconnect from a7-17.smtp-out.eu-west-1.amazonses.com[54.240.7.17] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 13:53:27 postfix/smtpd[127]: connect from a7-19.smtp-out.eu-west-1.amazonses.com[54.240.7.19]
<22>Apr 10 13:53:27 postfix/smtpd[127]: DE64F10187D: client=a7-19.smtp-out.eu-west-1.amazonses.com[54.240.7.19]
<22>Apr 10 13:53:27 postfix/cleanup[130]: DE64F10187D: message-id=<0102016a07865cdf-f8ae4b79-74fb-4c7b-8db7-c6842dbcbbac-000000@eu-west-1.amazonses.com>
<22>Apr 10 13:53:27 postfix/qmgr[80]: DE64F10187D: from=<0102016a07865cdf-f8ae4b79-74fb-4c7b-8db7-c6842dbcbbac-000000@eu-west-1.amazonses.com>, size=8132, nrcpt=1 (queue active)
<23>Apr 10 13:53:28 receive-mail[132]: Recipient: checkthismiss@mydomain.com
<22>Apr 10 13:53:28 postfix/pipe[131]: DE64F10187D: to=<checkthismiss@mydomain.com>, relay=discourse, delay=0.3, delays=0.16/0/0/0.14, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 13:53:28 postfix/qmgr[80]: DE64F10187D: removed
<22>Apr 10 13:53:49 postfix/smtpd[127]: disconnect from a7-19.smtp-out.eu-west-1.amazonses.com[54.240.7.19] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 13:57:09 postfix/anvil[110]: statistics: max connection rate 1/60s for (smtp:54.240.7.20) at Apr 10 13:49:55
<22>Apr 10 13:57:09 postfix/anvil[110]: statistics: max connection count 1 for (smtp:54.240.7.20) at Apr 10 13:49:55
<22>Apr 10 13:57:09 postfix/anvil[110]: statistics: max cache size 2 at Apr 10 13:49:56
Operating environment:
HOSTNAME=ip-172-26-2-xx9-mail-receiver
GEM_HOME=/usr/local/bundle
TERM=xterm
BUNDLE_SILENCE_ROOT_WARNING=1
BUNDLE_APP_CONFIG=/usr/local/bundle
PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUBY_DOWNLOAD_SHA256=341cd9032e9fd17c452ed8562a8d43f7e45bfe05e411d0d7d627751dd82c578c
DOCKER_HOST_IP=172.17.0.1
PWD=/
DISCOURSE_API_USERNAME=system
LANG=en_US.UTF-8
RUBY_MAJOR=2.3
RUBYGEMS_VERSION=2.6.11
BUNDLE_BIN=/usr/local/bundle/bin
SHLVL=1
HOME=/root
DISCOURSE_MAIL_ENDPOINT=https://mydomain.com/admin/email/handle_mail
DISCOURSE_API_KEY=dc515eMYAPIKEY
BUNDLE_PATH=/usr/local/bundle
MAIL_DOMAIN=mydomain.com
RUBY_VERSION=2.3.4
BUNDLER_VERSION=1.14.6
_=/usr/bin/env
Delivering mail sent to mydomain.com to Discourse
Starting Postfix
<22>Apr 10 13:57:20 postfix/master[1]: daemon started -- version 3.1.1, configuration /etc/postfix
<22>Apr 10 14:04:15 postfix/smtpd[81]: connect from mail-ot1-f49.google.com[209.85.210.49]
<22>Apr 10 14:04:15 postfix/smtpd[81]: A1FB9101888: client=mail-ot1-f49.google.com[209.85.210.49]
<22>Apr 10 14:04:15 postfix/cleanup[88]: A1FB9101888: message-id=<CABkggBR7hK0waGmTJVxJB9OMEhprnnGSXZJAoUEj_W1sGDnL7Q@mail.gmail.com>
<22>Apr 10 14:04:15 postfix/qmgr[80]: A1FB9101888: from=<myprivatemail@gmail.com>, size=2561, nrcpt=1 (queue active)
<23>Apr 10 14:04:15 receive-mail[90]: Recipient: test@mydomain.com
<22>Apr 10 14:04:16 postfix/smtpd[81]: disconnect from mail-ot1-f49.google.com[209.85.210.49] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 14:04:16 postfix/pipe[89]: A1FB9101888: to=<test@mydomain.com>, relay=discourse, delay=0.64, delays=0.43/0/0/0.21, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 14:04:16 postfix/qmgr[80]: A1FB9101888: removed
<22>Apr 10 14:06:03 postfix/smtpd[93]: connect from mail-ot1-f53.google.com[209xxx10.53]
<22>Apr 10 14:06:03 postfix/smtpd[93]: E4AB2101888: client=mail-ot1-f53.google.com[209.85.210.53]
<22>Apr 10 14:06:04 postfix/cleanup[98]: E4AB2101888: message-id=<CABkggBTDtccizj76JHWSXWiLrd-NDyXY90_vZibJy7efDTLvnw@mail.gmail.com>
<22>Apr 10 14:06:04 postfix/qmgr[80]: E4AB2101888: from=<myprivatemail@gmail.com>, size=2581, nrcpt=1 (queue active)
<23>Apr 10 14:06:04 receive-mail[100]: Recipient: test@mydomain.com
<22>Apr 10 14:06:04 postfix/smtpd[93]: disconnect from mail-ot1-f53.google.com[20xxx0.53] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 14:06:04 postfix/pipe[99]: E4AB2101888: to=<test@mydomain.com>, relay=discourse, delay=0.64, delays=0.32/0/0/0.32, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 14:06:04 postfix/qmgr[80]: E4AB2101888: removed
<22>Apr 10 14:08:16 postfix/smtpd[103]: connect from a7-11.smtp-out.eu-west-1.amazonses.com[54.240.7.11]
<22>Apr 10 14:08:17 postfix/smtpd[103]: 10D45101888: client=a7-11.smtp-out.eu-west-1.amazonses.com[54.240.7.11]
<22>Apr 10 14:08:17 postfix/cleanup[108]: 10D45101888: message-id=<0102016a0763e127-6c562f49-6240-4bbd-a4bb-85f1f5a4b96b-000000@eu-west-1.amazonses.com>
<22>Apr 10 14:08:17 postfix/qmgr[80]: 10D45101888: from=<0102016a0763e127-6c562f49-6240-4bbd-a4bb-85f1f5a4b96b-000000@eu-west-1.amazonses.com>, size=8114, nrcpt=1 (queue active)
<23>Apr 10 14:08:17 receive-mail[110]: Recipient: test@mydomain.com
<22>Apr 10 14:08:17 postfix/pipe[109]: 10D45101888: to=<test@mydomain.com>, relay=discourse, delay=0.32, delays=0.17/0/0/0.15, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 14:08:17 postfix/qmgr[80]: 10D45101888: removed
<22>Apr 10 14:08:37 postfix/smtpd[103]: disconnect from a7-11.smtp-out.eu-west-1.amazonses.com[54.240.7.11] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 14:11:57 postfix/anvil[83]: statistics: max connection rate 1/60s for (smtp:209.85.210.49) at Apr 10 14:04:15
<22>Apr 10 14:11:57 postfix/anvil[83]: statistics: max connection count 1 for (smtp:209.xx0.49) at Apr 10 14:04:15
<22>Apr 10 14:11:57 postfix/anvil[83]: statistics: max cache size 1 at Apr 10 14:04:15
<22>Apr 10 14:12:28 postfix/smtpd[113]: connect from mail-ot1-f44.google.com[209.8xxx10.44]
<22>Apr 10 14:12:29 postfix/smtpd[113]: 25BE1101888: client=mail-ot1-f44.google.com[209.85.210.44]
<22>Apr 10 14:12:29 postfix/cleanup[120]: 25BE1101888: message-id=<CABkggBSsffxceqKjQW38p6M04KDnKSAga5+p8-BUf0YVvtT-JA@mail.gmail.com>
<22>Apr 10 14:12:29 postfix/qmgr[80]: 25BE1101888: from=<myprivatemail@gmail.com>, size=2542, nrcpt=1 (queue active)
<23>Apr 10 14:12:29 receive-mail[122]: Recipient: test@mydomain.com
<22>Apr 10 14:12:29 postfix/smtpd[113]: disconnect from mail-ot1-f44.google.com[209.85.210.44] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 14:12:29 postfix/pipe[121]: 25BE1101888: to=<test@mydomain.com>, relay=discourse, delay=0.35, delays=0.21/0/0/0.14, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 14:12:29 postfix/qmgr[80]: 25BE1101888: removed
<22>Apr 10 14:15:49 postfix/anvil[115]: statistics: max connection rate 1/60s for (smtp:209.85.210.44) at Apr 10 14:12:28
<22>Apr 10 14:15:49 postfix/anvil[115]: statistics: max connection count 1 for (smtp:209.85.210.44) at Apr 10 14:12:28
<22>Apr 10 14:15:49 postfix/anvil[115]: statistics: max cache size 1 at Apr 10 14:12:28
<20>Apr 10 15:11:51 postfix/smtpd[125]: warning: hostname zg-0301d-50.stretchoid.com does not resolve to address 107.170.239.96: Name does not resolve
<22>Apr 10 15:11:51 postfix/smtpd[125]: connect from unknown[107.170.239.96]
<22>Apr 10 15:11:51 postfix/smtpd[125]: disconnect from unknown[107.170.239.96] ehlo=1 quit=1 commands=2
<22>Apr 10 15:15:11 postfix/anvil[127]: statistics: max connection rate 1/60s for (smtp:107.170.239.96) at Apr 10 15:11:51
<22>Apr 10 15:15:11 postfix/anvil[127]: statistics: max connection count 1 for (smtp:107.170.239.96) at Apr 10 15:11:51
<22>Apr 10 15:15:11 postfix/anvil[127]: statistics: max cache size 1 at Apr 10 15:11:51
<22>Apr 10 15:45:17 postfix/smtpd[129]: connect from a7-17.smtp-out.eu-west-1.amazonses.com[54.240.7.17]
<22>Apr 10 15:45:17 postfix/smtpd[129]: 8F530101888: client=a7-17.smtp-out.eu-west-1.amazonses.com[54.240.7.17]
<22>Apr 10 15:45:17 postfix/cleanup[136]: 8F530101888: message-id=<0102016a07165b75-36ac7dbd-d7e5-4b0c-a3d5-1a1fb9dce2cb-000000@eu-west-1.amazonses.com>
<22>Apr 10 15:45:17 postfix/qmgr[80]: 8F530101888: from=<0102016a07165b75-36ac7dbd-d7e5-4b0c-a3d5-1a1fb9dce2cb-000000@eu-west-1.amazonses.com>, size=8126, nrcpt=1 (queue active)
<23>Apr 10 15:45:17 receive-mail[138]: Recipient: jajajajaja@mydomain.com
<22>Apr 10 15:45:17 postfix/pipe[137]: 8F530101888: to=<jajajajaja@mydomain.com>, relay=discourse, delay=0.36, delays=0.18/0/0/0.17, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 10 15:45:17 postfix/qmgr[80]: 8F530101888: removed
<22>Apr 10 15:45:41 postfix/smtpd[129]: disconnect from a7-17.smtp-out.eu-west-1.amazonses.com[54.240.7.17] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 10 15:49:01 postfix/anvil[131]: statistics: max connection rate 1/60s for (smtp:54.240.7.17) at Apr 10 15:45:17
<22>Apr 10 15:49:01 postfix/anvil[131]: statistics: max connection count 1 for (smtp:5x.xx.x7) at Apr 10 15:45:17
<22>Apr 10 15:49:01 postfix/anvil[131]: statistics: max cache size 1 at Apr 10 15:45:17
<22>Apr 11 07:23:03 postfix/smtpd[150]: connect from a7-15.smtp-out.eu-west-1.amazonses.com[54.240.7.15]
<22>Apr 11 07:23:04 postfix/smtpd[150]: 2CE0210188F: client=a7-15.smtp-out.eu-west-1.amazonses.com[54.240.7.15]
<22>Apr 11 07:23:04 postfix/cleanup[157]: 2CE0210188F: message-id=<0102016a0b474c3d-ba603dad-6847-4b25-8bf2-10fbbcd9c8d7-000000@eu-west-1.amazonses.com>
<22>Apr 11 07:23:04 postfix/qmgr[80]: 2CE0210188F: from=<>, size=9634, nrcpt=1 (queue active)
<23>Apr 11 07:23:04 receive-mail[159]: Recipient: noreply@mydomain.com
<22>Apr 11 07:23:04 postfix/pipe[158]: 2CE0210188F: to=<noreply@mydomain.com>, relay=discourse, delay=0.49, delays=0.28/0/0/0.21, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 11 07:23:04 postfix/qmgr[80]: 2CE0210188F: removed
<22>Apr 11 07:23:24 postfix/smtpd[150]: disconnect from a7-15.smtp-out.eu-west-1.amazonses.com[54.240.7.15] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 11 07:26:45 postfix/anvil[152]: statistics: max connection rate 1/60s for (smtp:54.240.7.15) at Apr 11 07:23:03
<22>Apr 11 07:26:45 postfix/anvil[152]: statistics: max connection count 1 for (smtp:5x.xxx.15) at Apr 11 07:23:03
<22>Apr 11 07:26:45 postfix/anvil[152]: statistics: max cache size 1 at Apr 11 07:23:03
<22>Apr 11 07:34:56 postfix/smtpd[162]: connect from a7-9.smtp-out.eu-west-1.amazonses.com[54.240.7.9]
<22>Apr 11 07:34:56 postfix/smtpd[162]: C793710188F: client=a7-9.smtp-out.eu-west-1.amazonses.com[54.240.7.9]
<22>Apr 11 07:34:56 postfix/cleanup[169]: C793710188F: message-id=<0102016a0b522e2b-7565381a-c884-40f6-9967-12918293bd1a-000000@eu-west-1.amazonses.com>
<22>Apr 11 07:34:56 postfix/qmgr[80]: C793710188F: from=<>, size=9625, nrcpt=1 (queue active)
<23>Apr 11 07:34:56 receive-mail[171]: Recipient: noreply@mydomain.com
<22>Apr 11 07:34:57 postfix/pipe[170]: C793710188F: to=<noreply@mydomain.com>, relay=discourse, delay=0.36, delays=0.19/0/0/0.17, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 11 07:34:57 postfix/qmgr[80]: C793710188F: removed
<22>Apr 11 07:35:01 postfix/smtpd[174]: connect from unknown[71.6.2xx.5]
<22>Apr 11 07:35:01 postfix/smtpd[174]: disconnect from unknown[71.6.2xx.5] ehlo=1 quit=1 commands=2
<22>Apr 11 07:35:20 postfix/smtpd[162]: disconnect from a7-9.smtp-out.eu-west-1.amazonses.com[54.240.7.9] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 11 07:36:56 postfix/smtpd[162]: connect from a7-11.smtp-out.eu-west-1.amazonses.com[54.240.7.11]
<22>Apr 11 07:36:56 postfix/smtpd[162]: E95AA10188F: client=a7-11.smtp-out.eu-west-1.amazonses.com[54.240.7.11]
<22>Apr 11 07:36:56 postfix/cleanup[175]: E95AA10188F: message-id=<0102016a0b54034c-8d7a4be2-c2bd-448f-9e6e-e4a459e0547a-000000@eu-west-1.amazonses.com>
<22>Apr 11 07:36:57 postfix/qmgr[80]: E95AA10188F: from=<0102016a0b54034c-8d7a4be2-c2bd-448f-9e6e-e4a459e0547a-000000@mail.mydomain.com>, size=8122, nrcpt=1 (queue active)
<23>Apr 11 07:36:57 receive-mail[177]: Recipient: myadress@mydomain.com
<22>Apr 11 07:36:57 postfix/pipe[176]: E95AA10188F: to=<myadress@mydomain.com>, relay=discourse, delay=0.26, delays=0.07/0/0/0.19, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 11 07:36:57 postfix/qmgr[80]: E95AA10188F: removed
<22>Apr 11 07:36:58 postfix/smtpd[180]: connect from a7-10.smtp-out.eu-west-1.amazonses.com[54.240.7.10]
<22>Apr 11 07:36:58 postfix/smtpd[180]: 69D0B10188F: client=a7-10.smtp-out.eu-west-1.amazonses.com[54.240.7.10]
<22>Apr 11 07:36:58 postfix/cleanup[175]: 69D0B10188F: message-id=<0102016a0b54088b-39db9f70-dc3d-47b5-818f-adeb5c834276-000000@eu-west-1.amazonses.com>
<22>Apr 11 07:36:58 postfix/qmgr[80]: 69D0B10188F: from=<0102016a0b54088b-39db9f70-dc3d-47b5-818f-adeb5c834276-000000@mail.mydomain.com>, size=3233, nrcpt=1 (queue active)
<23>Apr 11 07:36:58 receive-mail[184]: Recipient: noreply@mydomain.com
<22>Apr 11 07:36:58 postfix/pipe[176]: 69D0B10188F: to=<noreply@mydomain.com>, relay=discourse, delay=0.3, delays=0.16/0/0/0.13, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 11 07:36:58 postfix/qmgr[80]: 69D0B10188F: removed
<22>Apr 11 07:37:18 postfix/smtpd[162]: disconnect from a7-11.smtp-out.eu-west-1.amazonses.com[54.240.7.11] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 11 07:37:21 postfix/smtpd[180]: disconnect from a7-10.smtp-out.eu-west-1.amazonses.com[54.240.7.10] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<22>Apr 11 07:40:41 postfix/anvil[164]: statistics: max connection rate 1/60s for (smtp:54.2xx0.7.9) at Apr 11 07:34:56
<22>Apr 11 07:40:41 postfix/anvil[164]: statistics: max connection count 1 for (smtp:54.2xx0.7.9) at Apr 11 07:34:56
<22>Apr 11 07:40:41 postfix/anvil[164]: statistics: max cache size 2 at Apr 11 07:35:01
<22>Apr 11 07:48:34 postfix/smtpd[187]: connect from mail-ed1-f53.google.com[209.85.208.53]
<22>Apr 11 07:48:34 postfix/smtpd[187]: 6C20310188F: client=mail-ed1-f53.google.com[209.85.208.53]
<22>Apr 11 07:48:34 postfix/cleanup[194]: 6C20310188F: message-id=<CABkggBSteDMp-9t8Ffn4TyCzZSxjmOOZYEhLEtK2Rajy284p5Q@mail.gmail.com>
<22>Apr 11 07:48:34 postfix/qmgr[80]: 6C20310188F: from=<myprivatemail@gmail.com>, size=2632, nrcpt=1 (queue active)
<22>Apr 11 07:48:34 postfix/smtpd[187]: disconnect from mail-ed1-f53.google.com[209.85.208.53] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<23>Apr 11 07:48:34 receive-mail[196]: Recipient: adsadsadasdsadasdasdasdasdsd@mydomain.com
<22>Apr 11 07:48:34 postfix/pipe[195]: 6C20310188F: to=<adsadsadasdsadasdasdasdasdsd@mydomain.com>, relay=discourse, delay=0.32, delays=0.13/0/0/0.19, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 11 07:48:34 postfix/qmgr[80]: 6C20310188F: removed
<22>Apr 11 07:48:52 postfix/smtpd[187]: connect from mail-ed1-f45.google.com[209.85.xx.45]
<22>Apr 11 07:48:52 postfix/smtpd[187]: 9B13710188F: client=mail-ed1-f45.google.com[209.85.208.45]
<22>Apr 11 07:48:52 postfix/cleanup[194]: 9B13710188F: message-id=<CABkggBQLBCUBDHqMJ1cZDmZ=dfhi1WdaxyFt15HS5iVMNYmig+3w@mail.gmail.com>
<22>Apr 11 07:48:52 postfix/qmgr[80]: 9B13710188F: from=<myprivatemail@gmail.com>, size=9739, nrcpt=1 (queue active)
<22>Apr 11 07:48:52 postfix/smtpd[187]: disconnect from mail-ed1-f45.google.com[209.85.208.45] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<23>Apr 11 07:48:52 receive-mail[199]: Recipient: noreply@mydomain.com
<22>Apr 11 07:48:52 postfix/pipe[195]: 9B13710188F: to=<noreply@mydomain.com>, relay=discourse, delay=0.16, delays=0.02/0/0/0.14, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 11 07:48:52 postfix/qmgr[80]: 9B13710188F: removed
<22>Apr 11 07:52:12 postfix/anvil[189]: statistics: max connection rate 1/60s for (smtp:209.85.208.53) at Apr 11 07:48:34
<22>Apr 11 07:52:12 postfix/anvil[189]: statistics: max connection count 1 for (smtp:209.85.208.53) at Apr 11 07:48:34
<22>Apr 11 07:52:12 postfix/anvil[189]: statistics: max cache size 2 at Apr 11 07:48:52
<22>Apr 11 07:58:50 postfix/smtpd[202]: connect from mail-ed1-f44.google.com[209.85.xx.44]
<22>Apr 11 07:58:50 postfix/smtpd[202]: 830FA10188F: client=mail-ed1-f44.google.com[209.85.208.44]
<22>Apr 11 07:58:50 postfix/cleanup[209]: 830FA10188F: message-id=<CABkggBRnxskxOKDJsf9Zy4MGPBzH97dsaVWDFxu1xj1SD+e9tYpLA@mail.gmail.com>
<22>Apr 11 07:58:50 postfix/qmgr[80]: 830FA10188F: from=<myprivatemail@gmail.com>, size=4184, nrcpt=1 (queue active)
<22>Apr 11 07:58:50 postfix/smtpd[202]: disconnect from mail-ed1-f44.google.com[209.85.208.44] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
<23>Apr 11 07:58:50 receive-mail[211]: Recipient: noreply@mydomain.com
<22>Apr 11 07:58:50 postfix/pipe[210]: 830FA10188F: to=<noreply@mydomain.com>, relay=discourse, delay=0.27, delays=0.11/0/0/0.16, dsn=2.0.0, status=sent (delivered via discourse service)
<22>Apr 11 07:58:50 postfix/qmgr[80]: 830FA10188F: removed
<22>Apr 11 08:02:10 postfix/anvil[204]: statistics: max connection rate 1/60s for (smtp:209.85.208.44) at Apr 11 07:58:50
<22>Apr 11 08:02:10 postfix/anvil[204]: statistics: max connection count 1 for (smtp:209.85.208.44) at Apr 11 07:58:50
<22>Apr 11 08:02:10 postfix/anvil[204]: statistics: max cache size 1 at Apr 11 07:58:50

Heads up @eextra, an API key is in your log output. You’re going to want to revoke that key.

7 Likes

Yep, I’d take a look at a PR to add STARTTLS support. There’s no point opening up 465 and 587 though; they’re not used for receiving mail.

5 Likes
  1. What does PR mean ?
  2. Do I have to open 465 and 587 ports on my hosting?

Thanks for the information.

By the way. If someone gets such API code it can do harmful things on the forum or hosting ? What kind of things can these be?

PR means Pull request.

You don’t have to

1 Like

Well, then, where am I supposed to add STARTTLS support ?

It’s not yet present in the system so You should wait until someone has added that to the mail-receiver system. Once that’s added, you’ll have to rebuild using the updated image and everything will work as expected.

1 Like

It depends on the type of API key. Assuming it’s a system API key, they can do anything they want within Discourse, just as if they had admin permissions on your site.

2 Likes

If it comes to this that someone has my api key and does or has already done something on the site, can I check it somewhere what he did and when? For example, in some logs ?

What if he did something harmful and then deleted the logs (if possible) ?

Go to your admin settings, scroll down to API and revoke it.

With that key they can destroy pretty much everything.

Yes they could have technically already done damage, this is why you should take care never to share them under any circumstances.

1 Like

An API key does not give server level access, so the logs could not be modified. Any action taken that normally results in a log would still be logged when using an API key. Any other action can be seen upon inspection of the site, for example if the key was used to edit a post, you’d see the edit icon like usual. If a topic was created, you’d see it just as if it was created normally.

I wouldn’t be too worried here, revoke the key, review the staff logs, check that there aren’t any new staff accounts, and remember to check for API keys (and passwords, etc.) in logs when sharing them.

4 Likes

Doh! The last SMTP RFC I was familiar with was 822. :wink: I guess it was failing for some other reason (DNS, I guess) and it was coincidence that it started working when I opened those ports.

// email / test To: shows that prop.ltcmp.net passes the tests with only port 25. (For a little while until I delete it. . . )

Here ya go! The TLS stuff is included but commented out.

1 Like

Hi, I have a small question. If I setup that way. Change the MX records. Will I broke the webmail features with my domain?

Example: mymail@domain.com will still working with my webmail?

Thank you

Yes, you will break it.
You would need to use a subdomain like forum.yourdomain.com.

4 Likes

Thanks a lot. These are important things.

And what if i wanted to browse and analyze independent logs on the server . For example, the whole container ? Hwo to do it ?

It’s just how simple the tools are for that. For a rather beginner administrator ?