[CentOS] setting up postfix

Tue Oct 16 18:03:37 UTC 2012
Benjamin Hackl <b.hackl at focusmr.com>

On Tue, 16 Oct 2012 11:19:09 -0600
Larry Martell <larry.martell at gmail.com> wrote:

> I really don't know the answer to that question. The scenario is that
> they run a django based web app, and they wanted me to add a password
> recovery feature to it. When I did that, and it tried to send the
> recovery link to the user, it failed with 'SMTPServerDisconnected.' I
> thought, of course, there is no SMTP server running, so I set upon
> getting postfix running. As I said in my initial post, I've never done
> that before. I'm a developer, not an admin ;-)

Ok. You might try to use a smarthost, that's the outgoing smtp
server of your company.

/etc/postfix/main.cf should look like this
local_transport=error: disabled

And then
service postfix reload

If you need authentification (e.g. username + password) append the
following additional lines into main.cf

# see 

Write the following line in /etc/postfix/relay_password
smtp.of.yourdomain.com  username:password

Create the database with

postmap /etc/postfix/relay_password

the debug options might help you if there is some trouble sending mail
(log file). Always check the postfix queue with

postqueue -p

and your mailserver log


Note: For authentication you probably need the cyrus-sasl and
cyrus-sasl-* packages.

HTH, Brgds

Freundliche Gruesse/Best Regards
Benjamin Hackl

Media FOCUS Research Ges.m.b.H.
Maculangasse 8, 1220 Wien Austria
Tel: +43 1 258 97 01-295
b.hackl at focusmr.com