Article 5EGYA Using s-nail to send email via gmail relay fails from s-nail-14.9.21-x86_64-2 onwards

Using s-nail to send email via gmail relay fails from s-nail-14.9.21-x86_64-2 onwards

by
chrisVV
from LinuxQuestions.org on (#5EGYA)
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-starttlsThen 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.latest?d=yIl2AUoC8zA latest?i=xz6A7RgDXZ4:ZGozNRtv8n0:F7zBnMy latest?i=xz6A7RgDXZ4:ZGozNRtv8n0:V_sGLiP latest?d=qj6IDK7rITs latest?i=xz6A7RgDXZ4:ZGozNRtv8n0:gIN9vFwxz6A7RgDXZ4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments