LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-29-2008, 03:04 AM   #1
mellimik
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Fetchmail configuration script


Hi there,

I've been poking my fetchmail script so long now that I think it's about time to get some external consulting.. The thing is that I'm unable to use two or more E-mail accounts with MDA.

My current config is as follows:

Code:
set postmaster "root"
set no bouncemail
set properties ""
set no syslog
set daemon 60
set logfile /var/log/fetchmail.log

# RETRIEVE MAILSCANNER MESSAGES AND FILTER CONTENT THROUGH PERL
poll 192.168.4.101 with proto POP3 auth password
protocol pop3
auth password
username "mailscanner.fetch@<DOMAIN>" password "<PASSWORD>"
no keep

# RETRIEVE EXCHANGE MESSAGES AND FILTER CONTENT THROUGH PERL
poll 192.168.4.101 with proto POP3 auth password
protocol pop3
auth password
username "exchange.fetch@<DOMAIN>" password "<PASSWORD>"
no keep

# PASS THE MESSAGE TO GENERIC PARSER SCRIPT THAT KNOWS WHAT TO DO WITH THE MAIL
mda "cat >/var/www/html/log/fetchmail.output"
As you can see, I have two accounts in POP3 mode and the MDA is supposed to redirect what ever is received from those two accounts in to a log file /var/www/html/log/fetchmail.output. But what actually happens is that only exchange.fetch@<DOMAIN> is redirected to the log file and mailscanner.fetch@<DOMAIN> is silently dropped. I've tried to use two MDA fields but that doesn't work either.

Does anyone use fetchmail this way that I'm trying here? Any help would be greatly appreciated. I have modified the output file with CHMOD 777 to ensure it is not about security permissions. Actually in the end my goal is to pipe everything to a Perl script (mda | <PERL_SCRIPT>), but at this point the redirect to a file is just for debugging reasons.

The fetchmail log file looks as follows btw. when both of the accounts contain one unread message:

Code:
fetchmail: 1 message for mailscanner.fetch@starcut.com at 192.168.4.101 (645 octets).
fetchmail: reading message mailscanner.fetch@starcut.com@192.168.4.101:1 of 1 (645 octets) flushed
fetchmail: Server certificate verification error: unable to get local issuer certificate
fetchmail: Server certificate verification error: certificate not trusted
fetchmail: Server CommonName mismatch: esexchange01.schki.starcut.com != 192.168.4.101
fetchmail: 1 message for exchange.fetch@starcut.com at 192.168.4.101 (22545 octets).
fetchmail: reading message exchange.fetch@starcut.com@192.168.4.101:1 of 1 (22545 octets) flushed
fetchmail: sleeping at Mon 29 Dec 2008 11:01:25 AM EET for 60 seconds
 
Old 12-29-2008, 03:33 AM   #2
mellimik
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Original Poster
Rep: Reputation: 0
I just learned that the original problem was not in fetchmail, but somewhere else So I ended up replying to myself.. sorry about this.
 
Old 12-29-2008, 06:23 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
No need to say sorry, but we'd appreciate if you could tell us what the "something else" was what caused the error. It might help other people facing a similar problem.

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fetchmail Configuration shibu_sp Linux - Newbie 1 07-08-2008 06:47 AM
Fetchmail / Dovecot configuration Lord Wodan Linux - Server 6 09-10-2007 09:50 PM
fetchmail configuration ?? dansawyer Linux - Software 2 01-24-2007 03:08 PM
Fetchmail Configuration reply2vinay Linux - General 2 10-21-2005 07:49 AM
Fetchmail configuration Van Gogh Linux - Software 2 08-04-2004 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration