Tech Support > Operating Systems > Linux / Variants > fetchmail problems
fetchmail problems
Posted by Yvan@office on November 28th, 2003


I have email account where my ISP forwards all mail of a type
anyname@mydomain.com (name1@mydomain.com, name2@mydomain.com...).
On my local machine i have users name1, name2... I am trying to get
fetchmail to get all mail and delivet it to local mailboxes. Hire is my
/root/.fetchmailrc (made by fetchmailconf):

set logfile "/tmp/fetchMailByiva"
set postmaster "iva"
set nobouncemail
set no spambounce
set properties ""
poll pop3.infosky.net with proto POP3
localdomains 21oktobar.com
user 'info21' there with password 'mypass' is '*' here

an hire is result of that:

fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK message 1 (1027 octets):
fetchmail: reading message info21@pop3.infosky.net:1 of 3 (1027 octets)
fetchmail: SMTP< 220 21oktobar.com ESMTP Sendmail 8.12.5/8.12.5; Fri, 28
Nov 2003 10:15:28 +0100
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-21oktobar.com Hello localhost.localdomain
[127.0.0.1], pleased to meet you
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-AUTH GSSAPI
fetchmail: SMTP< 250-DELIVERBY
fetchmail: SMTP< 250 HELP
fetchmail: SMTP> MAIL FROM:<info21@infosky.net> BODY=7BIT SIZE=1027
fetchmail: SMTP< 250 2.1.0 <info21@infosky.net>... Sender ok
fetchmail: SMTP> RCPT TO:<*@localhost>
fetchmail: SMTP< 550 5.1.1 <*@localhost>... User unknown
fetchmail: SMTP error: 550 5.1.1 <*@localhost>... User unknown
fetchmail: SMTP listener doesn't like recipient address `*@localhost'
fetchmail: SMTP< 220 21oktobar.com ESMTP Sendmail 8.12.5/8.12.5; Fri, 28
Nov 2003 10:15:28 +0100
fetchmail: SMTP> HELO localhost
fetchmail: SMTP< 250 21oktobar.com Hello localhost.localdomain
[127.0.0.1], pleased to meet you
fetchmail: SMTP> MAIL FROM:<FETCHMAIL-DAEMON@21oktobar.com>
fetchmail: SMTP< 250 2.1.0 <FETCHMAIL-DAEMON@21oktobar.com>... Sender ok
fetchmail: SMTP> RCPT TO:<iva>
fetchmail: SMTP< 250 2.1.5 <iva>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
fetchmail: SMTP: (bounce-message body)
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 hAS9FSOk006241 Message accepted for delivery
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 21oktobar.com closing connection
fetchmail: SMTP> RCPT TO:<iva@localhost>
fetchmail: SMTP< 250 2.1.5 <iva@localhost>... Recipient ok
fetchmail: no address matches; forwarding to iva.
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
#**fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 hAS9FSOk006240 Message accepted for delivery
fetchmail: flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK message 1 marked for deletion

So all mail is forwarded to user one user (iva). How do I edit my
/root/.fetchmailrc to get fetchmail to do what I want?

If important:

OS: RH8
fetchmail: fetchmail-6.2.0-1
sendmail: sendmail-8.12.5-7
$ uname -a: Linux 21oktobar.com 2.4.18-14 #1...

--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** http://counter.li.org/ **
/__/\____/--\__\ ** Reply at: ivica - at - ptt - dot - yu **

Posted by Anonymous on November 28th, 2003


"Y" == Yvan@office <nevazeca-invalid@address-a.com>:
Y> I have email account where my ISP forwards all mail of a type
Y> anyname@mydomain.com (name1@mydomain.com, name2@mydomain.com...).
Y> On my local machine i have users name1, name2... I am trying to get
Y> fetchmail to get all mail and delivet it to local mailboxes. Hire is my
Y> /root/.fetchmailrc (made by fetchmailconf):
Y>
Y> set logfile "/tmp/fetchMailByiva"
Y> set postmaster "iva"
Y> set nobouncemail
Y> set no spambounce
Y> set properties ""
Y> poll pop3.infosky.net with proto POP3
Y> localdomains 21oktobar.com
Y> user 'info21' there with password 'mypass' is '*' here

Try adding the 'localdomains mydomain.com' option

-=-
This message was posted via two or more anonymous remailing services.




Posted by Noi on November 28th, 2003


On Fri, 28 Nov 2003 11:49:48 +0100, Yvan without thinking wrote:

The "'mypass' is '*' here" is wrong should be "'mypass' is * here"

You could have 'mypass' is myuserid, otheruserid, oruserid=thatuser here


Posted by Yvan@office on December 2nd, 2003


Nedavno Noi pise:

Error was in sendmail configuration, not /root/.fetchmailrc. Sendmail
was not configured to receive mail for 21oktobar.co.yu domain. I fixed
that, but now I have different problem.

When sending mail from box that I work on (and where sendmail and
fetchmail are), I can send mail OK.

But when I try to send mail from other (windows) box (where i created
account in Outlook Express) I can only send mail to name@21oktobar.co.yu
(21oktobar.co.yu is domain hosted by our ISP, and all mail for that
domain is forwarded to account 'info21' from which i fetch mail with
fetchmail).

When I try to send mail for name@anydomain.com OE gives me following
error:

The message could not be sent because one of the recipient was rejected
by the server. The rejected email address was 'ivica@ptt.yu'. Subject
'test', Account: 'Ivan Imperl', Server: '192.168.0.1', Protocol: SMTP,
Server Response: '450 4.7.1 <ivica@ptt.yu>... Relaying temporary denied.
Cannot resolve PTR record for 192.168.0.6', Port: 25, Secure(SSL): No,
Server Error: 450, Error Number: 0x800CCC79

What needs to be changed in sendmail configuration so that clients from
network can send mail to any address, not only to name@21oktobar.co.yu
(and name@21oktobar.com -> # uname -n results with21oktobar.com)


--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** http://counter.li.org/ **
/__/\____/--\__\ ** Reply at: ivica - at - ptt - dot - yu **

Posted by Noi on December 3rd, 2003


On Tue, 02 Dec 2003 12:28:56 +0100, Yvan without thinking wrote:

Sounds like you need to enable relay in sendmail. Make sure sendmail
will for mail received from the windows box on port 25 out to the
internet. Sorry man sendmail.cf.

Posted by Yvan@office on December 3rd, 2003


Nedavno Noi pise:

| Sounds like you need to enable relay in sendmail. Make sure sendmail
| will for mail received from the windows box on port 25 out to the

Thanks for the hint, solved :-)



--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** http://counter.li.org/ **
/__/\____/--\__\ ** Reply at: ivica - at - ptt - dot - yu **

Posted by Noi on December 3rd, 2003


On Wed, 03 Dec 2003 11:14:37 +0100, Yvan without thinking wrote:

Siete benvenuti


Similar Posts