Hot answers tagged

2

To change the location of Mailbox, include the below line in the file '/etc/postfix/main.cf' 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/main.cf' virtual_alias_maps = hash:/etc/postfix/userlist Once you added these files in Postfix, ...


2

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. ...


1

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