[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exim delivery to a maildir (or just use procmail?) questions



Michael Heldebrant <hmike@portalofevil.com> writes:

> On Sat, 2001-09-15 at 08:48, Ramin Motakef wrote:
> > Michael Heldebrant <hmike@portalofevil.com> writes:
> > 
> > > Ok, I've got courier-imapd installed and configured.
> > > 
> > > How do I get exim to deliver all localy generated mail to stay in the
> > > standard mail spool for the system but all other mail which is coming in
> > > through fetchmail to go into a maildir so I can imap serve this to other
> > > hosts I'm at during the day?
> > 
> > You could append a different domain to Mail delivert by fetchmail eg. 
> > poll ... is someone@from.somwhere.else.com here 
> > and add from.somewhere.else.com to exims local_domains.
> 
> Ok, so what I'm doing is telling fetchmail to say that instead of
> username@localhost it will be username@xxx and then configure exim to
> take mail for username@xxx and then deliver that specially right?  I
> just want to make sure I understand what I'll be configuring and why.

Yes.
 
> > 
> > To use maildir delivery use something like
> > 
> > maildir_delivery
> >   driver = appendfile
> >   create_directory = true
> >   directory_mode = 700
> >   directory = /var/spool/maildirs/${local_part}/
> >   headers_remove = "Bcc"
> >   user = <someuser>
> >   group = <somegroup>      
> >   maildir_format
> >   mode = 660
> Now what exactly is going on here?  this as far as I can tell delivers
> normal mail to users except those that we specify in the user and group
> section?  Then those go maildir?  I'm a bit confused here.
> 

The user and group entries are necessary only if the $local_part is
not a real system user. As you found out yourself later, the
transports don't make any decisions, they are called by directors and
then deliver the mail the configured way. You will need to keep the
transport for your system mail also.

> > 
> > in the transports section and
> > 
> > maildir_user
> >    transport = maildir_delivery
> >    domains = from.somewhere.else.com
> > 
> > in the directors section.
> So this is going to be hit first by exim which then calls the maildir
> _delivery to anything coming from fetchmail.  I think I understand this
> part at least ;>
> 
> Thanks for the help.  Hopefully I can leap from this to a better
> understanding of the exim-fetchmail-imap systems.
> 
> --mike
>  

Ramin



Reply to: