PDA

View Full Version : [ubuntu] sendmail on Ubuntu


jkounis
January 5th, 2009, 05:49 AM
I have a LAMP server on our small office network with 5 or 6 clients. On the local web server, we have Mediawiki, Joomla, Drupal, and some other PHP applications.

These web applications usually expect the ability to send emails to users (I suppose through sendmail). However, I have not gone through the effort of setting up a mail server. Since the server is behind a firewall, it would involve some complicated setup, opening ports, and security measures to prevent the machine from being an open SMTP relay. (We get our email through the same server that hosts our website.)

Is there a simpler solution? Can I simply set up sendmail to forward through my ISP's SMTP server (mail.myisp.com)? Or must I have a local mail server set up for sendmail to work?

volkswagner
January 5th, 2009, 10:45 AM
I have heard that sendmail is more difficult to get running than postfix (https://help.ubuntu.com/community/Postfix?highlight=%28postfix%29).

You can configure postfix to use your ISP's smtp server. This is accomplished in /etc/postfix/main.cf with the relayhost = smtp.4your.isp.com

Check out this (http://ubuntuforums.org/showthread.php?t=990582) thread.

Good luck

HermanAB
January 5th, 2009, 12:23 PM
Here you go:
http://www.citadel.org/doku.php?id=installation:start
http://aeronetworks.ca/citadel-howto.html

Cheers,

Herman

jkounis
January 9th, 2009, 02:29 AM
Thanks to both of you! I got it working, but configuring postfix is more complicated than I thought. The links you provided certainly helped, though.

bovcan
January 25th, 2011, 04:36 PM
I am using always sendmail, for reciving and sending mails. For now it works just fine.