aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail-FAQ.html
Commit message (Expand)AuthorAgeFilesLines
...
* Added new G11 item.Eric S. Raymond1998-12-291-2/+27
* Harry McGavran's fix.Eric S. Raymond1998-12-171-2/+5
* FAQ cleanup.Eric S. Raymond1998-12-161-16/+21
* Rob Funk's fixes.Eric S. Raymond1998-12-141-22/+22
* Reorder items correctly.Eric S. Raymond1998-12-071-12/+12
* Bug in FAQ item R5 fixed.Eric S. Raymond1998-12-011-24/+9
* Added note about Demon+UIDL problem.Eric S. Raymond1998-12-011-2/+6
* Sub maildrop for mailagent.Eric S. Raymond1998-11-301-3/+3
* Minor fixes.Eric S. Raymond1998-11-291-11/+13
* URL correction.Eric S. Raymond1998-11-231-3/+3
* Added socks library support.Eric S. Raymond1998-11-201-2/+8
* Typo fix.Eric S. Raymond1998-11-031-6/+6
* Added plugin/plugout option.Eric S. Raymond1998-11-021-2/+28
* Nailed.Eric S. Raymond1998-10-291-3/+5
* Expand some jargon.Eric S. Raymond1998-10-281-6/+6
* *** empty log message ***Eric S. Raymond1998-10-281-4/+4
* FAQ cleanups.Eric S. Raymond1998-10-201-11/+9
* More verbosity fixes.Eric S. Raymond1998-10-171-12/+14
* Introduced O_DEBUG.Eric S. Raymond1998-10-171-5/+6
* Add a FAQ item.Eric S. Raymond1998-10-161-2/+41
* Updates.Eric S. Raymond1998-10-121-14/+47
* Added URL.Eric S. Raymond1998-09-181-7/+7
* Grammatical correction.Eric S. Raymond1998-08-251-3/+3
* Compatibility note.Eric S. Raymond1998-08-251-2/+10
* SDPS fixes.Eric S. Raymond1998-08-241-6/+8
* Added Geocities FAQ item.Eric S. Raymond1998-08-171-26/+50
* Added experimental SDPS support.Eric S. Raymond1998-08-031-40/+51
* Updated FAQ.Eric S. Raymond1998-07-311-57/+32
* *** empty log message ***Eric S. Raymond1998-07-251-6/+9
* Improved entry on GSSAPI.Eric S. Raymond1998-07-251-102/+136
* Better IMAP link.Eric S. Raymond1998-07-201-5/+6
* Harsh on MS a bit.Eric S. Raymond1998-07-201-4/+5
* Plug Open Source.Eric S. Raymond1998-07-201-3/+7
* Cosmetic fix.Eric S. Raymond1998-07-201-3/+3
* GSSAPI support is rockin'!Eric S. Raymond1998-07-201-5/+8
* Change skip to poll.Eric S. Raymond1998-07-151-4/+4
* Typo fix.Eric S. Raymond1998-07-151-3/+3
* Cleanup and bug fixes.Eric S. Raymond1998-07-131-3/+18
* popper-2.52Eric S. Raymond1998-07-091-4/+6
* Update.Eric S. Raymond1998-06-301-4/+4
* Anti-NT raving.Eric S. Raymond1998-06-301-10/+72
* Added POP source link.Eric S. Raymond1998-06-301-3/+8
* Warning about USA.NET.Eric S. Raymond1998-06-301-2/+6
* Enable CompuServe users to suppress RPA.Eric S. Raymond1998-06-301-3/+4
* Another update.Eric S. Raymond1998-06-051-6/+9
* Reinstate the fetchall kluge.Eric S. Raymond1998-06-051-7/+7
* Minor markup fix.Eric S. Raymond1998-06-051-3/+3
* Fix a markup error.Eric S. Raymond1998-06-051-5/+5
* usa.net problem.Eric S. Raymond1998-06-031-2/+11
* Added material on how to force Delivered-To header in sendmail.Eric S. Raymond1998-06-031-7/+24
st lock the mailbox, if this doesn't succeed in 64 seconds, give up and send # mail to postmaster. # If this period is to short, increase the retries (-r flag to lockfile) # # Then run the message through formail to get it into the right mailbox format with the # right headers added. # # Delivered-To will make fetchmail propagate this mail to the correct user when # run with '-E "Delivered-To"'. Set this in the advanced settings of the TeamInternet f.i. # (if you changed the envelope at the start of this script, adapt this accordingly) # # We also muck up the messageid, so fetchmail will never skip a message on the basis of # duplicate messageIDs. The -i "Message-ID" will rename the old message ID, the -a will # add a new one. # # Lastly, we add a header indicating which host did the rewriting. # if lockfile -r 8 $mbox.lock >/dev/null 2>&1 then cat - | formail -i "$envelope <$to>" -i "Message-ID:" -a "Message-ID:" -i "X-Multidrop-Processing: <`hostname`>" >>$mbox rm -f $mbox.lock else (echo "Subject: Cannot lock mailbox for $user" & cat -) | /usr/lib/sendmail postmaster fi # # EOF # This obviously is very Linux (even RedHat?) dependant, locking mailboxes, creating mailboxes with the right permissions, probably even bash dependent. I would say that it should be fairly easy to port to other systems, but alas, my unix knowledge is lacking for that. I'll also rewrite it someday, a.o. that umask handling can be done much better and the location of the sendmail binairy should not be fixed. Now the only thing left to do is to retrieve the mail with fetchmail, using 'envelope "Delivered-To:"' in the poll line. The above script has added this line, so this is all that fetchmail needs. All parts of this solution need carefull examination. In particular I think the new rule lines may not catch all cases, although they worked for everything I threw at them and work satisfactorily in production. I'm also wondering if there is a more standard way to drop something in a mailbox. I yet have to investigate procmail, but all other MDA's mucked with the message and effectively undid my carefully added header. I'll experiment some more and rethink it all as I learn more. I'm still wondering, if I can get formail to include another received line.... "Received from localhost by dropmail for <user>...." to make it work without the envelope flag. Well I'll have to experiment. Do you know if there is a header I can add so fetchmail works out-of-the-box? Regards, Martijn Lievaart