Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Internet site krypton.com

Setup Mail Delivery Account

Warning

Is this really necessary?

Code Block
sudo addgroup --gid 3001 mailadmin
sudo useradd -d /home/mailadmin -m -g mailadmin -u 3001 -c "Mail Admin catch-all" -s /bin/false mailadmin

main.cf

Backup /etc/postfix/main.cf in case something goes wrong. All the subsequent commands modify main.cf.

Next we select the format for storing emails which will be Maildir,

...

If we want multiple domains, for example, earth.com, just add it to the list by editing /etc/postfix/main.cf and adding earth.com to the mydestination line.

Warning

Look up how to do via postconf -e here for consistency.

More commands,

Code Block
languagebash
sudo postconf -e "inet_interfaces = loopback-only" # receive no mail from the network, and do not deliver any mail locally

...