Skip to content

Instantly share code, notes, and snippets.

@netscylla
Last active March 25, 2017 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netscylla/0ccd2db4e341138fed36ee31ae7a5dbd to your computer and use it in GitHub Desktop.
Save netscylla/0ccd2db4e341138fed36ee31ae7a5dbd to your computer and use it in GitHub Desktop.
install-postfix.sh
#!/bin/sh
echo "postfix postfix/mailname string smtp.example.com" | debconf-set-selections
echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -f -q -y install postfix postfix-mysql dovecot-core dovecot-imapd dovecot-lmtpd dovecot-mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment