LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-22-2021, 02:53 PM   #1
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.

Code:
export MAILRC="/home/chris/mailtest.rc"
echo "Hello" | mailx -v -n -s Test "recipient@recipients.address"
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.

Last edited by chrisVV; 02-22-2021 at 03:00 PM.
 
Old 02-22-2021, 03:33 PM   #2
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by chrisVV View Post
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.
While i can't help on the subject, at least here you can see what changed(thanks to Alien, and thanks to Ponce pointing to it in another thread):
https://git.slackware.nl/current/log...ail.SlackBuild
 
Old 02-22-2021, 03:51 PM   #3
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Original Poster
Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.

Last edited by chrisVV; 02-22-2021 at 03:56 PM.
 
Old 02-22-2021, 05:09 PM   #4
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Confirmed here...
 
Old 02-22-2021, 09:28 PM   #5
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
I'm having the same problem. I posted about it to the 'requests for current' thread on the 18th.

Here

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.
 
Old 02-23-2021, 04:08 AM   #6
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Original Poster
Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
@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).

Last edited by chrisVV; 02-23-2021 at 05:10 AM.
 
Old 02-23-2021, 01:18 PM   #7
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
@chrisVV

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.
 
Old 02-23-2021, 02:43 PM   #8
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Original Poster
Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by Mechanikx View Post
@chrisVV

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.

By the way, you can get the original s-nail-14.9.21-x86_64-1.txz from http://slackware.uk/cumulative/slack...t/slackware64/ . That site has saved me a number of times when updated packages have had defects.
 
Old 02-23-2021, 05:12 PM   #9
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 351

Rep: Reputation: 258Reputation: 258Reputation: 258
Quote:
Originally Posted by chrisVV View Post
That's fine, I was just wondering whether the defect affects relays other than gmail, and I have established that it does.

By the way, you can get the original s-nail-14.9.21-x86_64-1.txz from http://slackware.uk/cumulative/slack...t/slackware64/ . That site has saved me a number of times when updated packages have had defects.
This is great! Thank you
 
Old 02-23-2021, 09:43 PM   #10
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Here is a new s-nail release, which addresses ssl-problems.
https://lists.sdaoden.eu/pipermail/s...ry/001401.html
https://ftp.sdaoden.eu/s-nail-14.9.22.tar.xz
 
3 members found this post helpful.
Old 02-23-2021, 11:16 PM   #11
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Quote:
Originally Posted by franzen View Post
This has resolved the issue completely on my system .
 
3 members found this post helpful.
Old 02-24-2021, 04:49 AM   #12
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Original Poster
Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Yes, s-nail-14.9.22 fixes the problem for me.
 
2 members found this post helpful.
Old 02-24-2021, 07:28 AM   #13
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 934

Rep: Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526Reputation: 526
Quote:
Originally Posted by chrisVV View Post
Yes, s-nail-14.9.22 fixes the problem for me.
It seems that fixes the lock problem too.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Squirrelmail relay access denied when send mail to gmail miti92 Linux - Server 5 06-28-2018 06:59 AM
awk - print field 2 from line 8 and onwards dazdaz Programming 2 03-27-2013 03:55 AM
LXer: Onwards to Four LXer Syndicated Linux News 0 10-28-2012 01:40 PM
Postfix SMTP relay via gmail using original sender email address? bdobolina Linux - Server 4 05-01-2012 06:21 AM
Onwards to kde4.2 jdkaye Debian 11 07-31-2009 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration