Posted by qbnflaco on October 12, 2009 at 2:34pm
I ran the install script for aegir and seems to be working fine, however I can't get any mail sent from the site. I have ubuntu which comes with exim4 installed, but not sure what configuration needs to be made. I won't be using this server for hosting email, just for emails sent out from the sites, as I have a gmail app for my domain name emails.
Thanks in advance!
Sammy

Comments
Just to add. Aegir allows me
Just to add. Aegir allows me to create sites and says it sent the email. However if I login to the server as aegir and run mail I can see there are two emails like this...
N 9 Mailer-Daemon@193 Mon Oct 12 04:25 57/2207 Mail delivery failed: returning message to sender
N 10 Mailer-Daemon@193 Mon Oct 12 04:31 57/2207 Mail delivery failed: returning message to sender
exim4 doesn't send e-mail to
exim4 doesn't send e-mail to outside networks out of the box, which in my opinion makes it almost completely useless altogether.
Consider apt-get install postfix and choose 'Internet site' in the menu that appears during installation.
I've actually just yesterday updated the install.sh script to install postfix by default instead of exim4. It might be a little less lightweight but at least it, well, does something :)
I've no actual advice for you on how to configure exim4 to get it to actually do the job it's meant to, as it's always the first thing I uninstall in favour of postfix :)
Postfix worked!
I had previously tried with postfix and was having issues. Then I tried messing with exim4 and got it working, however after following a tutorial on how to send using gmail, all email ONLY came from that account. I don't want my client site's automated email coming from my address. So I tried postfix again, and it seemed to work fine. Guessing this wasn't particular to slicehost, but here's the link incase someone else has the issue...
http://sudhanshuraheja.com/2009/02/slicehost-setup-outgoing-mail-google-...
I have it working with exim4
I have it working with exim4 on Ubuntu, I used a smarthost setup since I only wanted to facilitate mail coming from the sites & other scripts on the server, my server is hosted and I used their mail servers smtp as a smarthost, and I use gmail for domain mail handling on most of the domains i host, if you want to stay with exim4 then just google it and you'll find plenty of helpful tutes. Tho admittedly it doesnt work out of the box.
I've had the exact opposing experience as mig5, never been able to get postfix going! lol ...but I dont see any reason why either of them wont do the job, just a matter of proper configuration.
Exim4 config
Under Debian/Ubuntu, Exim4 ships with a few different configuration templates, and you can switch between them by running:
Details are available in, e.g., the Ubuntu manual. Your principal concern should be how email goes out, and the two most useful options for you are probably:
The system will allow for both outgoing and incoming email, but I wouldn't get hung-up on that. You need to allow for some incoming email (e.g. root@localhost) for automated system notices. The best you can do is to relay email to your preferred mail service. IIRC, dpkg-reconfigure takes care of this. If not, just edit /etc/aliases.
Exim4 config
Thanks totten. I'm a long term Postfix user and had it working but wanted to take a look at exim4 since it's the default for debian/ubuntu, also it seems to have built in support for spf/dkim etc.
I can confirm you suggestion works. I chose 'internet site' to send mails out directly and restricted the network interfaces exim listens on to 127.0.0.1 (which is the default, so nothing to change), so that it will only send out mail and not recieve (except locally).