LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-24-2014, 09:02 AM   #16
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76

Well then:
SMTP PORT 25
POP3 PORT 110

Both SMTP and POP3 set to:

No encryption: password rejected.
STARTTLS:
Code:
Sending of message failed.
An error occurred sending mail: Unable to establish a secure link with SMTP server TCSMTP.TELECENTRO.COM.AR using STARTTLS since it doesn't advertise that feature. Switch off STARTTLS for that server or contact your service provider.
SSL/TLS:
Ports changed to 465/995
Code:
Sending of message failed.
The message could not be sent using SMTP server TCSMTP.TELECENTRO.COM.AR for an unknown reason. Please verify that your SMTP server settings are correct and try again, or contact your network administrator.
So I now know it is no encryption, as you said above, and can test the options for Authentication Method, one by one, which are five in number. Is it worthwhile?
 
Old 10-24-2014, 09:31 AM   #17
EYo
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 190

Rep: Reputation: 153Reputation: 153
I sit in Siberia and have only telnet

I think I see what you're trying to do. Here is a telnet conversation I had with my ISP:
Code:
telnet> open -l eyo -a pop.sonic.net 110
Trying 69.12.218.40...
Connected to pop.sonic.net.
Escape character is '^]'.
+OK Dovecot ready.
user eyo
+OK
pass ********    
+OK Logged in.
list
+OK 13 messages:
1 21802
<snip>
13 37657
.
quit
+OK Logging out.
Connection closed by foreign host.
eyo@opp:~$
There I am just testing unencrypted authentication, that my username and password actually work. http://www.ibiblio.org/ais/siberia.htm
So combining what you and Alien Bob already posted, I'd try telnet with:
Code:
open -l estefan34@telecentro.com.ar -a pop.telecentro.com.ar 110
I'm not sure if the @ symbol needs escaping, but it's easy to try. Maybe you don't need the whole string in the username. I was remembering a similar issue when Earthlink bought Mindspring, and all logins were changed to include the domain. That was fun .

Last edited by EYo; 10-24-2014 at 12:06 PM. Reason: Edited for brevity, haha. Added Siberia link
 
Old 10-24-2014, 09:55 AM   #18
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Code:
telnet> open -l estefan34@telecentro.com.ar -a pop.telecentro.com.ar 110
Trying 190.55.249.101...
Connected to pop.telecentro.com.ar.
Escape character is '^]'.
+OK
user estefan34@telecentro.com.ar
+OK
pass ********
+OK
list
+OK
1 1036
2 2863
3 1096
4 6363
[...........]
214 268140
215 10490
216 77675
217 17873
218 3642
.
quit
+OK
Connection closed by foreign host.
root@server:~#
This is what I get for what it's worth.
 
Old 10-24-2014, 10:06 AM   #19
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
Quote:
Originally Posted by stf92 View Post
Code:
telnet> open -l estefan34@telecentro.com.ar -a pop.telecentro.com.ar 110
Trying 190.55.249.101...
Connected to pop.telecentro.com.ar.
Escape character is '^]'.
+OK
user estefan34@telecentro.com.ar
+OK
pass ********
+OK
list
+OK
1 1036
...
This is what I get for what it's worth.
Everything seems OK. Just give it a try with Thunderbird as Rob suggested. Either you type your username wrong or Seamonkey mangles it.
 
Old 10-24-2014, 10:31 AM   #20
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Erased by the author.

Last edited by stf92; 10-24-2014 at 10:39 AM.
 
Old 10-24-2014, 10:37 AM   #21
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thunderbird: autosetting the configuration:

Incoming: IMAP, imap.telecentro.com.ar STARTTLS
Outgoing: SMTP, smtp.telecentro.com.ar No encryption
Username: ESTEFAN34

Immediatele after this, the following pops up:

Outgoing settings: smtp.telecentro.com.ar does not use encription [sic]. What do you think? What I personally think is it would be great to have a simple setup procedure and the syntax to use sendmail, as I intended to do in post #1.

Anyway, I kept trying with Thunderbird, correcting the parameters found by him, but it behaves exactly like Seamonkey did.

Last edited by stf92; 10-24-2014 at 10:56 AM.
 
Old 10-24-2014, 11:51 AM   #22
EYo
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 190

Rep: Reputation: 153Reputation: 153
Unless that's a typo, you're entering the wrong Username:ESTEFAN34. Try the one that worked with telnet "estefan34@telecentro.com.ar"
Quote:
Originally Posted by stf92 View Post
What I personally think is it would be great to have a simple setup procedure and the syntax to use sendmail, as I intended to do in post #1.
Okay, I'm out with that comment because I don't know sendmail or any ISP that will allow unauthorized connections on port 25 anymore, explained here: https://wiki.sonic.net/wiki/Port_25
If you want to try Tbird's manual configuration use mail.telecentro.com.ar on port 587 with correct username and password. Good luck!
 
1 members found this post helpful.
Old 10-24-2014, 01:17 PM   #23
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
You're right, a typo it was. The typo corrected, the situation remains the same as with Seamonkey, which really uses the same routines from Thunderbird, as I could see, for the setup.

I read the link. Now:
Code:
root@server:~# cat sendmail.sh
# inet 192.168.0.18 

busybox sendmail -v -f estefan34@telecentro.com.ar \
-S mail.telecentro.com.ar:587 \
-auestefan34@telecentro.com.ar -apabc123   \
enriquestefanini@yahoo.com.ar

root@server:~# ./sendmail.sh
sendmail: can't connect to remote host (190.55.249.101): Connection refused
root@server:~#
Well, take these rules:
Code:
Usage: sendmail [OPTIONS] [RECIPIENT_EMAIL]...

Read email from stdin and send it

Standard options:
	-t		Read additional recipients from message body
	-f SENDER	Sender (required)
	-o OPTIONS	Various options. -oi implied, others are ignored
	-i		-oi synonym. implied and ignored

Busybox specific options:
	-v		Verbose
	-w SECS		Network timeout
	-H 'PROG ARGS'	Run connection helper
			Examples:
			-H 'exec openssl s_client -quiet -tls1 -starttls smtp
				-connect smtp.gmail.com:25' <email.txt
				[4<username_and_passwd.txt | -auUSER -apPASS]
			-H 'exec openssl s_client -quiet -tls1
				-connect smtp.gmail.com:465' <email.txt
				[4<username_and_passwd.txt | -auUSER -apPASS]
	-S HOST[:PORT]	Server
	-auUSER		Username for AUTH LOGIN
	-apPASS 	Password for AUTH LOGIN

Other options are silently ignored; -oi -t is implied
Use makemime to create emails with attachments
This is busybox sendmail output (help). I think I adjusted to this syntax in the command above. Do you find a fault. If you don't, could I use telnet too?

I hope Eric won't take offense at my departure from GUI methods! [smile]I remain open to suggestions, be it GUI or CLI. I found this too: http://etutorials.org/Linux+systems/...sing+sendmail/ but is Redhat focused.

Last edited by stf92; 10-24-2014 at 01:28 PM.
 
Old 10-24-2014, 03:40 PM   #24
EYo
Member
 
Registered: Jun 2009
Distribution: Slackware
Posts: 190

Rep: Reputation: 153Reputation: 153
Did you try that first busybox option with your own settings? It's more complicated.

Code:
-H 'exec openssl s_client -quiet -tls1 -starttls smtp
-connect smtp.gmail.com:25' <email.txt
	[4<username_and_passwd.txt | -auUSER -apPASS]
 
Old 10-24-2014, 06:35 PM   #25
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Yes. I would like to know: what is the meaning of telnet having succeeded? Succeeded in doing what, if I may ask you?
 
Old 10-24-2014, 08:07 PM   #26
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Ehemmm... This is the output:
Code:
sendmail: recv:'220 tcmail.telecentro.com.ar ESMTP Postfix 2.7.40'
sendmail: send:'EHLO server'
sendmail: recv:'250-towebs'
sendmail: recv:'250-AUTH LOGIN PLAIN'
sendmail: recv:'250 AUTH=LOGIN PLAIN'
sendmail: send:'AUTH LOGIN'
sendmail: recv:'334 VXNlcm5hbWU6'
sendmail: send:''
sendmail: recv:'334 UGFzc3dvcmQ6'
sendmail: send:''
sendmail: recv:'235 Authentication successful'
sendmail: send:'MAIL FROM:<estefan34@telecentro.com.ar>'
sendmail: recv:'250 Ok'
Line 1
sendmail: send:'RCPT TO:<enriquestefanini@yahoo.com.ar>'
sendmail: recv:'250 Ok'
sendmail: send:'DATA'
sendmail: recv:'354 End data with <CR><LF>.<CR><LF>'
sendmail: send:'To: enriquestefanini@yahoo.com.ar'
sendmail: send:'Line 1'
Line 2
sendmail: send:'Line 2'
I type last and 3rd line and quit.
sendmail: send:'I type last and 3rd line and quit.'
quit
sendmail: send:'quit'
sendmail: send:'.'
sendmail: recv:'250 2.0.0 Ok: queued as 08B816DE9A6A0'
sendmail: send:'QUIT'
sendmail: recv:'221 Bye'
bill@server:/almacen/soft/busybox/sendmail$
This is the command line originating the output:
Code:
busybox sendmail -v -f estefan34@telecentro.com.ar \
-S tcsmtp.telecentro.com.ar:25 \
-auestefan34@telecentro.com.ar -ap**********   \
enriquestefanini@yahoo.com.ar
Then I opened my yahoo.com mail box and found the three lines, rather unbelievable! As sendmail is used to deliver mail, according to the manual, I haven't the faintest idea how I can read mail sent to me using an analog mechanism.

Last edited by stf92; 10-24-2014 at 08:32 PM.
 
Old 10-24-2014, 11:51 PM   #27
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
sendmail succeeds in transmitting but no files in var/pool/mail after reply.

Hi: I've been successful in sending mail to yahoo.com with sendmail. So, the second part of my job is being able to see answers back in /var/pool/mail. What I did: in yahoo I replyed with some text. Then I look in said dir and see a file with zero length and the same time as that I replyed at.

One question is: why zero length.

On the other hand, if I use the mail command to have a nicely formated file to send I receive nothing at yahoo and usuing 'mail' at the prompt gets 'No mail for user_name', where user_name is my username. So lets forget about 'mail' for the time being and restric our attention to sendmail. Having seen that it succeeds in sending from text typed at the console to yahoo, how could I do to get something, in a systematic way, in /var/pool/mail?

If you ask for the format of the sendmail command used I can send it, as well as the setup used.


Slackware 14.0

Last edited by stf92; 10-25-2014 at 05:13 AM.
 
Old 10-25-2014, 08:56 AM   #28
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
This is /etc/hosts:
Code:
estefan34@telecentro:~/Desktop$ cat /etc/hosts
# For loopbacking.
127.0.0.1		localhost
xxx.xxx.xxx.xxx	        telecentro.com.ar telecentro
yyy.yyy.yyy.yyy         local.DN2 local

estefan34@telecentro:~/Desktop$
and I have already run netconfig. If after sent mail to yahoo with
Code:
busybox sendmail -v -f estefan34@telecentro.com.ar \
-S tcsmtp.telecentro.com.ar:25 \
-auestefan34@telecentro.com.ar -ap**********   \
enriquestefanini@yahoo.com.ar
I, from my yahoo mail box, reply to the sender, I do not not see the reply in /var/spool/mail, save for this:
Code:
estefan34@telecentro:~/Desktop$ ls -l /var/spool/mail
total 20
-rw-rw---- 1 bill      mail     0 2014-06-05 03:14 bill
-rw-rw---- 1 estefan34 mail     0 2014-10-25 00:24 bull
-rw-rw---- 1 estefan34 mail     0 2014-10-25 00:41 estefan34
-rw-rw---- 1 pepito    mail     0 2014-06-11 13:56 pepito
-rw-rw---- 1 root      root 18617 2014-10-25 01:01 root
estefan34@telecentro:~/Desktop$ 
Why have these files zero length?
 
Old 10-25-2014, 11:58 AM   #29
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Why wouldn't you use fetchmail which is designed specifically for this (receiving mail from an upstream POP3/IMAP server)? For easy IMAP there is also offlineimap. sendmail is one of the most complex pieces of software included with Slackware and if you're not actually running a mail server, fetchmail is a much better solution.
 
1 members found this post helpful.
Old 10-25-2014, 03:48 PM   #30
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
sendmail is complex because it is used by MUAs and MTAs for SMTP transport. Now look at the manual: not over 500 lines. Look at fetchmail manual: almost 3000 lines. For the user sendmail is easier, because, besides, slackware does all of the configuration work for him.

If you know sendmail, why don't you give me a syntax equivalent to that of busybox sendmail, which is this?:
Code:
BusyBox v1.21.1 (2013-07-08 10:44:30 CDT) multi-call binary.

Usage: sendmail [OPTIONS] [RECIPIENT_EMAIL]...

Read email from stdin and send it

Standard options:
	-t		Read additional recipients from message body
	-f SENDER	Sender (required)
	-o OPTIONS	Various options. -oi implied, others are ignored
	-i		-oi synonym. implied and ignored

Busybox specific options:
	-v		Verbose
	-w SECS		Network timeout
	-H 'PROG ARGS'	Run connection helper
			Examples:
			-H 'exec openssl s_client -quiet -tls1 -starttls smtp
				-connect smtp.gmail.com:25' <email.txt
				[4<username_and_passwd.txt | -auUSER -apPASS]
			-H 'exec openssl s_client -quiet -tls1
				-connect smtp.gmail.com:465' <email.txt
				[4<username_and_passwd.txt | -auUSER -apPASS]
	-S HOST[:PORT]	Server
	-auUSER		Username for AUTH LOGIN
	-apPASS 	Password for AUTH LOGIN

Other options are silently ignored; -oi -t is implied
Use makemime to create emails with attachments
More exactly, a sendmail command line equivalent to
Code:
busybox sendmail -v -f estefan34@telecentro.com.ar \
-S tcsmtp.telecentro.com.ar:25 \
-auestefan34@telecentro.com.ar -ap*******   \
enriquestefanini@yahoo.com.ar

Last edited by stf92; 10-25-2014 at 03:50 PM.
 
  


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
solve the issue regarding to login screen anand pandya Linux - Newbie 4 09-05-2013 04:06 AM
[SOLVED] Need solution to solve the formatting issue flamingo_l Other *NIX 4 03-11-2011 05:08 AM
Sendmail via ISP with authentication SteveT Linux - Server 1 05-10-2007 02:01 AM
Sendmail and ISP SMTP Devyn Linux - Software 2 06-29-2005 08:21 PM
Sendmail & ISP datadriven Slackware 11 05-17-2005 07:51 AM

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

All times are GMT -5. The time now is 08:49 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