[Pkg-exim4-users] Change where Exim4 stores mail

Andreas Metzler ametzler at downhill.at.eu.org
Sat Oct 19 16:49:31 UTC 2013

Gavin Donald <doahh1 at googlemail.com> wrote:
> I would like to change the location of where Exim4 stores its mail. I can
> see in 30_exim4-config_maildir_home that there it should be possible to
> define MAILDIR_HOME_MAILDIR_LOCATION but I can't find anywhere to do that.
> For me changing the value of 'directory' in that file doesn't work either.
> No matter what I do the mail is always delivered to ~/Maildir. Can someone
> give me some help with this please? I have been running 'dpkg-reconfigure
> exim4-config' after making my changes. What should the value of
> MAILDIR_HOME_MAILDIR_LOCATION be? I would expect it to be:

> MAILDIR_HOME_MAILDIR_LOCATION = /storage/mail/$local_part/maildir

> Or maybe:

> MAILDIR_HOME_MAILDIR_LOCATION = /storage/mail/%u/maildir

Hello Gavin,

are you using split configuration at all? "/etc/init.d/exim4 reload" after
changing exim's configuration should be enough.

I would also suggest changing the MAILDIR_HOME_MAILDIR_LOCATION
macro-definition (i.e. adding one) instead of modifying the transport,
in /etc/exim4/exim4.conf.localmacros (unsplit) or
/etc/exim4/conf.d/main/000_localmacros (split).

See  /usr/share/doc/exim4-config/README.Debian.gz.

cu Andreas

`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

More information about the Pkg-exim4-users mailing list