mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-27 02:06:00 +03:00
[GH-ISSUE #28] [Bug] Not able to send emails on Solus Linux distro #27
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kabouik on GitHub (Jan 30, 2020).
Original GitHub issue: https://github.com/d99kris/nmail/issues/28
Originally assigned to: @d99kris on GitHub.
If we put aside the Exchange account (issues already opened), I can send emails using my disroot.org account. However, this seems to work only from my Xubuntu 18.04 chroot within SailfishOS. When trying to send mail from the same account and similar
main.conffrom my computer running Solus, all attempts fail.libetpan 1.9.3-3andlipetpan-devel 1.9.3-3are installed.There may be issues even from the phone when I try attaching files, however, as you didn't receive this email despite it being sent from the phone. This will likely need a separate issue, but I am starting to mix up log files so I will postpone that to later.
I will send you a log file from the computer when attempting to send an email. However the file is already 14 MB with just this attempt. Is there something I can delete from the file before sending it?
@Kabouik commented on GitHub (Jan 30, 2020):
I just realized that default (non-verbose) logging is probably always enabled, while verbose logging is enabled with
-eor corresponding setting inmain.conf. I thought we only had verbose logging now.If correct, this kind of solves #19 provided that the documentation on both types of logging (namely that simple logging is enabled by default) is added to the
README.md.@d99kris commented on GitHub (Jan 31, 2020):
Yeah it could probably be cleared up, for example removing all lines containing
imaporFETCH. Another option would be to just try to zip the file, as it's mostly plain text the compression ratio should be fairly good.Sure, let me review README.md and if it can be made clearer.
@d99kris commented on GitHub (Feb 5, 2020):
In the fix of #19 the README.md was updated to better clarify the logging levels. Feel free to let me know if it is still unclear.
@d99kris commented on GitHub (Feb 8, 2020):
FYI - I tried sending email using nmail under Solus now and I am able to reproduce the problem, so I don't need any log file for debugging.
@d99kris commented on GitHub (Feb 9, 2020):
I finally got a chance to debug this a bit.
Log extract from
nmailunderSolus:Authentication type in
libetpanis a bitmask where 0xd is made up by:mailsmtp_auth()callsmailsmtp_auth_type()whenMAILSMTP_AUTH_PLAINis set, which in turn callsmailesmtp_auth_sasl()which returnsMAILSMTP_ERROR_NOT_IMPLEMENTEDiflibetpanis not built withlibsasl2support.Checking with
lddalso indicates that the Soluslibetpanpackage is built withoutlibsasl2support.Solus
Ubuntu 18.04 LTS
I would be inclined to think it's a
Soluspackaging bug in terms of howlibetpanis configured/built for Solus.When I find time I might try to build / install
libetpanfrom source underSolus, to confirm it fixes the problem.@d99kris commented on GitHub (Feb 9, 2020):
I figured I'd try building
libetpannow. By first installing SASL and then downloading and buildinglibetpanfrom source, and installing it, and then rebuildingnmail- I was able to send emails fromSolus.Some commands I used for reference:
@d99kris commented on GitHub (Feb 9, 2020):
Based on above findings I will proceed to close this bug. The root cause will need to be fixed by the packager of
libetpanonSolus- to ensurelibetpanis built withSASLsupport enabled. AlternativelySolususers may use the workaround provided above - buildinglibetpanfrom source.@Kabouik commented on GitHub (Feb 11, 2020):
Just to follow up, I reported this to the Solus team: https://dev.getsol.us/T8713
Thanks a lot for your time investigating it @d99kris.
@d99kris commented on GitHub (Feb 11, 2020):
Great, thank you! :)
@Kabouik commented on GitHub (Feb 20, 2020):
Note that I followed your instructions above to build
libetpanand rebuildnmailwith it, but I get a few errors that I did not get with the oldnmailinstallation procedure I was using until now:@d99kris commented on GitHub (Feb 22, 2020):
I'll try to get a chance to set up Solus again and build libetpan from source, and document the steps properly here. It's possible I missed some command above.
@Kabouik commented on GitHub (Mar 9, 2020):
I think the issue above was just due to nmail expecting
/usr/lib/libetpan.sowhile I only had/usr/lib/libetpan.so.20after building it, so I just made a symbolic link usingsudo lns /usr/lib/libetpan.so.20 /usr/lib/libetpan.so(I uselnsbecause I can never forget how to sort source and destination withln -s:<) and nownmailseems to build correctly.I'll have to test it for a few hours before knowing if it works fine.
@Kabouik commented on GitHub (Mar 9, 2020):
I tried sending you an email from Solus using git version of
libetpanandnmail1.49, but got the "Sending message failed" error. I saved it to the drafts, which worked, and then tried to send the message from my draft folder as well: it failed again, but this time when prompted to save the draft and saying yes, that failed too, and the draft disappeared.Not sure what is wrong with sending, I think we concluded it was due to
libetpanin the Solus repository, so the git version should work fine.I'm sending you the log file.
@d99kris commented on GitHub (Mar 10, 2020):
Thanks for sharing the log!
Hmm.. I think the commands I provided earlier left out a step. I retried the steps now and realized I needed to manually delete system installed libetpan files. So what I did (prior to
sudo make installin the libetpan directory) was to runsudo rm /usr/lib/libetpan.so*and the equivalent on your system would besudo rm /usr/lib64/libetpan.so*.Note: Having done so now I am unable to re-install Solus version of libetpan properly using eopkg (it simply recreates a symbolic link but does not create the actual library). This worked fine when I tried a few weeks ago. So if you are worried about messing the installation up I would perhaps suggest simply renaming all
/usr/lib/libetpan.so*(or/usr/lib64/libetpan.so*) files instead of deleting.After then rebuilding nmail it should find libetpan in
/usr/local/lib/libetpan.*(note the different path). This can be confirmed after build by checkingldd build/nmail(please help share the output if still having problems). I tested this now, and the SMTP send in itself is successful, but somehow disroot has slow delivery now, so I haven't received any emails I sent to myself (via Solus, Ubuntu or macOS). The slow delivery should not be related to nmail I feel. Unfortunately even disroot webmail login is unavailable so I cannot confirm, but I believe they are having some general issues.@Kabouik commented on GitHub (Mar 11, 2020):
Thanks for the detailed instructions and explanations. Just did the same, I'll report back here if still having sending issues.
@Kabouik commented on GitHub (Mar 11, 2020):
That was fast:
nmaildoes start if I useLD_PRELOAD=/usr/local/lib/libetpan.so.20 nmail, so efinitely not an error onnmailside, rather an issue with my library paths. I will look into it after work hopefully. I still fail to send emails though (from Exchange at least, will test other accounts after a meeting.@Kabouik commented on GitHub (Mar 13, 2020):
I just needed to
sudo ldconfigto fix the above library issue. I will now use nmail for a few days and see how it goes, but I am afraid I will still face the same issue with sending emails sincesudo ldconfigjust saves me from usingLD_PRELOAD.@Kabouik commented on GitHub (Mar 14, 2020):
I can confirm that the issue is still there, even from non-Exchange accounts, but also only on Solus somehow. I tried sending you some logs from my crashing Exchange account (#13), with git
libetpan, Solus, and a Disroot account, but no luck.@Kabouik commented on GitHub (Mar 17, 2020):
Actually
sudo ldconfigrecreated a/usr/lib64/libetpan.so.20symlink to my/usr/lib64/libetpan.so.20.4.backinstead of picking the library built in/usr/local/lib/libetpan.so.20. This is why I am still having the issue, asnmailis not using the library built from sources but the faulty Solus library.This is my
/etc/ld.so.conf.d/10-local.conf:@Kabouik commented on GitHub (Mar 17, 2020):
So I just moved my
/usr/lib64/libetpan.so.20.4.backto another folder unrelated to libraries, removed all symlinks to it, and rebuiltlibetpanfrom sources. This seems to have improved things because nownmaildoes run without the need ofLD_PRELOADandsudo ldconfigdidn't recreate new symlinks in/usr/lib64, meaningnmailmust be using the git version oflibetpanfrom/usr/local/lib/.Yet, it still fails to send messages. Perhaps I should try to set a new account up.
@d99kris commented on GitHub (Mar 21, 2020):
It seems strange. Perhaps you can help share a log file from the last send attempt, I can see if there's anything odd in it.
On my side I tried setting up a fresh Solus Linux installation where I did the following to double-confirm I don't have issues sending emails from Solus:
Build nchat using Solus libetpan
Check paths of the Solus provided libetpan
Remove Solus libetpan
Build / install libetpan from sources
Clean rebuild nmail
Confirm new libetpan path
Tested sending email using nmail
OK - sending using disroot account
OK - sending using gmail account
@Kabouik commented on GitHub (Mar 24, 2020):
Interestingly, I did exactly what you did above and I can now send emails from Disroot, thanks.
Just to clarify: I did not get any error during build with what I did before, nmail was using the correct libetpan library according to
ldd, and all dependencies were installed. However, there are a few variations, like deletinglibetpan.hor deleting the build folder before rebuilding, so maybe that was the issue. I'm sorry for the noise if that was that kind of stupid issue.I am still having trouble sending emails from my professional Exchange account (#22), but I suppose the Solus-specific issue is solved (I hope they update their repository version of libetpan soon).
@d99kris commented on GitHub (Mar 26, 2020):
Great to hear, thanks for testing. Then I'll close this issue and we'll track the Exchange issue in #22.