Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-07-2009, 11:17 AM   #1
LQ Newbie
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
Question Outgoing Smtp authentication for Postfix on ubuntu 9.04

I am running postfix and dovecot on Ubuntu 9.04 and I have pop set-up and working but what I want is to enable authentication on the smtp server because at the moment anyone can connect and send e-mails from it I want to use the same user-names and passwords as are used for the pop3 access and once the smtp is secure I will want to forward any emails not for my local net work 192.168.0.x through my ISP smtp server which needs none encrypted (I have no control over that) user-name and password.

this server is just on my home network not any company so encryption is not absolute necessary.
Also I don't have a fixed IP address instead I use a dynamic DNS provider to give my a hostname of something like : (not my real address but exactly the same format).

so first question How to add out going authentication to my smtp server i.e. you click send after writing an email and the server asks for you to authenticate your self with you usual user-name and password

second how do I relay outgoing emails through my ISP's server if the address is for example with out tls or ssl encription just a username and password

by the way I am fairly new to linux and the command line so please go easy

Below here is my postfix contents

# See /usr/share/postfix/ for a commented, more complete

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
#smtpd_tls_cert_file = /etc/ssl/certs/server.crt
#smtpd_tls_key_file = /etc/ssl/private/server.key

smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package
# information on enabling SSL in the smtp client.

myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =, ubuntu-server,
localhost.localdomain, localhost
mailbox_size_limit = 0
recipient_delimiter = +
inet_protocols = all
home_mailbox = Maildir/
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = reject_unknown_sender_domain,
reject_unknown_recipient_domain, reject_unauth_pipelining,
permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sender_restrictions = reject_unknown_sender_domain
mailbox_command = /usr/lib/dovecot/deliver
-c /etc/dovecot/dovecot-postfix.conf -n -m "${EXTENSION}"
smtp_use_tls = yes
smtpd_tls_received_header = yes
smtpd_tls_mandatory_protocols = SSLv3, TLSv1

smtpd_tls_mandatory_ciphers = medium, high
smtpd_tls_auth_only = yes
tls_random_source = dev:/dev/urandom

Last edited by radcom123; 11-07-2009 at 11:49 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Postfix for outgoing email degaray Linux - Software 19 05-05-2010 09:58 PM
Problem configuring Postfix on Ubuntu 9.04 jmhal Linux - Server 2 06-20-2009 01:29 PM
Configuring Postfix for outgoing email jay0316 Linux - Software 1 10-20-2008 01:01 PM
Configuring Postfix in Ubuntu maskiepop Linux - Newbie 6 08-09-2008 07:38 PM
How do I configure Postfix to save my outgoing SMTP mail in my IMAP "Sent Items"? wired Linux - Newbie 1 02-01-2006 12:12 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration