HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Fetchmail retrieval configuration on the clients side (http://www.howtoforge.com/forums/showthread.php?t=34935)

perfectpol7 13th May 2009 16:46

Fetchmail retrieval configuration on the clients side
 
On my fedora 10 server I have configured Fetchmail Retrieval using webmin and it seems to be working fine. Here if the output of the check servers from the webmin of the Fetchmail:

Checking Servers

Checking for mail on server(s) with command fetchmail -v -f '/etc/fetchmailrc' -m '10.0.0.5' ..

fetchmail: WARNING: Running as root is discouraged.
fetchmail: 6.3.8 querying mail.perfectpol.com (protocol POP3) at Wed May 13 16:24:01 2009: poll started
Trying to connect to 196.22x.6x.110/110...connected.
fetchmail: POP3< +OK POP3 server ready <dce8701f-ddee-4017-80cd-e66d5b284d74@cmail1.wadans.net>
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< UIDL
fetchmail: POP3< IMPLEMENTATION Smartertools_SmarterMail_1.5
fetchmail: POP3< .
fetchmail: pop.perfectpol.com: opportunistic upgrade to TLS failed, trying to continue.
fetchmail: POP3> USER munec@perfectpol.com
fetchmail: POP3< +OK User:'munec@perfectpol.com' ok
fetchmail: POP3> PASS *
fetchmail: POP3< +OK Password ok
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 554
fetchmail: POP3> LAST
fetchmail: POP3< +OK 0
2 message for munec@perfectpol.com at mail.perfectpol.com (554 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 554
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK
reading message munc@perfectpol.com@mail.perfectpol.com:1 of 1 (554 octets)
sh: 10.0.0.5: command not found
#*fetchmail: Error writing to MDA: Broken pipe
not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK POP3 server signing off
fetchmail: 6.3.8 querying mail.perfectpol.com (protocol POP3) at Wed May 13 16:24:09 2009: poll completed
fetchmail: 6.3.8 querying mail.perfectpol.com (protocol POP3) at Wed May 13 16:24:09 2009: poll started
Trying to connect to 196.22x.6x.110/110...connected.
fetchmail: POP3< +OK POP3 server ready <efc2b011-c4fb-499f-970e-12c6f7d56b9b@cmail1.wadans.net>
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< UIDL
fetchmail: POP3< IMPLEMENTATION Smartertools_SmarterMail_1.5
fetchmail: POP3< .
fetchmail: pop.perfectpol.com: opportunistic upgrade to TLS failed, trying to continue.
fetchmail: POP3> USER sanleg@perfectpol.com
fetchmail: POP3< +OK User:'sanleg@perfectpol.com' ok
fetchmail: POP3> PASS *
fetchmail: POP3< +OK Password ok
fetchmail: POP3> STAT
fetchmail: POP3< +OK 0 0
fetchmail: No mail for sanleg@perfectpol.com at mail.perfectpol.com
fetchmail: POP3> QUIT
fetchmail: POP3< +OK POP3 server signing off
fetchmail: 6.3.8 querying mail.perfectpol.com (protocol POP3) at Wed May 13 16:24:16 2009: poll completed
fetchmail: normal termination, status 0

.. checking complete

Now my problem is how do I configure the fetchmail to deliver mail to clients desktops. I have two email users one with Windows XP mail client Microsoft outlook express and the other one with fedora 10 evaluotion. What are the necessary configuration should be done on the clients pc to receive or get the mails that has been download by fetchmail server.

falko 14th May 2009 17:01

The clients have to log in to the POP3 account where fetchmails puts the mails in.

perfectpol7 15th May 2009 12:04

I have install dovecot for pop3 and configured it, now when I try to test dovecot pop3
#telnet localhost pop3
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

here is my dovecot.conf
#protocols = imap imaps pop3 pop3s
protocols = pop3 pop3s imap imaps
#pop3_uidl_format = %08Xu%08Xv
#imap_client_workarounds = delay-newmail outlook-idle netscape-eoh
#pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
#mail_location = maildir:~/Maildir

why is pop3 refused to connect are my setting not right, no firewall or selinux set.

perfectpol7 15th May 2009 13:19

I have install dovecot for pop3 and configured it, now when I try to test dovecot pop3
#telnet localhost pop3
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

here is my dovecot.conf
#protocols = imap imaps pop3 pop3s
protocols = pop3 pop3s imap imaps
#pop3_uidl_format = %08Xu%08Xv
#imap_client_workarounds = delay-newmail outlook-idle netscape-eoh
#pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
#mail_location = maildir:~/Maildir

why is pop3 refused to connect are my setting not right, no firewall or selinux set.

perfectpol7 16th May 2009 14:04

I have edit on the dovecot.conf
#listen = *, [::]
listen = *, [::]

and when I try to telnet the pop3 here is the output of it:
[root@perfectpol ~]# telnet localhost pop3
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
Connection closed by foreign host.

then the connection just die not sure what is killing it I have no firewalland selinux set(disabled)

falko 17th May 2009 19:35

Any errors in the mail log?
What's the output of
Code:

netstat -tap
?

perfectpol7 18th May 2009 10:04

Message from the /var/log/maillog

May 18 04:52:03 perfectpol sendmail[23287]: n4I2psdF023287: to=root, ctladdr=root (0/0), delay=00:00:09, xdelay=00:00:00, mailer=relay, pri=30463, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Output for netstat -tap:-
[root@perfectpol ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:dnp *:* LISTEN 2633/perl
tcp 0 0 *:nfs *:* LISTEN -
tcp 0 0 *:rquotad *:* LISTEN 2337/rpc.rquotad
tcp 0 0 *:pop3 *:* LISTEN 7116/dovecot
tcp 0 0 *:sunrpc *:* LISTEN 1953/rpcbind
tcp 0 0 *:ndmp *:* LISTEN 2642/perl
tcp 0 0 *:personal-agent *:* LISTEN 2498/dc_server
tcp 0 0 *:39795 *:* LISTEN 2353/rpc.mountd
tcp 0 0 *:domain *:* LISTEN 2601/dnsmasq
tcp 0 0 *:44373 *:* LISTEN -
tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2574/cupsd
tcp 0 0 10.0.0.5:squid *:* LISTEN 2522/(squid)
tcp 0 0 *:40538 *:* LISTEN 1966/rpc.statd
tcp 0 0 localhost.localdomain:50674 localhost.lo:personal-agent ESTABLISHED 2471/dc_client
tcp 0 0 192.168.0.10:48241 208.81.191.111:http ESTABLISHED 23621/firefox
tcp 0 0 *:cvspserver *:* LISTEN 2291/xinetd
tcp 0 0 *:swat *:* LISTEN 2291/xinetd
tcp 0 0 *:pop3 *:* LISTEN 7116/dovecot
tcp 0 0 *:sunrpc *:* LISTEN 1953/rpcbind
tcp 0 0 *:http *:* LISTEN 2463/httpd
tcp 0 0 *:domain *:* LISTEN 2601/dnsmasq
tcp 0 0 *:ftp *:* LISTEN 2291/xinetd
tcp 0 0 localhost6.localdomain6:ipp *:*

falko 19th May 2009 14:50

I wonder why the netstat output shows Dovecot two times...
Are there any other errors in the logs? What's the output of
Code:

getenforce
?

perfectpol7 19th May 2009 15:26

the output of the code getenforce
[root@perfectpol ~]# getenforce
Disabled


the output for the /var/log/maillog
May 18 04:52:03 perfectpol sendmail[23287]: n4I2psdF023287: to=root, ctladdr=root (0/0), delay=00:00:09, xdelay=00:00:00, mailer=relay, pri=30463, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May 18 10:49:53 perfectpol dovecot: This is Dovecot's info log
May 18 10:49:53 perfectpol dovecot: This is Dovecot's warning log
May 18 10:49:53 perfectpol dovecot: This is Dovecot's error log
May 18 10:49:53 perfectpol dovecot: Fatal: This is Dovecot's fatal log
May 18 11:19:06 perfectpol dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
May 18 11:27:15 perfectpol dovecot: pop3-login: Aborted login (auth failed, 3 attempts): user=<munec@perfectpol.co.za>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
May 18 11:35:34 perfectpol dovecot: pop3-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
May 18 12:29:58 perfectpol dovecot: pop3-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
May 18 15:33:52 perfectpol dovecot: pop3-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
May 18 15:36:46 perfectpol dovecot: pop3-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
May 18 15:42:12 perfectpol dovecot: pop3-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
May 18 15:44:58 perfectpol dovecot: pop3-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
May 18 15:47:10 perfectpol dovecot: pop3-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
May 18 16:06:11 perfectpol dovecot: pop3-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
May 19 04:51:56 perfectpol sendmail[30582]: n4J2ptNB030582: from=root, size=4533, class=0, nrcpts=1, msgid=<200905190251.n4J2ptNB030582@localhost.local domain>, relay=root@localhost
May 19 04:51:56 perfectpol sendmail[30582]: n4J2ptNB030582: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=34533, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May 19 04:55:36 perfectpol sendmail[30832]: n4J2pum7030832: from=root, size=463, class=0, nrcpts=1, msgid=<200905190251.n4J2pum7030832@localhost.local domain>, relay=root@localhost
May 19 04:55:36 perfectpol sendmail[30832]: n4J2pum7030832: to=root, ctladdr=root (0/0), delay=00:03:40, xdelay=00:00:00, mailer=relay,


All times are GMT +2. The time now is 21:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.