Re: [lula] fetchmail: SMTP connect to localhost failed

2001-02-10 Thread Josh Huber

On Fri, Feb 09, 2001 at 12:09:58AM -0800, Jason Helfman wrote:
 you don't have smtp listening on your localhost for delivery. 
 
 port 25
 
 this is what I have on a: netstat -a :grep 25, or netstat -l
 
 tcp0  0 0.0.0.0:25  0.0.0.0:*   LISTEN  
 
 also you can try connecting to localhost port 25 with telnet
 
 jhelfman@dsl-64-34-6-73:~/bash$ telnet localhost 25
 Trying 127.0.0.1...
 Connected to alice.
 Escape character is '^]'.
 220 dsl-64-34-6-73.telocity.com ESMTP
 
 this is what mine showsand if it is working correctly, it will hand
 there awaiting commands.
 
 I hope this helps.

Also, I recommend not using sendmail, but having fetchmail deliver
directly into your inbox using procmail.  Use ssmtp for sending mail.
ssmtp is a nice send-only mailer that's really simple to configure:

apt-get install procmail ssmtp

here's the important line from .fetchmailrc:

poll foo.bar.com protocol imap username "huber" password
"***" mda "procmail -d %T"

the "mda" part is the important one.

You might need a .procmailrc.  Something simple like:
PATH=/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/mail/
DEFAULT=$HOME/mail/inbox

ttyl,

-- 
Josh Huber | [EMAIL PROTECTED] |

 PGP signature


Re: [lula] fetchmail: SMTP connect to localhost failed

2001-02-10 Thread Suresh Ramasubramanian

Josh Huber wrote:

 Also, I recommend not using sendmail, but having fetchmail deliver
 directly into your inbox using procmail.  Use ssmtp for sending mail.
 ssmtp is a nice send-only mailer that's really simple to configure:

[a bit OT]

Does ssmtp do deferred delivery (so that I can queue mail offline and
then send it all at one shot, as I do with /usr/sbin/sendmail -q)?

[I'll be putting up a howto of how to set up email on a linux box
connected via a dialup - checking pop accounts with fetchmail, using
mutt as the client and sendmail as the MTA.  I'd also like to add
sections on exim, postfix and ssmtp / masqmail / nullmailer]

If someone has info on how to get masqmail / nullmailer etc working as a
queue and deliver system (so that I can compose mail when offline, queue
it and send it in one shot) please mail me offlist (urls will do g)

thanks
-suresh

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin



Re: [lula] fetchmail: SMTP connect to localhost failed

2001-02-08 Thread Jason Helfman

you don't have smtp listening on your localhost for delivery. 

port 25

this is what I have on a: netstat -a :grep 25, or netstat -l

tcp0  0 0.0.0.0:25  0.0.0.0:*   LISTEN  

also you can try connecting to localhost port 25 with telnet

jhelfman@dsl-64-34-6-73:~/bash$ telnet localhost 25
Trying 127.0.0.1...
Connected to alice.
Escape character is '^]'.
220 dsl-64-34-6-73.telocity.com ESMTP

this is what mine showsand if it is working correctly, it will hand
there awaiting commands.

I hope this helps.


On Thu, Feb 08, 2001 at 11:35:15PM -0800, Robert Cymbala muttered:
| 
| This is about an old Toshiba laptop for a Vietnamese guy who wants to
| get online.  Hopefully there's a simple answer I'm not seeing, it
| would save hours.  It works on an old Compaq laptop (download user
| 'cymbala' email from mail.lafn.org), but can't get fetchmail to work
| on a Toshiba T4700ct laptop.
| 
| Both laptops are configured the same except for kernel:
| 
|   "fetchmail -V" on Compaq (fetchmail works):
| This is fetchmail release 5.3.3+NTLM+SDPS+NLS
| Linux cymba.land.org 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i486 unknown
| ...
| (identical info.)
| 
|   "fetchmail -V" on Toshiba (fetchmail doesn't works):
| This is fetchmail release 5.3.3+NTLM+SDPS+NLS
| Linux cymba.land.org 2.2.18pre21 #1 Sat Nov 18 18:47:15 EST 2000 i486 unknown
| ...
| (identical info.)
| 
| There are probably other differences as a result of creating a recent
| set of Debian installation floppies for the Toshiba (1 rescue, 1 root,
| 4 driver,  11 base system). Otherwise, same set of CDs used to add
| software after base system was installed from floppies.  Differences
| between kernel and/or base system wouldn't cause "SMTP connect to
| localhost failed," would they?
| 
| These files are identical between two computers:
|   /root/.fetchmailrc
|   /etc/exim.conf
|   /etc/hosts, ./hostname, ./mailname (same hostname  dnsdomainname)
| 
| This is from Toshiba, shows where fetchmail fails:
|   --
|   fetchmail --all --keep --verbose --verbose
| 
|   5.3.3 querying mail.lafn.org (protocol POP3) at Thu, 08 Feb 2001 22:27:13 -0800 
|(PST)
|   POP3 +OK QPOP (version 3.0b31) at zoon.lafn.org starting.  
|   POP3 USER cymbala
|   POP3 +OK Password required for cymbala.
|   POP3 PASS *
|   POP3 +OK cymbala has 2 messages (1753 octets).
|   selecting or re-polling default folder
|   POP3 STAT
|   POP3 +OK 2 1753
|   2 messages for cymbala at mail.lafn.org (1753 octets).
|   POP3 LIST
|   POP3 +OK 2 messages (1753 octets)
|   POP3 1 467
|   POP3 2 1286
|   POP3 .
|   POP3 RETR 1
|   POP3 +OK 467 octets
|   reading message 1 of 2 (467 octets)
|   About to rewrite Return-Path: [EMAIL PROTECTED]
|   ...
|   SMTP connect to localhost failed
|   POP3 QUIT
|   POP3 
|   SMTP transaction error while fetching from mail.lafn.org
| 
| 
| That's it, even with a double "--verbose" it doesn't say why.  Below
| is from Compaq, shows fetchmail working:
|   --
|   fetchmail --all --keep --verbose --verbose
| 
|   POP3 RETR 1
|   POP3 +OK 467 octets
|   reading message 1 of 2 (467 octets)
|   About to rewrite Return-Path: [EMAIL PROTECTED]
|   ...
|   SMTP 220 cymba.land.org ESMTP Exim 3.12 #1 Thu, 08 Feb 2001 22:34:11 -0800
|   SMTP EHLO localhost
|   SMTP 250-cymba.land.org Hello root at cymba.land.org [127.0.0.1]
|   SMTP 250-SIZE
|   SMTP 250-PIPELINING
|   SMTP 250 HELP
|   forwarding to localhost
|   SMTP MAIL FROM:[EMAIL PROTECTED] SIZE=467
|   SMTP 250 [EMAIL PROTECTED] is syntactically correct
|   SMTP RCPT TO:cymbala@localhost
|   SMTP 250 cymbala@localhost is syntactically correct
|   SMTP DATA
|   SMTP 354 Enter message, ending with "." on a line by itself
|   SMTP. (EOM)
|   SMTP 250 OK id=14R78F-0001qP-00
|not flushed
|   POP3 RETR 2
| 
| Help! what am I missing?  With identical configuration files, I can't
| understand why it's not working.  Both computers using pppd dialed
| into 316-0167.
| * * * 
| 
| 
|  Yahoo! Groups Sponsor -~-~
| eGroups is now Yahoo! Groups
| Click here for more details
| http://click.egroups.com/1/11231/0/_/123848/_/981704120/
| -_-
| 
| Linux Users Los Angeleshttp://www.lula.org
|http://lalugs.org 
| To unsubscribe (or modify your preferences) visit
|   http://www.onelist.com/community/lula OR
|   send mail to [EMAIL PROTECTED]
| 

-- 
/Jason G Helfman

"At any given moment, you may find the ticket to the circus that has always
been in your possession."

Fingerprint: 6A32 3774 E390 33B5 8C96  2AA1 2BF4 BD71 35A1 C149
GnuPG http://www.gnupg.org  Get Private!  1024D/35A1C149