Score:0

is there a postfix relocation service?

se flag

since i am running out of disk space on my debian server, i bought a usb raid and mounted it in the system under "/raid". I now want to move the whole postfix email directory "/var/vmail" to "/raid/var/vmail". I could now change in the following files

/etc/postfix/main.cf
/etc/dovecot/conf.d/10-mail.conf
/etc/dovecot/dovecot-mysql.conf

the directory, but I remember from before that there was a postfix service for that.
There was something, wasn't there?

in flag
Instead of messing with configuration files you could move the files and then [bind mount](https://unix.stackexchange.com/questions/198590/what-is-a-bind-mount) the new directory under the old directory, i.e. `mount -o bind /raid/var/vmail /var/vmail`.
in flag
Is [**postconf**](https://www.postfix.org/postconf.1.html) (Postfix configuration utility) what are you referring to?
Max Muster avatar
se flag
@CristianCiupitu yes :) that's also posible , thanks for the answer
Max Muster avatar
se flag
is there a system variable like `$virtual_mailbox_base` that can be queried from the bash shell ?
in flag
I have no idea, but you could run `postconf | grep /var/mail`. On my machine it returns `mail_spool_directory = /var/mail`, so you would need to change the `mail_spool_directory` parameter.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.