mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-23 03:26:02 +03:00
13 lines
421 B
Bash
13 lines
421 B
Bash
#!/bin/sh
|
|
|
|
if which postfix > /dev/null; then
|
|
echo 'Postfix is already installed'
|
|
else
|
|
echo 'Installing Postfix'
|
|
sudo debconf-set-selections <<< "postfix postfix/mailname string tedivm.com"
|
|
sudo debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Local only'"
|
|
sudo apt-get -qq update
|
|
sudo apt-get -qq -y install postfix mailutils
|
|
sudo postconf -e 'home_mailbox = Maildir/'
|
|
fi
|