--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 [EMAIL PROTECTED]
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 "[EMAIL PROTECTED]" 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...]


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to