Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Paolo Barbolini
@paolobarbolini
It could be that hyper 0.13 enabled the log feature of tracing, while 0.14 doesn't anymore
Mathijs van Veluw
@BlackDex
indeed!
image.png
they removed log from tracing
Mathijs van Veluw
@BlackDex
Created a PR: lettre/lettre#584
That fixed the issue :)
Thanks for the support
Jason Tsorlinis
@jtsorlinis
Hey guys I'm getting this error randomly when bulk sending emails with 0.10.0-beta.3
Error: lettre::transport::smtp::Error { kind: Transient(Code { severity: TransientNegativeCompletion, category: Connections, detail: One }) }
When sending 500 emails I will randomly get this error on 20-30 of them
Is it possible I'm just sending emails too fast for the smtp server to handle?
Alexis Mousset
@amousset:matrix.org
[m]
@jtsorlinis: 421 could be rate limiting indeed, enabling logging with tracing could help troubleshoot the problem by displaying the complete server response
尼亚
@ch3ck
Hey Guys, I"m trying to parse binary data in my emails, but while using mailparse weird characters are not decoded properly
Any pointers with letter?
Alexis Mousset
@amousset:matrix.org
[m]
Hi, lettre does not parse email (for now) so it won't help you with this
尼亚
@ch3ck
Thanks
Alexis Mousset
@amousset:matrix.org
[m]
You can have a look at https://crates.io/crates/email which also parses emails
vidyli
@vidyli

I got an very geric error

error = lettre::transport::smtp::Error {
    kind: Client,
    source: Error(
        None,
    ),
}
&client = SmtpClient {
    info: SmtpInfo {
        hello_name: Domain(
            "vidys-MacBook-Pro.local",
        ),
        server: "localhost",
        port: 1025,
        tls: Wrapper,
        authentication: [
            Plain,
            Login,
        ],
        credentials: Some(
            Credentials,
        ),
        timeout: Some(
            60s,
        ),
    },

}

mailhog is listened at 1025

image.png
please help.
you the mailhog received a request
in the bove picture
but lettre give the error above.
paolobarbolini
@paolobarbolini:matrix.org
[m]
I replied on the issue
xiretza
@xiretza:xiretza.xyz
[m]
Alexis Mousset: hey, https://crates.io/crates/smtp is currently the top crates.io search result for smtp (duh), but it actually just seems to be a very old version of lettre. Could you maybe add a note to the crates.io page pointing potential users to lettre?
paolobarbolini
@paolobarbolini:matrix.org
[m]

🤔 my Matrix client didn't get the notification, fortunately Gitter notifies you by email every once in a while.

I think this is a good idea xiretza , I just searched "SMTP" on crates.io and lettre is on the second page Alexis Mousset. We should probably do a new release of the SMTP crate with both the description and readme telling to use lettre instead

Alexis Mousset
@amousset:matrix.org
[m]
Makes sense, I'll do this 👍️
amousset
@amousset:matrix.org
[m]
black man
@kofidoe__twitter
hey guys i'm new to lettre and i don't know which version to use. Can someone please help me out.
1 reply
kevincox
@kevincox:matrix.org
[m]
Heads up, it looks like the domain for the website is down:
% dig lettre.rs

; <<>> DiG 9.16.16 <<>> lettre.rs
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 28190
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;lettre.rs.            IN    A

;; Query time: 185 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Thu Sep 30 07:14:19 EDT 2021
;; MSG SIZE  rcvd: 38
4 replies
kevincox
@kevincox:matrix.org
[m]
While I am here does anyone have code or guidance for DKIM signing with lettre? Or am I the first person to want to do this?
kevincox
@kevincox:matrix.org
[m]
I was pointed at lettre/lettre#670 🎉
1 reply
kevincox
@kevincox:matrix.org
[m]
I'm interested in the feature so I'll help where I can but I am only somewhat familiar with SMTP and lettre and not at all familiar with lettre internals so I'm sure I will miss somethings.
Mathijs van Veluw
@BlackDex
In theory that is actually something which needs to be done by the server sending out the messages to the final endpoint.
There is an open issue (lettre/lettre#674) which requests direct sending via MX lookups. In that case adding DKIM could be something useful. But other than that, it should be something done by the sending-server
kevincox
@kevincox:matrix.org
[m]

In that case adding DKIM could be something useful. But other than that, it should be something done by the sending-server

I disagree that DKIM should always be done by the sending-server. Right now getting a "clean" IP is very hard and it is very useful to pay someone for a trusted IP (and maybe some other sending features). However I would rather not trust them to be able to sign messages on be behalf.

For my currently use case I plan on migrating to signing in my app then sending to a relay mostly for their trusted IP.

Eventually I do plan on migrating to direct-sending but I don't have enough domain reputation or a trusted enough IP yet.

Mathijs van Veluw
@BlackDex
it kinda depends on if the sending IP is an IP used by domestic/home connections, because most of those are getting a high score anyway.
also, having dkim,spf and dmarc configured will not help if the IP is blacklisted
and, you must hope that the server which you use to send-out the mail isn't going to change the headers which you used to sign your mail. Because if it does, then your signing will fail
kevincox
@kevincox:matrix.org
[m]

That is true. It also depends on the receiving mailserver and what they do. Rumour has it that Google and other big inbox providers value domain reputation more however for smaller providers they likely have never seen your domain so basically have no choice but IP rep.

But this is mostly beside the point. The point is that I would rather not give a relay the ability to sign mail on my behalf. So signing is helpful even if you are using a relay.

Mathijs van Veluw
@BlackDex
that is true, but you still own the public key on the DNS, which you can change when it needs to of course.
I use postfix my self for sending out, so i have configured that for my applications
1 reply
kevincox
@kevincox:matrix.org
[m]
That is a mitigation at best. If I notice that they are sending email using my key then I can revoke the key, but that is not nearly as good as making sure they never have the ability in the first place.
Mathijs van Veluw
@BlackDex
i totally agree :)
kevincox
@kevincox:matrix.org
[m]
TL;DR I think both use cases are valid, but there is at least one use case for using a relay and still using DKIM signing.
Ludea
@ludea12:matrix.org
[m]
Hi, lettre is not not a smtp server ? I have to use a smtp relay ?
1 reply
Ludea
@ludea12:matrix.org
[m]
And there is no plan to create or add this feature ?
paolobarbolini
@paolobarbolini:matrix.org
[m]
It would most likely be implemented outside of lettre. See lettre/lettre#674 for more information
Ludea
@ludea12:matrix.org
[m]
Thanks for the link
Ludea
@ludea12:matrix.org
[m]