Help - Search - Members - Calendar
Full Version: Fetchmail Found But Now Working
Linuxhelp > Support > Technical Support
Robert83
I get these erros when fetchmail is executed via cron :

Error retrieving mail: Error code: 127
vesnajuretic /home/vesnajuretic/.fetchmailrc

/usr/local/sbin/dothefetch.sh: line 14: /usr/bin/fetchmail: No such file or directory
/usr/local/sbin/dothefetch.sh: line 14: /usr/bin/fetchmail: No such file or directory
/usr/local/sbin/dothefetch.sh: line 14: /usr/bin/fetchmail: No such file or directory
/usr/local/sbin/dothefetch.sh: line 14: /usr/bin/fetchmail: No such file or directory
/usr/local/sbin/dothefetch.sh: line 14: /usr/bin/fetchmail: No such file or directory

what to do here?

------------UPDATE-------------------
I forgot to install Fetchmail smile.gif , so I type yum install fetchmail , and guess what it's showing another error ( why couldn't it just work ? ... - it wouldn't be interesting smile.gif )
so the error I get now is this
fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from pop3.stcable.co.yu
fetchmail: Query status=10 (SMTP)
fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from pop3.stcable.co.yu
fetchmail: Query status=10 (SMTP)
fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from pop3.stcable.co.yu
fetchmail: Query status=10 (SMTP)
fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from pop3.stcable.co.yu
fetchmail: Query status=10 (SMTP)
fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from pop3.stcable.co.yu
fetchmail: Query status=10 (SMTP)

I have entered my e-mail userid and my password, and pop3.stcable.co.yu
why is it doing this?
where do I allow fetchmail to connect to localhosts smtp ? or what is wrong here ?
( I can send mail, and recieve it with outlook express, and even with squirrelmail, though I use smtp 192.168.2.200 and not 127.0.0.1 (since that aint working for some reason)
netstat -an | grep LISTEN | grep 25
tcp 0 0 192.168.2.200:25 0.0.0.0:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 2225 private/ifmail

---------UPDATE-------------------

that smtp problem solved ,but I think the mail_fetchmail script is not working ok with my version
of fetchmail (6.2.0-3) , when I try to manualy run dothefetch.sh I get a list of available commands from fetchmail, and when I try to run it like this ./dothefetch.sh > output , I get a
/usr/bin/fetchmail : option requires an argument -- f
what to do here?


Sincerely
Robert B
Robert83
Hi,

well it's working now (or seems to be working) don't know why but I have this problem

when fetchmail collects mail

I have in my mail.log file, that postfix tried to send e-mail to vesnajuretic@localhost.bt.alstar.co.yu ?

it should send the mail to vesnajuretic@bt.alstar.co.yu.


what to do here?

Sincerely
Robert B
hughesjr
was there an error or did the mail make it to the users inbox?

if you put up the masqurading I sent you earlier, both of those addresses will look the same after they are rewritten.

You might try having (in /etc/postfix/main.cf) the myhostname and the mydomain be the same (bt.alstar.co.yu) ... and have it in /etc/sysconfig/network as well.

then make sure mydestination = $mydomain and see if that helps...
Robert83
Hi,

I did what you told me to do , but I still have that error my
/etc/hosts looks like this
CODE
127.0.0.1    localhost.localdomain localhost
192.168.2.200      bt.alstar.co.yu


/etc/sysconfig/network
CODE
NETWORKING=yes
HOSTNAME=bt.alstar.co.yu
GATEWAY=192.168.2.250


and here is my mail.log file :
CODE
Jun  1 11:25:29 bt MailScanner[1319]: Message D0CF1488064 from 127.0.0.1 (mailer-daemon@alstar.co.yu) to localhost.bt.alstar.co.yu,localhost is not spam, SpamAssassin (score=0, required 6)
Jun  1 11:25:32 bt MailScanner[1319]: Virus and Content Scanning: Starting
Jun  1 11:25:32 bt MailScanner[1319]: Requeue: D0CF1488064 to E93475402D
Jun  1 11:25:32 bt postfix/nqmgr[1123]: E93475402D: from=<mailer-daemon@alstar.co.yu>, size=5270, nrcpt=1 (queue active)
Jun  1 11:25:32 bt MailScanner[1319]: Uninfected: Delivered 1 messages
Jun  1 11:25:32 bt postfix/smtp[1381]: E93475402D: to=<vesnajuretic@localhost.bt.alstar.co.yu>, orig_to=<vesnajuretic@localhost>, relay=none, delay=28, status=bounced (Name service error for name=localhost.bt.alstar.co.yu type=A: Host not found)
Jun  1 11:25:32 bt postfix/cleanup[1383]: 939825402E: message-id=<20040601092532.939825402E@bt.alstar.co.yu>
Jun  1 11:25:32 bt postfix/nqmgr[1123]: 939825402E: from=<>, size=7041, nrcpt=1 (queue active)
Jun  1 11:25:33 bt postfix/smtp[1384]: 939825402E: to=<MAILER-DAEMON@alstar.co.yu>, relay=mx1.verat.net[217.26.64.139], delay=1, status=sent (250 2.0.0 i519Jq2i008202 Message accepted for delivery)
Jun  1 11:30:03 bt postfix/smtpd[1437]: connect from localhost.localdomain[127.0.0.1]
Jun  1 11:30:03 bt postfix/smtpd[1437]: 59BAE488064: client=localhost.localdomain[127.0.0.1]
Jun  1 11:30:03 bt postfix/cleanup[1438]: 59BAE488064: message-id=<1086081602.5377.0.camel@demon>
Jun  1 11:30:03 bt postfix/nqmgr[1064]: 59BAE488064: from=<brobiwbe@stcable.co.yu>, size=1717, nrcpt=1 (queue active)
Jun  1 11:30:03 bt postfix/nqmgr[1064]: 59BAE488064: to=<vesnajuretic@localhost.bt.alstar.co.yu>, orig_to=<vesnajuretic@localhost>, relay=none, delay=0, status=deferred (deferred transport)
Jun  1 11:30:03 bt postfix/smtpd[1437]: 7B914488065: client=localhost.localdomain[127.0.0.1]
Jun  1 11:30:03 bt postfix/cleanup[1438]: 7B914488065: message-id=<1086081611.5377.2.camel@demon>
Jun  1 11:30:03 bt postfix/nqmgr[1064]: 7B914488065: from=<brobiwbe@stcable.co.yu>, size=1718, nrcpt=1 (queue active)
Jun  1 11:30:03 bt postfix/smtpd[1437]: disconnect from localhost.localdomain[127.0.0.1]
Jun  1 11:30:03 bt postfix/nqmgr[1064]: 7B914488065: to=<vesnajuretic@localhost.bt.alstar.co.yu>, orig_to=<vesnajuretic@localhost>, relay=none, delay=0, status=deferred (deferred transport)
Jun  1 11:30:07 bt MailScanner[1320]: New Batch: Scanning 2 messages, 4191 bytes

as you can see it's working, I mean fetchmail gets the mail from my e-mail adress, and wants to forward it, but the problem is that it puts the localhost in front of the domain name

what to do here?

I recieve this e-mail back to my original mail adress at stcable.co.yu
CODE
This is the Postfix program at host bt.alstar.co.yu.I'm sorry to have to inform you that the message returnedbelow could not be delivered to one or more destinations.For further assistance, please send mail to <postmaster>If you do so, please include this problem report. You candelete your own text from the message returned below.                        The Postfix program<vesnajuretic@localhost.bt.alstar.co.yu>: Name service error for    name=localhost.bt.alstar.co.yu type=A: Host not found



Sincerely
Robert B
Robert83
Hi,

I got help from the hungarian guru, he told me to do this :

[/etc/postfix/virtual]
#ez a domain aliasing - > this is the domain aliasing
is-micro.hu anything
# minden usernek az "alias"-a, mivel a levelcim kulonbozik -> each user has a alias, because
# a vnet (szolgaltatoi) levelcimtol -> it differs from vnets e-mail adress
user@bt.alstar.co.yu user@localhost
user2@bt.alstar.co.yu user2@localhost

now I DO GET E-MAIL yipeeeeeee smile.gif , but If you have time please check my maillog , what do you think is it ok now? since when i get mail it says vesnajuretic@localhost.bt.alstar.co.yu or vesnajuretic@localhost sent.

CODE
Jun  1 14:30:04 bt postfix/smtpd[1455]: connect from localhost.localdomain[127.0.0.1]
Jun  1 14:30:04 bt postfix/smtpd[1455]: C36D8488064: client=localhost.localdomain[127.0.0.1]
Jun  1 14:30:04 bt postfix/cleanup[1456]: C36D8488064: message-id=<1086092445.6747.2.camel@demon>
Jun  1 14:30:04 bt postfix/nqmgr[1069]: C36D8488064: from=<brobiwbe@stcable.co.yu>, size=1745, nrcpt=1 (queue active)
Jun  1 14:30:04 bt postfix/smtpd[1455]: disconnect from localhost.localdomain[127.0.0.1]
Jun  1 14:30:04 bt postfix/nqmgr[1069]: C36D8488064: to=<vesnajuretic@localhost.bt.alstar.co.yu>, orig_to=<vesnajuretic@localhost>, relay=none, delay=0, status=deferred (deferred transport)
Jun  1 14:30:08 bt MailScanner[1132]: New Batch: Scanning 1 messages, 2123 bytes
Jun  1 14:30:39 bt MailScanner[1132]: Message C36D8488064 from 127.0.0.1 (brobiwbe@stcable.co.yu) to localhost.bt.alstar.co.yu,localhost is not spam, SpamAssassin (score=-2.4, required 6, autolearn=not spam, USER_AGENT_XIMIAN -2.35)
Jun  1 14:30:42 bt MailScanner[1132]: Virus and Content Scanning: Starting
Jun  1 14:30:42 bt MailScanner[1132]: Requeue: C36D8488064 to 92E215402D
Jun  1 14:30:42 bt postfix/nqmgr[1128]: 92E215402D: from=<brobiwbe@stcable.co.yu>, size=1937, nrcpt=1 (queue active)
Jun  1 14:30:42 bt MailScanner[1132]: Uninfected: Delivered 1 messages
Jun  1 14:30:42 bt postfix/local[1472]: 92E215402D: to=<vesnajuretic@localhost.bt.alstar.co.yu>, orig_to=<vesnajuretic@localhost>, relay=local, delay=38, status=sent (mailbox)


what do you think?

Sincerely
Robert B
hughesjr
The virtual should work too, I was going to recommend that ... but, what I told you to do with masquerading should do the same thing ...

The extra localhost is what I don't understand...if that wasn't in there, the mails would have been being delivered before.

I would say that if it is working now (and sent mails look good and recieved mails look good) then leave it alone....
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.