Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jul 08, 2011 7:56 am 
Offline
Senior Newbie

Joined: Mon May 16, 2011 5:59 am
Posts: 9
Hi,

I am attempting to write a script which will allow for my vps to send mail (receiving mail is not required).

So far I have the following:

Code:
# Install postfix
echo "postfix postfix/main_mailer_type select Internet Site" | debconf-set-selections
echo "postfix postfix/mailname string $setting_hostname" | debconf-set-selections
echo "postfix postfix/destinations string localhost.localdomain, localhost" | debconf-set-selections
aptitude -y install postfix

/usr/sbin/postconf -e "inet_interfaces = loopback-only"
/usr/sbin/postconf -e "local_transport = error:local delivery is disabled"

# Ensure postfix will start at boot
/usr/sbin/update-rc.d postfix defaults

# Install mailutils to be able to send using the mail command
aptitude -y install mailutils

# Restart to apply changes
/etc/init.d/postfix start


This works and allows me to send mail using the mail command. However, I wanted to be sure that I hadn't missed anything out.

Any pointers would be appreciated


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group