public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Bryan Whitehead <driver@megahappy.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] SMTP Authentication
Date: Thu, 19 Oct 2006 17:08:59 -0700	[thread overview]
Message-ID: <4538139B.30301@megahappy.net> (raw)
In-Reply-To: <4534DDE2.2030102@d2etechnologies.com>

I use stunnel to wrap imap and pop3. For SMTP I have TLS authentication 
using the saslauthd deamon and postfix. I have many virtual domains, but 
all accounts are local/plain unix accounts. Most do not have shell access.

I use the following use flags
mail-mta/postfix pam sasl ssl
dev-libs/cyrus-sasl berkdb crypt ntlm_unsupported_patch pam ssl

emerge --unmerge qmail
emerge postfix

in main.cf I have:
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/stunnel/stunnel.pem
smtpd_tls_cert_file = /etc/stunnel/stunnel.pem
smtpd_tls_CAfile = /etc/stunnel/stunnel.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

(I just use the same key from stunnel for TLS... I duno if it is even 
needed or not)

~ # cat /etc/sasl2/smtpd.conf
pwcheck_method: saslauthd
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/var/lib/sasl2/mux

~ # grep -v -- \# /etc/conf.d/saslauthd
SASLAUTHD_OPTS="${SASLAUTH_MECH} -a shadow -r"

If you guys have any problems with the above... I lurk on this list if 
you need help.

Tito Valentin wrote:
> Hello list:
>
> I have been trying to get SMTP authentication on Gentoo to work with no
> success.  I am running qmail (netqmail package) with dovecot and 
> saslauth.
> I am able to connect and read my mail through IMAP fine.  The problem is
> that I cannot send email using my own SMTP server due to an 
> authentication
> issue.  Every time we try to send email out we get an error saying 
> that it
> cannot establish a connection because I am not part of the allowed 
> rcphost
> list.  I tried adding the remote host in the rcpthosts database but the
> problem persists.  The only error I see in the log files for dovecot is
> "Disconnected"
>
> Can anyone point me in the right direction as to why I can't be
> authenticated when sending email out?  Another thing is, it keeps
> prompting me for my passwd.
>
> GV
>

-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2006-10-20  0:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-17 13:42 [gentoo-user] SMTP Authentication Tito Valentin
2006-10-18 13:10 ` Ronald Vincent Vazquez
2006-10-20  0:08 ` Bryan Whitehead [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-10-19  1:30 Me Myself
2006-10-19  3:11 ` Joshua Schmidlkofer

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=4538139B.30301@megahappy.net \
    --to=driver@megahappy.net \
    --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