LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-26-2014, 01:26 PM   #46
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23

Quote:
Originally Posted by stf92 View Post
@arsivci0:
###### Lo de abajo ANDA
sendmail -v -f estefan34@telecentro.com.ar \
-S tcsmtp.telecentro.com.ar:25 \
-auestefan34@telecentro.com.ar -apabc123 \
enriquestefanini@yahoo.com.ar
Do you by any chance have telecentro.com.ar as your FQDN?
 
Old 10-26-2014, 02:45 PM   #47
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by arsivci0 View Post
Do you by any chance have telecentro.com.ar as your FQDN?
My fault. The block should say:
Code:
###### Lo de abajo ANDA
busybox sendmail -v -f estefan34@telecentro.com.ar \
-S tcsmtp.telecentro.com.ar:25 \
-auestefan34@telecentro.com.ar -apxxxxxxxxxxxx   \
enriquestefanini@yahoo.com.ar
I can directly give you my /etc/hosts, which for me is the prime suspect:
Code:
estefan34@telecentro:~$ 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


# End of hosts.
estefan34@telecentro:~$
local.DN2 is another machine in my LAN. My user name is 'estefan34'.

Last edited by stf92; 10-26-2014 at 02:48 PM.
 
Old 10-26-2014, 03:00 PM   #48
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Any mistakes in those two lines in /etc/hosts would immediately be felt by either my machine or the other machine in the LAN. Ergo, the file is OK, if I am not wrong.

Of interest, maybe is this, from the link I gave above:
Quote:
When invoked from the command line, fetchmail will poll all of the configured
servers from the .fetchmailrc file and deliver the messages to the default mail
spool for that user in /var/mail/ or hand the messages off to the specfied mda
command.

Fetchmail will deliver the message to the current user’s mailbox under the
following conditions:

There is no mda is specified for the account in question in the
.fetchmailrc.
There are no local users are specified with the is "[local-user]" here;
syntax in the account specification within the .fetchmailrc file.
There are no corresponding local users for the remote usernames on the
server.

If fetchmail is running as the root user, it will drop privledges to deliver
messages to specific user accounts. If fetchmail is unable to deliver messages
as root it will deposit them in the system’s “postmaster” account. The
postmaster account defaults to postmaster, and the mail spool is located at
/var/mail/postmaster, unless modified

Last edited by stf92; 10-26-2014 at 03:11 PM.
 
Old 10-26-2014, 03:01 PM   #49
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
Quote:
Originally Posted by stf92 View Post
I can directly give you my /etc/hosts, which for me is the prime suspect:
Code:
estefan34@telecentro:~$ 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


# End of hosts.
estefan34@telecentro:~$
local.DN2 is another machine in my LAN. My user name is 'estefan34'.
I am not a DNS guru but there probably is something wrong with your local host name. Locally it is telecentro (as at the prompt we see estefan34@telecentro) while /etc/hosts gives telecentro an alias to an outside address. I suggest you change your local name to something else than telecentro and try it one more time.
 
1 members found this post helpful.
Old 10-26-2014, 03:22 PM   #50
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Replace
xxx.xxx.xxx.xxx telecentro.com.ar telecentro
by
xxxx.xxx.xxx.xx foo23.foo685 foo23

?

EDIT: I did it but it fails, with the same error.
Code:
stefan34@telecentro:~$ fetchmail
gethostbyname failed for telecentro
Name or service not knownCannot find my own host in hosts database to qualify it!
Trying to continue with unqualified hostname.
DO NOT report broken Received: headers, HELO/EHLO lines or similar problems!
DO repair your /etc/hosts, DNS, NIS or LDAP instead.
244 messages for estefan34@telecentro.com.ar at tcpop.telecentro.com.ar (8591634 octets).
fetchmail: Connection errors for this poll:
name 0: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused.
fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from estefan34@telecentro.com.ar@tcpop.telecentro.com.ar and delivering to SMTP host localhost
reading message estefan34@telecentro.com.ar@tcpop.telecentro.com.ar:1 of 244 (1036 octets)fetchmail: Query status=10 (SMTP)
estefan34@telecentro:~$

Last edited by stf92; 10-26-2014 at 03:36 PM.
 
Old 10-26-2014, 03:44 PM   #51
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
If xxx.xxx.xxx.xxx pointing to telecentro/foo23 is an outside IP, then delete it completely. Let your DNS find telecentro's IP address OR change your local machine name and domain to something other than telecentro.

This might explain why sendmail fails, but it does not explain Seamonkey's failure.
 
Old 10-26-2014, 04:19 PM   #52
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Unbelievable! No more the darn error! The error is now this:
Code:
estefan34@juan:~$ fetchmail
fetchmail: Authorization failure on estefan34@juan.com.ar@tcpop.telecentro.com.ar
fetchmail: Query status=3 (AUTHFAIL)
estefan34@juan:~$
After having followed your suggestion, arsivci0. [Last post contains a typo]

Last edited by stf92; 10-26-2014 at 04:27 PM.
 
Old 10-26-2014, 04:28 PM   #53
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
You posted while I was writing!
 
Old 10-26-2014, 04:57 PM   #54
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
I think you should post once again the current
1- /etc/hosts
2- localhost name (user@xxx)
3- fetchmailrc

as we might have inadvertantly done something wrong. Your penultimate post said "gethostname failed for telecentro" which suggested fetchmailrc contained "telecentro" instead of full server address. Because hosts file had it as an alias to telecentro.com.ar, it had succeeded previously.

Secondly, if no mail delivery agent is defined in fetchmailrc, fetchmail will deliver messages to localhost port 25 for sendmail to pick them up. That requires a proper hosts file.

Third, if you have another machine (not tainted, a live distro perhaps) or maybe a Windows partition, it might be a good idea to check if username and password is correct for the mail server. If mail goes through we now know that settings are correct and there's something wrong on the linux side.
 
Old 10-26-2014, 08:27 PM   #55
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Code:
estefan34@juan:~$ slogin root@local
slogin: Could not resolve hostname local: Name or service not known
estefan34@juan:~$ slogin semoi@local
slogin: Could not resolve hostname local: Name or service not known
estefan34@juan:~$
From the other machine, local
Code:
semoi@local:~$ slogin estefan34@juan
slogin: juan: Name or service not known
semoi@local:~$ slogin estefan34@juan
The current state of the machine is:
Code:
estefan34@juan:~$ cat /etc/hosts
#
# hosts		This file describes a number of hostname-to-address
#		mappings for the TCP/IP subsystem.  It is mostly
#		used at boot time, when no name servers are running.
#		On small systems, this file can be used instead of a
#		"named" name server.  Just add the names, addresses
#		and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1		localhost
192.168.1.123		juan.com.ar juan

# End of hosts.

estefan34@juan:~$
Code:
estefan34@juan:~$ v .fetchmailrc
-rw------- 1 estefan34 estefan34 149 2014-10-26 18:09 .fetchmailrc
estefan34@juan:~$ cat .fetchmailrc






#set postmaster "tmp"
poll tcpop.telecentro.com.ar protocol pop3:
   username "estefan34@juan.com.ar" password "abc123" is "estefan34" here;


estefan34@juan:~$
localhost name (user@xxx)
About the third item, the name is estefan34, which is me, regular user.

EDIT: "which suggested fetchmailrc contained "telecentro" instead of full server address." No, I always had it that way.

EDIT: You said "If mail goes through we now know that...". My mistake. In an hour or so I will be telling you.

Last edited by stf92; 10-26-2014 at 09:22 PM.
 
Old 10-26-2014, 11:32 PM   #56
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-26-2014 at 11:45 PM.
 
Old 10-26-2014, 11:44 PM   #57
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
arsivci0, thought I had backed up the files after succeeding in both reception and transmition but, for some cause, the thing wount work again, not having forgotten to run netconfig and boot after touching /etc/hosts (hostname= telecentro). But for some reason I am getting
Code:
stefan34@telecentro:/almacen/soft/busybox/sendmail/enlacosa$ ./recmail.sh
popmaildir: PASS xxxxxxxx failed, reply was: -ERR Authentication failed (bad password?)

estefan34@telecentro:/almacen/soft/busybox/sendmail/enlacosa$
when running busybox popmaildir. What a bad luck. Not only I did backups but marked them with certain word within the file! Some part of the system is remembering the 'juan' token (new hostname).

EDIT: i'LL have to ask the ISP a new password, but it means to have to wait 48hs. What do you think?

Last edited by stf92; 10-27-2014 at 03:25 AM.
 
Old 10-27-2014, 05:49 AM   #58
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
Sorry for belated response, time difference; I'm 7 hours ahead of you, I guess.

fetchmailrc:
Your username seems to be wrong:
it should be "estefan34@telecentro.com.ar" I believe. For the password, I can not comment :-)

/etc/hosts:
Is "juan.com.ar" a registered domain name? Hope you did not make it up (someone more knowledgeable about DNS might step in here as I recall this is a bad idea). A bogus name or juan.example.com may serve better.
 
Old 10-27-2014, 01:17 PM   #59
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
You're welcome. Time lags 3 hs with respect to Greenwich here. I had not replicated identical conditions. So, please do as if post #57 does not exist. I will be ready, then, to resume the fetchmail stuff by the day after tomorrow. First I need to recapitulate what has been done in the last 48 hs.

juan.com.ar is not a registered domain name as far as I know.

"A bogus name or juan.example.com may serve better.": alright.

Up to now two good things have happened:
(a) I now know mail reaching my ISP servers is accesible to me and that I can reach the outside trough those servers, thus ending a whole year of uncertainty. There is no such thing as "the ISP is blocking my mail, knowingly or not".

(b) I have been succesful in using tools given me by my system in establishing communication with said servers (busybox sendmail/popmaildir).

Last edited by stf92; 10-27-2014 at 08:38 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:22 AM.

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