15 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Fetching emails.
FromSent OnAttachments
Geraint LeeDec 18, 2001 5:56 am 
Bill MichellDec 18, 2001 6:15 am 
Stefan KrugerDec 18, 2001 6:31 am 
Bill MichellDec 18, 2001 7:12 am 
FredyDec 18, 2001 7:16 am 
Stefan KrugerDec 18, 2001 7:45 am 
Bill MichellDec 18, 2001 8:06 am 
Roland SchneiderDec 18, 2001 8:19 am 
drea...@dreamwvr.comDec 18, 2001 8:30 am 
FredyDec 18, 2001 9:00 am 
Bill MichellDec 18, 2001 9:15 am 
Sam VarshavchikDec 18, 2001 2:40 pm 
Sam VarshavchikDec 18, 2001 2:40 pm 
Mark BrownDec 19, 2001 5:13 am 
Stefan KrugerDec 19, 2001 5:32 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Fetching emails.Actions...
From:Roland Schneider (list@serv.ch)
Date:Dec 18, 2001 8:19:42 am
List:net.sourceforge.lists.courier-users

--Fredy wrote on 18.12.2001 17:13 +0200:

Hey. I've successfully configured courier as a mail server for me, which was fairly easy to do. Now I need something extra from it... I have an email mailbox at my ISP's, I want courier to fetch those emails and put'em in a users mailbox on the local mail server. Does anyone have an idea how I can do that ?

Why not use fetchmail with CRAM-MD5, and pipe the mails directly into maildrop to prevent loops and bounces. The filters can be edited with SQWebmail as usual. (dont run fetchmail as root like in this example from a non-reachable jailed sandbox behind NAT...)

### file /root/.fetchmailrc ### http://www.tuxedo.org/~esr/fetchmail ### check with 'fetchmail --configdump' ### fetchmail -v -f /root/.fetchmailrc ### use 'fetchmail -v -v -keep' for debugging, then add to crontab: ### 2-58/25 * * * * root /usr/local/bin/fetchmail

### global options # set logfile /relay/home/var/log/fetchmail set syslog # set idfile /root/.fetchids set postmaster post@hostname.dom set no bouncemail set no spambounce set no showdots # set invisible

defaults ### server options (qmail-style headers) via pop.provider.dom protocol POP3 auth cram-md5 timeout 15 no dns no checkalias no uidl envelope Delivered-To qvirtual mydomain.dom.ch- localdomains mydomain.dom # tracepolls ### user options (courierpop3d) fetchlimit 32 batchlimit 16 limit 6000000 warnings 3600 antispam -1 no rewrite no idle pass8bits fetchall # mda "/relay/bin/sendmail -N delay,fail -R full -f %F %T" # postconnect "exec /bin/sleep 5" smtphost 127.0.0.1 smtpaddress hostname.dom is * here # keep

poll username interval 4 user "user@mydomain.dom" pass "whatever" mda "/relay/bin/env USER=relay HOME=/relay/home/username DEFAULT=./ SENDER=%F RECIPIENT=%T /relay/bin/maildrop -V 1 -f '%F' /relay/home/username/.mailfilter"

[...add other account...]