Hot answers tagged


To change the location of Mailbox, include the below line in the file '/etc/postfix/' virtual_mailbox_base = /Location/Mail/ If you don't want to create home directory(i.e non Unix Account user) then include the below line in the file '/etc/postfix/' virtual_alias_maps = hash:/etc/postfix/userlist Once you added these files in Postfix, ...


The easiest way is to set the mail_spool_directory to the new directory: sudo postconf mail_spool_directory=/Location/Mail/ For this to work, home_mailbox must be empty: sudo postconf home_mailbox= However, your server might be set up to use a different command to write deliver mails to a user. The mailbox_command parameter might have been set (e.g. ...


Assuming usernames are one per line or separated by one or more spaces, in the listfile, you can use this : for user in $(cat listfile) do useradd -m -d /home/top100/${user} ${user} done

Only top voted, non community-wiki answers of a minimum length are eligible