[SOLVED] Using s-nail to send email via gmail relay fails from s-nail-14.9.21-x86_64-2 onwards
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Using s-nail to send email via gmail relay fails from s-nail-14.9.21-x86_64-2 onwards
The problem can be reduced to this simple test case. First, create a mailx configuration file called /home/chris/mailtest.rc with this in it:
Code:
set from=[gmail username]@gmail.com
set smtp=smtp.gmail.com:587
set smtp-auth-user=[gmail username]@gmail.com
set smtp-auth-password=[gmail password]
set smtp-auth=login
set smtp-use-starttls
Then executing the following test email in a terminal works fine up to an including s-nail-14.9.21-x86_64-1.
However from s-nail-14.9.21-x86_64-2 onwards, the correct exchange appears to take place with the gmail mail server but the message delivered to the recipient has no body and no subject given for it. Its headers look fine though so the transport seems to be OK.
Reverting to s-nail-14.9.21-x86_64-1 solves the problem. Unfortunately I do not have a copy of the s-nail.SlackBuild so I do not know what changed between the SlackBuild for s-nail-14.9.21-x86_64-1 and the SlackBuild for s-nail-14.9.21-x86_64-2.
I have not tested this with any smtp relay other than gmail. It would be interesting to hear the results from anyone who is able to do this.
Unfortunately I do not have a copy of the s-nail.SlackBuild so I do not know what changed between the SlackBuild for s-nail-14.9.21-x86_64-1 and the SlackBuild for s-nail-14.9.21-x86_64-2.
Thanks for the heads-up. On comparing versions, there was no difference in the SlackBuild between s-nail-14.9.21-x86_64-1 and s-nail-14.9.21-x86_64-2. This implies that the defect is something to do with the latest version of glibc. More particularly it suggests that s-nail-14.9.21 is not compatible with the glibc-2.33 headers.
Fortunately, I have a current vm that hasn't been updated since 2/11 so I downloaded the s-nail source on it and rebuilt it against glibc 2.22 then transferred it over to my physical machine and installed it. Now everything is working as expected. My messages contain a body and a subject.
@andrew.46 and @Mechanikx: Are you using a relay and if so is it the gmail smtp relay? I was wondering whether it is a problem with sending any email in any way, with sending an email via a relay, or with sending via a SSL/TLS enabled relay such as gmail.
Edit: I have just tried mailx with a different (non-gmail) relay which uses the rather unusual combination of SASL authentication but not TLS encryption. This also works with s-nail-14.9.21-x86_64-1 but not with s-nail-14.9.21-x86_64-2 onwards. However, in the case of this relay, instead of the recipient receiving an email without subject or body, following SASL authentication completing successfully there is a failure to send the email itself correctly because mailx gives an incorrect response. It looks as if there is some timing problem in s-nail triggered by glibc-2.33. Perhaps s-nail is making some incorrect synchronization assumptions.
Edit2: s-nail-14.9.21-x86_64-4 does appear to work correctly for (but only for) local emails via postfix and procmail (that is, not involving a relay).
I do have it set up with gmail smtp. I'm not very knowledgeable in this area so I can't really explore any further. Like I said in my previous post I rebuilt s-nail-14.9.21-x86_64-4 against glibc 2.22, but if there are any tests you would like me to run on my end to help you diagnose the problem just let me know.
I do have it set up with gmail smtp. I'm not very knowledgeable in this area so I can't really explore any further. Like I said in my previous post I rebuilt s-nail-14.9.21-x86_64-4 against glibc 2.22, but if there are any tests you would like me to run on my end to help you diagnose the problem just let me know.
That's fine, I was just wondering whether the defect affects relays other than gmail, and I have established that it does.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.