LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Using sendmail 8.14.5 to solve issue with ISP. (https://www.linuxquestions.org/questions/slackware-14/using-sendmail-8-14-5-to-solve-issue-with-isp-4175523124/)

stf92 10-23-2014 08:12 AM

Using sendmail 8.14.5 to solve issue with ISP.
 
Hi: Not entirely true, running sendmail under BusyBox 1.21.1, so busybox will see to the details and I'll have a minimal set of commands. And I can always run the very sendmail if necessary. What happens with this ISP? They don't give advice on any O.S. They tell me: "The connection is OK from this side up to your DHCP modem. Your side is a thing of yours". It's POP3/SMTP. They tell me my username is the same as my URL. All right.

The setup I think is identical to that of my previous ISP, which I used with SeaMonkey 2.12.1 (SeaMonkey Mail). Here, I used to use:

(a) Connection security: none
(b) Authentication method: password, transmited insecurely

for both directions, in and out and everything went well. I think the new ISP does not care more than the old about security, but I may be wrong. In that case, trying with all the combinations of (a) and (b) would be easier with sendmail, and the error messages more concise and I would not be pressing the mouse buttons 30 times a minute.

However it may be the other way around and seamonkey a more convinient tool to use, for instance if it could query the ISP and fill in those fields automatically. What do you think?

Alien Bob 10-23-2014 10:13 AM

I do not see a question here. The topic is "using sendmail 8.14.5 to solve issue with ISP" but then you want us to tell you if you can keep using Seamonkkey mail?
Sendmail is a MTA, Seamonkey is a MUA. The two bear no relation. The remainder of your text basically bears no meaningful sentence.

Please explain what you are running into and what needs to be fixed or solved, or exemplified.

Eric

stf92 10-23-2014 10:57 AM

Wait a moment, if you please. Let's stick to sendmail and, please, let only people knowing sendmail post.

Problem: cannot make my usual mail client to establish a connection with the outside world.

Question: how can sendmail help me to establish it?

I've read the manual of course and have issued this command:
Code:

bill@server:~$ busybox sendmail -v -f estefan34@telecentro.com.ar -auUSER estefan34@telecentro.com.ar -apPASS abc123  enriquestefanini@yahoo.com.ar
sendmail: can't connect to remote host (127.0.0.1): Connection refused
bill@server:~$

The exact meaning of this message would be another question, but... well, isn't 127.0.0.1 for loopbacking? Accordingly I'm trying to send a message to myself?

Alien Bob 10-23-2014 12:33 PM

Apparently you are using the "sendmail" applet of busybox. That is not the same as the sendmail MTA which comes with Slackware and which gets its configuration from the files in /etc/mail.
In particular, the "sendmail" applet of busybox needs a "-S" parameter to tell it which server you want to talk to.

Eric

stf92 10-23-2014 12:42 PM

That's good! I'd already noticed -S HOST[:PORT] in the syntax but couldn't figure out the meaning of HOST. Does this give an answer?
Code:

root@server:~# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.18  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::922b:34ff:feb8:78cf  prefixlen 64  scopeid 0x20<link>
        ether 90:2b:34:b8:78:cf  txqueuelen 1000  (Ethernet)
        RX packets 36899  bytes 32055045 (30.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 33881  bytes 7735755 (7.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 44  base 0x6000 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 20  bytes 1080 (1.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 20  bytes 1080 (1.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

So I'll use /usr/bin/sendmail. Hummm... I will try to learn a little bit from the internet or a system admin guide. Google gave me my public IP address, I used it in option -S and could begin to type in the console. Only I pressed then ^D and did not stop, a tiny detail.

EYo 10-23-2014 12:44 PM

TLA Holiday
 
Perhaps Alien meant something more, like http://catb.org/~esr/faqs/smart-questions.html?
TL;DNR? see bold part at the end.
Quote:

Before You Ask
Before asking a technical question by e-mail, or in a newsgroup, or on a website chat board, do the following:

Try to find an answer by searching the archives of the forum you plan to post to.
Try to find an answer by searching the Web.
Try to find an answer by reading the manual.
Try to find an answer by reading a FAQ.
Try to find an answer by inspection or experimentation.
Try to find an answer by asking a skilled friend.
If you're a programmer, try to find an answer by reading the source code.

When you ask your question, display the fact that you have done these things first; this will help establish that you're not being a lazy sponge and wasting people's time. Better yet, display what you have learned from doing these things. We like answering questions for people who have demonstrated they can learn from the answers.
Many times I'll solve a problem by presenting myself the question, and then carefully describe the steps to reproduce it before I post. PEBKAC rules.
HTH, HAND

Alien Bob 10-23-2014 01:07 PM

Look, if you fail to see that "-S HOST:PORT (Server)" means that you have to supply the SMTP server there, why are you bothering at all with busybox?
And I wonder where you got the idea that Sendmail (the MTA) is useful for reading emails? You can _send_ an email from the commandline with a bit of trouble and a good understanding of the SMTP protocol, but when SMTP AUTH comes to play, you'll have to know even more of the SMTP inner workings.

Perhaps you are getting confused with the fetchmail program? That program can fetch emails from your ISP and deliver them to a local mailbox, which you could then read using Seamonkey, or pine, or mitt, or even vi.

Yet I fail to see why you don't just stick with Seamonkey Mail, or even switch to Thunderbird which can figure out the required connection parameters automatically.

Eric

stf92 10-23-2014 01:16 PM

Sir, let's begin by the end. Each person uses this or the other program to communicate via email in the GUI. So, if I say I use seamonkey, my chances to get an answer are few. More importantly, these programs are infinitely complicated as compared with the basic Linux command to accomplish that: sendmail.

The number of parameters to supply is minimal, once I know the proper ones I can use them once and again, and learn in the process. If you wonder about busybox, please forget about it for a while, though it makes operation much simpler, hidding the subtelties of the process to the would-be user. These are my reasons.

But I see these are not enough reasons. I have used Seamonkey mail for over three years, and suddenly my new ISP makes it usesless. Did you read post #1?

arsivci0 10-23-2014 02:08 PM

Quote:

Originally Posted by stf92 (Post 5258429)
Sir, let's begin by the end. Each person uses this or the other program to communicate via email in the GUI. So, if I say I use seamonkey, my chances to get an answer are few. More importantly, these programs are infinitely complicated as compared with the basic Linux command to accomplish that: sendmail.

The number of parameters to supply is minimal, once I know the proper ones I can use them once and again, and learn in the process. If you wonder about busybox, please forget about it for a while, though it makes operation much simpler, hidding the subtelties of the process to the would-be user. These are my reasons.

But I see these are not enough reasons. I have used Seamonkey mail for over three years, and suddenly my new ISP makes it usesless. Did you read post #1?

So sendmail (mailx?) is simple and Seamonkey's not working with new ISP. I'd really like to meet them, they're sure the weirdest one in the business.

stf92 10-23-2014 02:34 PM

Granted.

Alien Bob 10-23-2014 03:35 PM

Quote:

Originally Posted by stf92 (Post 5258429)
Did you read post #1?

Absolutely, and in that post you do not tell what is wrong with your ISP, you do not show us what errors you are getting when trying to get Seamonkey to connect to your ISP, and do not tell us if you even know the ISP's hostname to be used for the POP3 and SMTP servers.

Eric

stf92 10-23-2014 06:01 PM

OK, don't worry. I just installed 12.0 just to make certain the new ISP and Seamonkey don't come to terms, and now I can tell you neither Win98 nor Win7 can avoid trouble with it. I'd be ready to provide all needed information had I not installed the Sendmail mail server (rc.sendmail) when the installer asked me. Every other thing I did as I did a hundred times before. The thing is that avoids trying with seamonkey/12.0, but I'm about to boot and run the utility, whose name I cannot remember now, to install/uninstall those services or the directory involved. I mean, I can always do it with the installation disk. Concision is not my virtue.

stf92 10-23-2014 07:49 PM

3 Attachment(s)
12.0 can't connect to the ISP. This is from dmesg:
Code:

r8169 Gigabit Ethernet driver 2.2LK loaded
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:02:00.0 to 64
eth0: RTL8169s/8110s at 0xf8d04000, 90:2b:34:b8:78:cf, IRQ 16
usbhid: exports duplicate symbol hiddev_hid_event (owned by kernel)
usbhid: exports duplicate symbol hiddev_hid_event (owned by kernel)
input: PC Speaker as /class/input/input3
input: PS/2 Generic Mouse as /class/input/input4
lp: driver loaded but no devices found
Linux agpgart interface v0.102 (c) Dave Jones
Capability LSM initialized
NTFS volume version 3.1.
usbhid: exports duplicate symbol hiddev_hid_event (owned by kernel)
usbhid: exports duplicate symbol hiddev_hid_event (owned by kernel)
r8169: eth0: link down
r8169: eth0: link down
r8169: eth0: link down

which later gives
Code:

Polling for DHCP server on interface eth0:
No carrier detected on eth0.  Reducing DHCP timeout to 10 seconds.
dhcpcd: MAC address = 90:2b:34:b8:78:cf
Starting Internet super-server daemon:  /usr/sbin/inetd

Sorry to bring a secondary problem here, but what can be possibly happening?

The driver, r8169 is up and running, as can be seen in the 1st block, first line. I attach the whole dmesg outtput and two other files.

EDIT: this goes too far. The machine is too new for 12.0 which lacks the drivers for the realtek 8169. So lets put and end to the digression and let's go back to 14.0 and Seamonkey running on it.

stf92 10-23-2014 10:38 PM

Seamonkey 2.12.1
Xfce 4.10
Slackware 14.0

Trying to access in mail. Seamonkey asks for my password, I enter it and he notifies:
Code:

Sending of password did not succeed. Mail server TCPOP.TELECENTRO.COM.AR responded: Authentication failed (bad password?)
Trying to send mail out. Seamonkey notifies:
Code:

Sending of message failed.
The message could not be sent because connecting to SMTP server TCSMTP.TELECENTRO.COM.AR failed. The server may be unavailable or is refusing SMTP connections. Please verify that your SMTP server settings are correct and try again, or contact the server administrator.

Just two examples. I have, however just spoken with the company, which assures me the username and password are the ones producing Seamonkey's error notification. And of course, the POP3 and SMTP hostnames I've asked the company and are those I use in Seamonkey.

Alien Bob 10-24-2014 02:57 AM

I let Thunderbird test that email server infrastructure and come up with working parameters.

This is what it got:
SMTP server: smtp.telecentro.com.ar (no encryption)
POP3 server: pop.telecentro.com.ar (no encryption)
IMAP server: imap.telecentro.com.ar (STARTTLS for encryption)

All these hostnames resolve to the same IP as the two hostnames tcsmtp.telecentro.com.ar and tcpop.telecentro.com.ar that you are using, so that looks good.

What port is Seamonkey Mail using to talk to the SMTP server? Should be port 25 for unencrypted connections. For POP3 it should be using port 110. These connections do indeed seem to require a username/password. If the password error keeps coming up, try changing your connection to an encrypted one (SSL or better, STARTTLS). The server port changes too, in that case.

Eric


All times are GMT -5. The time now is 09:56 AM.