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