public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jules Colding <colding@42tools.com>
To: Gentoo Users <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] postfix with TLS
Date: Mon, 07 Jan 2008 13:35:29 +0100	[thread overview]
Message-ID: <1199709329.5715.158.camel@omc-2.42tools.com> (raw)

Hi

I'm trying to configure my postfix server to use TLS, which should be
quite straightforward according to the different guides I have found
using Google.

When I telnet into my postfix installation I get this:

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.example.com ESMTP Postfix
EHLO mail.example.com
250-mail.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

According to the guides this should be the desired output and TLS should
work, but all my mail clients (Thunderbird, mail(mac)) chokes when I try
to send a mail.

This is my main.cf file for postfix:

#################### main.cf ######################
soft_bounce = yes
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = mail.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
home_mailbox = .maildir/
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = /usr/share/doc/postfix-2.3.6/html
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.3.6/readme

# 
TLS                                                                                                                                                                                                                                       

smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_use_tls = yes
#smtpd_tls_auth_only = 
yes                                                                                                                                                                                                                  

smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

# 
SASL                                                                                                                                                                                                                       

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
#smtpd_sasl_local_domain = 
$myhostname                                                                                                                                                                                                      

smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
relay_domains = $mydestination
smtpd_recipient_restrictions =
   permit_sasl_authenticated,
   permit_mynetworks,
   check_relay_domains,
   reject_unauth_destination

# 
Mailman                                                                                                                                                                                                            

owner_request_special = no
recipient_delimiter = +
alias_maps = hash:/usr/local/mailman/data/aliases, hash:/etc/mail/aliases

############### END ##################


Any help or comments would be truly appreciated.

Best regards,
  jules



-- 
gentoo-user@lists.gentoo.org mailing list



             reply	other threads:[~2008-01-07 12:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-07 12:35 Jules Colding [this message]
2008-01-07 14:11 ` [gentoo-user] postfix with TLS Arnau Bria
2008-01-07 19:24 ` kashani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1199709329.5715.158.camel@omc-2.42tools.com \
    --to=colding@42tools.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox