From: Matthias A. <mat...@gm...> - 2007-03-16 00:52:58
|
Sylvain Le Torrec schrieb: > First, thank you for your quick answer Please trim your quotes. Only quote necessary material and delete the rest. (Outlook makes people misbehave, that's just incredible.) > I'm using fetchmail 6.2.4 (I know I have to upgrade it) with qmail Newer versions have better documentation, too... > ----------------------------------------- > See my fetchmailrc > ----------------------------------------- > defaults > set no bouncemail > poll domain.mydomain.org protocol POP3 > localdomains mylocaldomain > tracepolls > envelope "Delivered-To:" > qvirtual "Delivered-To:" This is bogus, you need to specify the prefix that the UPSTREAM qmail adds to Delivered-To headers (what they have in their virtualdomains table on their right hand side), if for instance all headers looked like: Delivered-To: let...@ba...z You could use qvirtual "letorrec-". > username myusername > password mypasswd > is * > fetchall > mda "sed 1,2d | /var/qmail/bin/qmail-inject" Make that mda "sed 1,2d | /usr/sbin/sendmail -i -f %F -- %T" That should work with qmail (you MAY have to use /usr/lib/sendmail instead) and prevent forwarding loops (by making recipients explicit - the %T is it). Also, will people *please* stop using this ghastly qmail-inject? It offers no advantage, only the disadvantage of a nonstandard command line interface. (qmail's sendmail compatibility wrapper even understands qmail-inject's environment variables.) HTH, MA |