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 17:04:31 -0800	[thread overview]
Message-ID: <49bf44f10802181704n7b380c1co14fedc31cdabce93@mail.gmail.com> (raw)
In-Reply-To: <49bf44f10802181439meee6492n99ffc8b21e7924cf@mail.gmail.com>

> > > I actually don't have a mynetworks statement in main.cf at all and I
> > > send from squirrelmail all over the place.
> > >
> > > I won't be able to specify a single IP for my laptop.  Can I allow
> > > authenticated users to send?
> >
> > You connect to squirrelmail from many different IPs via HTTP, but
> > squirrelmain only calls SMTP from the localhost IP, 127.0.0.1. So add
> > the default mynetworks back in if you want Squirrelmail to be able to
> > send at all. And quit trying out poorly thought out security tricks in
> > Postfix if you don't know what you're doing.
>
> I haven't removed the mynetworks statement.  It was never there.
> Could it be somewhere other than main.cf and master.cf?  Maybe
> 127.0.0.1 is the default.  I can send from squirrelmail just fine as
> always.  Admittedly "all over the place" was a bad choice of words.
>
> > Once that is fixed you can start looking at why you can't authenticate.
> > I'm going to guess that you haven't bothered to setup smtp
> > authentication via sasl yet.
>
> I didn't realize I wasn't authenticating.  I'm working on sasl now.

Got it!  Thanks a lot for everyone's help.  I'm running
courier-imapd-ssl, postfix, and saslauthd.  With the following config
everything should be encrypted between my laptop and the server:

/etc/postfix/main.cf:

[snip]
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        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

/etc/postfix/master.cf:

smtp      inet  n       -       n       -       -       smtpd
smtps     inet  n       -       n       -       -       smtpd
  -o smtpd_tls_wrappermode=yes

/etc/sasl2/smtpd.conf:

mech_list: PLAIN LOGIN
pwcheck_method:saslauthd

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



  reply	other threads:[~2008-02-19  1:04 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
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 [this message]
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=49bf44f10802181704n7b380c1co14fedc31cdabce93@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