Coder Social home page Coder Social logo

Comments (7)

Capusjon avatar Capusjon commented on June 1, 2024

image

this is what it looks like when I receive a mail.

notice the sender is not listed

from arewedown.

shukriadams avatar shukriadams commented on June 1, 2024

Most likely the SMTP settings I'm using are not as generic as I first assumed. I can confirm email sender is displayed using mails I sent and received via Gmail. I'll need to test this on a few more mail platforms. Thanks for catching.

from arewedown.

Capusjon avatar Capusjon commented on June 1, 2024

Can I help with this in any way? what mailer are we using in the AreWeDown docker?

My mailprogram is mailu (https://mailu.io/1.9/) I'll see if I can find annything in it's logs. Mails send by AreWeDown are also not apearing in the 'Send' Mailbox for this user. The recipient does get the emails though.

from arewedown.

Capusjon avatar Capusjon commented on June 1, 2024

image
These are the smtp settings the mailserver needs

from arewedown.

shukriadams avatar shukriadams commented on June 1, 2024

Always happy for help, thanks. Mails are sent with the NPM package https://www.npmjs.com/package/smtp-client @ v 0.4.0.

All the code to handle SMTP lives in https://github.com/shukriadams/arewedown/blob/master/src/lib/smtp.js. I tested using Gmail SMTP only because of ease-of-use, will set up a local mail server.

from arewedown.

Capusjon avatar Capusjon commented on June 1, 2024

I don't know if it helps, but here are the logs from postfix (which I believe handles the SMTP requests in my mailserver:

If I send something through outlook everything works correctly. This is the log from postfix:

2022-05-11T13:26:52.624684+02:00 b899260f7d19 postfix/smtpd[1497]: connect from mailu_front_1.mailu_default[xxx.xxx.xxx.xxx]
2022-05-11T13:26:52.625738+02:00 b899260f7d19 postfix/smtpd[1497]: discarding EHLO keywords: PIPELINING
2022-05-11T13:26:52.627009+02:00 b899260f7d19 postfix/smtpd[1497]: discarding EHLO keywords: PIPELINING
2022-05-11T13:26:52.797888+02:00 b899260f7d19 postfix/smtpd[1497]: C2C27144C7B: client=CLIENT-IP.cable.dynamic.v4.ziggo.nl[XXX.XXX.XXX.XXX], sasl_method=XCLIENT, [email protected]
2022-05-11T13:26:52.999918+02:00 b899260f7d19 postfix/cleanup[1501]: C2C27144C7B: message-id=<[email protected]>
2022-05-11T13:26:53.113078+02:00 b899260f7d19 postfix/qmgr[352]: C2C27144C7B: from=<[email protected]>, size=2436, nrcpt=1 (queue active)
2022-05-11T13:26:53.407884+02:00 b899260f7d19 postfix/smtp[1552]: connect to vps.transip.email[2a01:7c8:e100:1::78e2]:587: Address not available
2022-05-11T13:26:53.493450+02:00 b899260f7d19 postfix/smtp[1552]: Trusted TLS connection established to vps.transip.email[86.105.244.7]:587: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
2022-05-11T13:26:54.385679+02:00 b899260f7d19 postfix/smtp[1552]: C2C27144C7B: to=<[email protected]>, relay=vps.transip.email[86.105.244.7]:587, delay=1.7, delays=0.41/0.08/0.3/0.88, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 4Kyt0Y3zKTz2ZNfT)
2022-05-11T13:26:54.386490+02:00 b899260f7d19 postfix/qmgr[352]: C2C27144C7B: removed
2022-05-11T13:26:55.645226+02:00 b899260f7d19 postfix/smtpd[1497]: disconnect from CLIENT-IP.cable.dynamic.v4.ziggo.nl[XXX.XXX.XXX.XXX] ehlo=2 xclient=0/1 mail=1 rcpt=1 data=1 quit=1 commands=6/7

If I send something from AreWeDown I'm missing the sender adress, log looks like this:

2022-05-11T13:34:19.452838+02:00 b899260f7d19 postfix/smtpd[1674]: connect from mailu_front_1.mailu_default[xxx.xxx.xxx.xxx]
2022-05-11T13:34:19.453960+02:00 b899260f7d19 postfix/smtpd[1674]: discarding EHLO keywords: PIPELINING
2022-05-11T13:34:19.466424+02:00 b899260f7d19 postfix/smtpd[1674]: discarding EHLO keywords: PIPELINING
2022-05-11T13:34:19.591972+02:00 b899260f7d19 postfix/smtpd[1674]: 907E713B14E: client=CLIENT-IP.cable.dynamic.v4.ziggo.nl[XXX.XXX.XXX.XXX], sasl_method=XCLIENT, [email protected]
2022-05-11T13:34:19.630604+02:00 b899260f7d19 postfix/cleanup[1678]: 907E713B14E: message-id=<>
2022-05-11T13:34:19.747546+02:00 b899260f7d19 postfix/qmgr[352]: 907E713B14E: from=<[email protected]>, size=147, nrcpt=1 (queue active)
2022-05-11T13:34:19.764658+02:00 b899260f7d19 postfix/smtpd[1674]: disconnect from CLIENT-IP.cable.dynamic.v4.ziggo.nl[XXX.XXX.XXX.XXX] ehlo=2 xclient=0/1 mail=1 rcpt=1 data=1 quit=1 commands=6/7
2022-05-11T13:34:20.242080+02:00 b899260f7d19 postfix/lmtp[1679]: 907E713B14E: to=<[email protected]>, relay=RELAY-IP[xxx.xxx.xxx.xxx]:PORT, delay=0.73, delays=0.23/0.03/0.11/0.36, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> 83fYNDufe2LuBQAA15mJTg Saved)
2022-05-11T13:34:20.242729+02:00 b899260f7d19 postfix/qmgr[352]: 907E713B14E: removed

For some reason it doesn't establish a connection to the TransipRelay.. I can't seem to figure out why, the mail also goes through. I would assume it would fail to send when not connecting to the relay..

Also mabey the most important thing; the mail doesn't seem to have a 'message ID'. after that line the logs start to differ

from arewedown.

Capusjon avatar Capusjon commented on June 1, 2024

Tested an automated mail message from an other program I'm hosting:

2022-05-11T14:47:41.851743+02:00 b899260f7d19 postfix/smtpd[2859]: connect from mailu_front_1.mailu_default[xxx.xxx.xxx.xxx]
2022-05-11T14:47:41.852677+02:00 b899260f7d19 postfix/smtpd[2859]: discarding EHLO keywords: PIPELINING
2022-05-11T14:47:41.853843+02:00 b899260f7d19 postfix/smtpd[2859]: discarding EHLO keywords: PIPELINING
2022-05-11T14:47:41.944037+02:00 b899260f7d19 postfix/smtpd[2859]: E6724144C73: client=CLIENT-IP.cable.dynamic.v4.ziggo.nl[XXX.XXX.XXX.XXX], sasl_method=XCLIENT, [email protected]
2022-05-11T14:47:41.988188+02:00 b899260f7d19 postfix/cleanup[2863]: E6724144C73: message-id=<[email protected]>
2022-05-11T14:47:42.055071+02:00 b899260f7d19 postfix/qmgr[352]: E6724144C73: from=<[email protected]>, size=16067, nrcpt=1 (queue active)
2022-05-11T14:47:42.069204+02:00 b899260f7d19 postfix/smtpd[2859]: disconnect from CLIENT-IP.cable.dynamic.v4.ziggo.nl[xxx.xxx.xxx.xxx] ehlo=2 xclient=0/1 mail=1 rcpt=1 data=1 quit=1 commands=6/7
2022-05-11T14:47:42.644591+02:00 b899260f7d19 postfix/lmtp[2882]: E6724144C73: to=<[email protected]>, relay=RELAY-IP[xxx.xxx.xxx.xxx]:PORT, delay=0.78, delays=0.19/0.04/0.02/0.54, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> kSZ9Bm6we2J7CwAA15mJTg Saved)
2022-05-11T14:47:42.645721+02:00 b899260f7d19 postfix/qmgr[352]: E6724144C73: removed

This is the result and everything seems fine. I pressume the problem can thus be narrowed down to the missing message ID.

from arewedown.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.