# configure dispatch cat <<EOF> /etc/hylafax/FaxDispatch SENDTO=YOU@YOUR_DOMAIN FILETYPE=pdf TEMPLATE=de EOF # configure postfix postconf -e 'smtp_sasl_security_options = noanonymous' postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_password' postconf -e 'smtp_sasl_auth_enable = yes' postconf -e 'relayhost = smtp' echo "smtp faxmaster:faxmaster" > /etc/postfix/sasl_password postmap /etc/postfix/sasl_password /etc/init.d/postfix restart # get sender name from url (optional) cat <<EOF> /etc/hylafax/FaxDispatch SENDTO=YOU@YOUR.DOMAIN FILETYPE=pdf TEMPLATE=de
# set domU parameter [ -z $DOMAIN_NAME ] && DOMAIN_NAME=mx [ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:11:22:7E:7E:7E [ -z $DOMAIN_RAM ] && DOMAIN_RAM=512Mb [ -z $DOMAIN_HDD ] && DOMAIN_HDD=2Gb # create domU http://www.panticz.de/Xen-domU-ubuntu-jaunty # add to autostart (optional) ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto # create lvm for home lvcreate --name ${DOMAIN_NAME}-home --size 50G vg01 mkfs.ext3 /dev/vg01/${DOMAIN_NAME}-home # configure domU vi /etc/xen/${DOMAIN_NAME} (add) 'phy:/dev/vg01/mx-home,sda3,w' # post config domU mount /dev/vg01/${DOMAIN_NAME}-disk /
#!/bin/bash # ToDo # configure antivirus # configure antispam # configure secure connections # # configure timezone and locale # dpkg-reconfigure tzdata locale-gen de_DE # # POSTFIX # # pre-configure debconf-set-selections <<\EOF postfix postfix/mailname string mx postfix postfix/main_mailer_type select Internet Site EOF # install apt-get install -y postfix # post-configure cp /etc/postfix/main.cf /etc/postfix/main.cf.$(date -I) postconf -e 'myhostname = YOUR_DOMAIN.com' postconf -e 'relayhost = smtp.YOUR_PROVIDER.com' postconf -e 'smtp_sasl_security_option