Debian 6 postconf -d output:
...
mail_spool_directory = /var/mail
...
however, mail is sent to /home/vmail/user/Maildir instead. probably cause
vmailbox_server_host = ldap.domain.com
vmailbox_server_port = 389
vmailbox_bind = yes
vmailbox_bind_dn = cn=admin,dc=domain,dc=root
vmailbox_bind_pw = ******
vmailbox_search_base = dc=root
vmailbox_query_filter = (uid=%u)
vmailbox_result_attribute = uid
vmailbox_result_format = %s/Maildir/

On the other hand, Ubuntu postconf -d output is
mail_spool_directory = /var/mail
but *mails aren't delivered to /home/vmail/user/Maildir but /var/mail*




On Wed, Apr 6, 2022 at 12:39 PM Wietse Venema <wie...@porcupine.org> wrote:

> Tan Mientras:
> > Hi
> >
> > We are migrating an old Debian 6 Postfix smarthost/relay server to a new
> > one, just copying the configuration files and some other files to a fresh
> > Ubuntu 20.04 system.
> >
> > For some reason, in the new environment, *mail is being delivered to
> > /var/mail/user instead of Maildir (/home/vmail/user/Maildir).*(While
> debian
> > 6 is working correctly)
> > Any suggestion or fix for the config file would be much appreciated.
>
> https://www.postfix.org/postconf.5.html#mail_spool_directory
>
> mail_spool_directory (default: see "postconf -d" output)
>     The directory where local(8) UNIX-style mailboxes are kept. The
>     default setting depends on the system type. Specify a name
>     ending in / for maildir-style delivery.
>
>     Note: maildir delivery is done with the privileges of the
>     recipient. If you use the mail_spool_directory setting for
>     maildir style delivery, then you must create the top-level
>     maildir directory in advance. Postfix will not create it.
>
>
>

Reply via email to