public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] SSL CUPS and SMTP on port 587
Date: Mon, 18 Feb 2008 11:46:26 -0800	[thread overview]
Message-ID: <49bf44f10802181146m53cbc1fao576a909ddc2b9d78@mail.gmail.com> (raw)
In-Reply-To: <49bf44f10802171437v5ea293d9q7f40956adac971a9@mail.gmail.com>

> > > I uncommented the above line and added the following to main.cf:
> > >
> > > smtpd_tls_security_level = may
> > >
> > > as instructed here:
> > >
> > > http://www.postfix.org/TLS_README.html#server_enable
> > >
> > > and restarted postfix, but I still can't send.  In claws-mail, I tried
> > > specifying 587 and I'm specifying Use SSL for SSMTP.  I'm guessing TLS
> > > isn't set up properly?
> >
> > You need more than that. My /etc/postfix/main.cf looks like this and
> > you'll need to create the actual certs listed below as well. I recommend
> > smtpd_tls_auth_only so that anyone trying to smtp auth is required to do
> > it over an encrypted session.
> >
> > # TLS stuff
> > smtpd_tls_security_level = may
> > smtpd_tls_auth_only = yes
> > smtpd_tls_key_file = /etc/postfix/newkey.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
> >
> > Additionally check to see what port Postfix is listening on. It's on
> > port 465 on my server and you'll need to set your mail client to SSL
> > rather than TLS.
>
> Thank you kashani.  Now I'm getting "Relay access denied".  I've been
> sending via squirrelmail running on the same server so I need to make
> an adjustment.  What I'd like to do is allow relaying for any
> authenticated smtp client but I don't see any option for that in the
> main.cf comments.  I tried adding "grant" to the postdrop group with
> no luck.

Is allowing relay access based on authentication not something postfix
does?  It makes sense to me.  How do you guys make the relay decision?

- Grant


> Here's my main.cf (I'm using postgrey):
>
> mydestination = mydomain.com
> setgid_group = postdrop
> smtpd_recipient_restrictions =
>         permit_mynetworks,
>         check_policy_service inet:127.0.0.1:10030
>         reject_unauth_destination,
>         permit
> virtual_alias_maps = hash:/etc/postfix/virtual
> message_size_limit = 20480000
> smtpd_tls_security_level = may
> smtpd_tls_auth_only = yes
> smtpd_tls_key_file = /etc/ssl/postfix/server.key
> smtpd_tls_cert_file = /etc/ssl/postfix/server.crt
> smtpd_tls_CAfile = /etc/ssl/postfix/server.pem
> smtpd_tls_session_cache_timeout = 3600s
> tls_random_source = dev:/dev/urandom
>
> How does that look?
>
> - Grant
-- 
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-02-18 19:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-17 15:18 [gentoo-user] SSL CUPS and SMTP on port 587 Grant
2008-02-17 17:22 ` Willie Wong
2008-02-17 17:28   ` Grant
2008-02-17 19:51     ` kashani
2008-02-17 20:24       ` Grant
2008-02-17 20:48         ` Grant
2008-02-17 21:35         ` kashani
2008-02-17 22:37           ` Grant
2008-02-18 19:46             ` Grant [this message]
2008-02-18 20:18             ` kashani
2008-02-18 20:28               ` Grant
2008-02-18 22:15                 ` kashani
2008-02-18 22:39                   ` Grant
2008-02-19  1:04                     ` Grant
2008-02-19 15:37 ` [gentoo-user] " Grant

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=49bf44f10802181146m53cbc1fao576a909ddc2b9d78@mail.gmail.com \
    --to=emailgrant@gmail.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