procmail
[Top] [All Lists]

Re: Mr Fetchmail is not playing nice with Mr Procmail!

2000-04-13 17:56:29
"Ian Chilton" <ian(_at_)ichilton(_dot_)co(_dot_)uk> writes:
I am having problems with Fetchmail now...it is not using Procmail for mail,
just delivering it all to root...

I had FEATURE(local_procmail)dnl in my Sendmail .mc file, and I have checked
the Mlocal bit in sendmail.cf and it is set for /usr/bin/procmail (which
exists..)
...
fetchmail: POP3> LAST
fetchmail: POP3< -ERR Invalid command, try one of: STAT, LIST [msg], RETR
msg, TOP msg n, DELE msg, UIDL [msg], NOOP, RSET, QUIT
...
fetchmail: SMTP> MAIL FROM:<ian(_at_)ichilton(_dot_)co(_dot_)uk> SIZE=11982
fetchmail: SMTP< 250 2.1.0 <ian(_at_)ichilton(_dot_)co(_dot_)uk>... Sender ok
fetchmail: SMTP> RCPT TO:<root(_at_)localhost>
fetchmail: SMTP< 250 2.1.5 <root(_at_)localhost>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
**************************.*************.*************.*************.*******
******.*************.*************.**************.*************.************
*.**********fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 e3DIWs900407 Message accepted for delivery
flushed
...
2 Issues:
* There are some -ERR invalid commands here...anyone know why?
* Can anyone see why Procmail is not been used from this??


The ERR response is generated because fetchmail is trying to use the
optional POP3 "LAST" command.  The pop server that you are connecting to
doesn't support it, which is perfectly legal.  If it was supported then
fetchmail could be more efficient, but it isn't so fetchmail has to use
the UIDL method instead.  Try searching for "LAST" in the fetchmail(1)
manpage.

As for the real problem, we can see from the above that fetchmail
has successfully handed off the message to sendmail, so if sendmail
isn't invoking procmail then it's a sendmail problem, not a fetchmail
problem.  What does the sendmail log (probably /var/log/maillog) show
for the message with queue id e3DIWs900407?  What happens when you run
"sendmail -bt" and enter the following line?
        3,0 root(_at_)localhost


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>