procmail
[Top] [All Lists]

Re: procmail and pop3 , imap

2000-07-06 12:20:09
Hazy Xu <hxu(_at_)mail(_dot_)ustc(_dot_)edu(_dot_)cn> writes:
Procmail can deliver mail to $HOME/Mailbox. I just add

DEFAULT=$HOME/Mailbox 

to file /etc/procmailrc and it does work. Now I want to set up
my pop3 server and imapd server. UW imapd can only work with
default mailbox '/var/spool/mail/*'. How can I find an imapd to
work with $HOME/Mailbox? The same problem occurred with pop3d.

UW imapd will do this just fine.  To quote the docs/CONFIG file that
comes with UW imapd:

------------
     If your system is non-standard, virtually everything that you are
likely to want to modify can be found in the source file
        .../src/osdep/unix/env_unix.c
In particular, special attention should be given to the routines:
 env_init()             initialize c-client environment variables,
                        especially the user name and home directory
 sysinbox()             return the UNIX path of the INBOX in which
                        mail delivery will place mail
 mailboxdir()           translate a mailbox name into the associated
                        UNIX directory for listing
 mailboxfile()          translate a mailbox name into the associated
                        UNIX file for opening

     You should modify these routines as necessary for local policy.
The most common modifications are to env_init(), to modify the
software's idea of the home directory (which is used everywhere as the
default directory), and to sysinbox(), to modify where the software
looks for newly-delivered mail.

     Example 1: suppose your mailer delivers mail to file ".mailbox"
in the user's home directory instead of the default UNIX mail spool
directory.  You will want to change routine sysinbox(), changing the
line that reads:
    sprintf (tmp,"%s/%s",MAILSPOOL,myusername ());
to be:
    sprintf (tmp,"%s/.mailbox",myhomedir ());
------------


Why pop3d and imapd not design to have a configure file ?

Because Mark Crispin thinks it's a bad idea for UW imapd.  This point
has been asked and argued many times on comp.mail.imap, and he's not
changing his mind.  Edit the source and save a copy of changes for when
you next upgrade.


Philip Guenther

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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