Koozali.org: home of the SME Server

fetchmail sending wrong ETRN command

robey

fetchmail sending wrong ETRN command
« on: August 05, 2003, 08:26:48 PM »
howdy,

I did a upgrade from e-smith 4 to SME 5.6 (i know its overdue but
forgive me)
after the upgrade, none of my spooled mail came through... here are some
details :

my /etc/fetchmail contains the following :

/usr/bin/fetchmail --syslog --silent --protocol ETRN --smtphost '@mydomain.co.za' venus.mweb.net > /dev/null 2>&1

I tried the following to see why no mail was coming through :

[root@e-smith root]# /usr/bin/fetchmail -v -v --protocol ETRN --smtphost '@mydomain.co.za' venus.mweb.net
fetchmail: 5.9.0 querying venus.mweb.net (protocol ETRN) at Tue 05 Aug 2003 05:57:11 PM SAST
fetchmail: SMTP< 220 smtp.mweb.net ESMTP Exim 3.36 #1 Tue, 05 Aug 2003 16:27:31 +0200
fetchmail: selecting or re-polling default folder
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-hermes.mweb.net Hello mail.mydomain.co.za [196.2.34.175]
fetchmail: SMTP< 250-SIZE 26214400
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-AUTH CRAM-MD5 PLAIN LOGIN
fetchmail: SMTP< 250 HELP
fetchmail: ETRN> ETRN localhost
fetchmail: ETRN< 458 Already processing localhost
fetchmail: Unable to queue messages for node localhost
fetchmail: ETRN> QUIT
fetchmail: SMTP< 221 hermes.mweb.net closing connection
fetchmail: client/server protocol error while fetching from venus.mweb.net
fetchmail: Query status=4 (PROTOCOL)
fetchmail: Deleting fetchids file.
fetchmail: normal termination, status 4
fetchmail: Deleting fetchids file.

I noticed that my fetchmail sends the command "ETRN localhost"
I figured that couldnt be right, so I  did a telnet to venus.mweb.net on
port 25 and tried "ETRN mydomain.co.za" and it started sending my mail!!
great!!...but....

Why does fetchmail do a ETRN localhost, witch doesnt work, and how/where
can i tell it to do a ETRN mydomain.co.za??

help/comments apreciated

Thx
Robey Phinn
C.A & W Services CC

robey

Re: fetchmail sending wrong ETRN command
« Reply #1 on: August 06, 2003, 05:52:06 PM »
I fixed it by doing a

/usr/bin/fetchmail --syslog --silent --protocol ETRN --smtphost '@mydomain.co.za' --fetchdomains mydomain.co.za venus.mweb.net > /dev/null 2>&1

added it to a custome template /etc/e-smith/templates-custom/etc/fetchmail/70Myfix

this works...It should however not be necessary though???
the --fetchdomains switch shuold not be necessary, because I dont have it on any other client servers?
thoughts, comments or corrections welcome

-robey