here is the output of the command fetchmail -v
[root@mails ~]# fetchmail -v
fetchmail: WARNING: Running as root is discouraged.
fetchmail:/root/.fetchmailrc:8: syntax error at sslcertck!
[root@mails ~]# vim .fetchmailrc
[root@mails ~]# fetchmail -v
fetchmail: WARNING: Running as root is discouraged.
fetchmail: 6.3.22 querying exam.com (protocol POP3) at Tue 26 Nov 2013 02:41:33 PM WAT: poll started
fetchmail: couldn't find canonical DNS name of exam.com (exam.com): No address associated with hostname
fetchmail: 6.3.22 querying exam.com (protocol POP3) at Tue 26 Nov 2013 02:41:33 PM WAT: poll completed
fetchmail: Query status=11 (DNS)
fetchmail: 6.3.22 querying mail.exam.com (protocol auto) at Tue 26 Nov 2013 02:41:33 PM WAT: poll started
fetchmail: 6.3.22 querying mail.exam.com (protocol IMAP) at Tue 26 Nov 2013 02:41:33 PM WAT: poll started
Trying to connect to 192.185.8.218/143...connected.
fetchmail: IMAP< * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
fetchmail: IMAP> A0001 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA STARTTLS AUTH=PLAIN AUTH=LOGIN
fetchmail: IMAP< A0001 OK Capability completed.
fetchmail: IMAP> A0002 STARTTLS
fetchmail: IMAP< A0002 OK Begin TLS negotiation now.
fetchmail: Server certificate:
fetchmail: Issuer Organization: COMODO CA Limited
fetchmail: Issuer CommonName: PositiveSSL CA 2
fetchmail: Subject CommonName: *.websitewelcome.com
fetchmail: Subject Alternative Name: *.websitewelcome.com
fetchmail: Subject Alternative Name: websitewelcome.com
fetchmail: Server CommonName mismatch: *.websitewelcome.com != mail.exam.com
fetchmail: mail.exam.com key fingerprint: 94:F3:9F:EC:B7:A1
D:10:92:15:37:F6:CC:73:63:34
fetchmail: Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!)
fetchmail: IMAP> A0003 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA AUTH=PLAIN AUTH=LOGIN
fetchmail: IMAP< A0003 OK Capability completed.
fetchmail: mail.exam.com: upgrade to TLS succeeded.
fetchmail: IMAP> A0004 LOGIN "user3" *
fetchmail: IMAP< A0004 NO [AUTHENTICATIONFAILED] Authentication failed.
fetchmail: Authorization failure on
user3@exam.com
fetchmail: For help, see
http://www.fetchmail.info/fetchmail-FAQ.html#R15
fetchmail: IMAP> A0005 LOGOUT
fetchmail: IMAP< * BYE Logging out
fetchmail: IMAP< A0005 OK Logout completed.
fetchmail: 6.3.22 querying mail.exam.com (protocol IMAP) at Tue 26 Nov 2013 02:41:52 PM WAT: poll completed
fetchmail: 6.3.22 querying mail.exam.com (protocol auto) at Tue 26 Nov 2013 02:41:52 PM WAT: poll completed
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: 6.3.22 querying mail.exam.com (protocol auto) at Tue 26 Nov 2013 02:41:52 PM WAT: poll started
fetchmail: 6.3.22 querying mail.exam.com (protocol IMAP) at Tue 26 Nov 2013 02:41:52 PM WAT: poll started
Trying to connect to 192.185.8.218/143...connected.
fetchmail: IMAP< * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
fetchmail: IMAP> A0001 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA STARTTLS AUTH=PLAIN AUTH=LOGIN
fetchmail: IMAP< A0001 OK Capability completed.
fetchmail: IMAP> A0002 STARTTLS
fetchmail: IMAP< A0002 OK Begin TLS negotiation now.
fetchmail: Server certificate:
fetchmail: Issuer Organization: COMODO CA Limited
fetchmail: Issuer CommonName: PositiveSSL CA 2
fetchmail: Subject CommonName: *.websitewelcome.com
fetchmail: Subject Alternative Name: *.websitewelcome.com
fetchmail: Subject Alternative Name: websitewelcome.com
fetchmail: Server CommonName mismatch: *.websitewelcome.com != mail.exam.com
fetchmail: mail.exam.com key fingerprint: 94:F3:9F:EC:B7:A1
D:10:92:15:37:F6:CC:73:63:34
fetchmail: Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!)
fetchmail: IMAP> A0003 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA AUTH=PLAIN AUTH=LOGIN
fetchmail: IMAP< A0003 OK Capability completed.
fetchmail: mail.exam.com: upgrade to TLS succeeded.
fetchmail: IMAP> A0004 LOGIN "user2" *
fetchmail: IMAP< A0004 NO [AUTHENTICATIONFAILED] Authentication failed.
fetchmail: Authorization failure on
user2@exam.com
fetchmail: For help, see
http://www.fetchmail.info/fetchmail-FAQ.html#R15
fetchmail: IMAP> A0005 LOGOUT
fetchmail: IMAP< * BYE Logging out
fetchmail: IMAP< A0005 OK Logout completed.
fetchmail: 6.3.22 querying mail.exam.com (protocol IMAP) at Tue 26 Nov 2013 02:42:07 PM WAT: poll completed
fetchmail: 6.3.22 querying mail.exam.com (protocol auto) at Tue 26 Nov 2013 02:42:07 PM WAT: poll completed
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: 6.3.22 querying mail.exam.com (protocol auto) at Tue 26 Nov 2013 02:42:07 PM WAT: poll started
fetchmail: 6.3.22 querying mail.exam.com (protocol IMAP) at Tue 26 Nov 2013 02:42:07 PM WAT: poll started
Trying to connect to 192.185.8.218/143...connected.
fetchmail: IMAP< * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
fetchmail: IMAP> A0001 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA STARTTLS AUTH=PLAIN AUTH=LOGIN
fetchmail: IMAP< A0001 OK Capability completed.
fetchmail: IMAP> A0002 STARTTLS
fetchmail: IMAP< A0002 OK Begin TLS negotiation now.
fetchmail: Server certificate:
fetchmail: Issuer Organization: COMODO CA Limited
fetchmail: Issuer CommonName: PositiveSSL CA 2
fetchmail: Subject CommonName: *.websitewelcome.com
fetchmail: Subject Alternative Name: *.websitewelcome.com
fetchmail: Subject Alternative Name: websitewelcome.com
fetchmail: Server CommonName mismatch: *.websitewelcome.com != mail.exam.com
fetchmail: mail.exam.com key fingerprint: 94:F3:9F:EC:B7:A1
D:10:92:15:37:F6:CC:73:63:34
fetchmail: Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!)
fetchmail: IMAP> A0003 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA AUTH=PLAIN AUTH=LOGIN
fetchmail: IMAP< A0003 OK Capability completed.
fetchmail: mail.exam.com: upgrade to TLS succeeded.
fetchmail: IMAP> A0004 LOGIN "user1" *
fetchmail: IMAP< A0004 NO [AUTHENTICATIONFAILED] Authentication failed.
fetchmail: Authorization failure on
user1@exam.com
fetchmail: For help, see
http://www.fetchmail.info/fetchmail-FAQ.html#R15
fetchmail: IMAP> A0005 LOGOUT
fetchmail: IMAP< * BYE Logging out
fetchmail: IMAP< A0005 OK Logout completed.
fetchmail: 6.3.22 querying mail.exam.com (protocol IMAP) at Tue 26 Nov 2013 02:42:18 PM WAT: poll completed
fetchmail: 6.3.22 querying mail.exam.com (protocol auto) at Tue 26 Nov 2013 02:42:18 PM WAT: poll completed
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: normal termination, status 3
Also here is .fetchmailrc file conf
cat .fetchmailrc
set postmaster "user1"
set bouncemail
poll exam.com proto pop3 auth password
user 'user1' there with password '<password>' is user1 here
sslcertck
fetchall
no keep
no rewrite
poll mail.exam.com
user 'user3' there with password '<password>' is user1 here
user 'user2' there with password '<password>' is user1 here
user 'user1' there with password '<password>' is user1 here
kindly assist in troubleshooting.