public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] POSTFIX and SASL
@ 2005-10-05 16:05 Joe Strusz
  2005-10-05 16:31 ` kashani
  0 siblings, 1 reply; 20+ messages in thread
From: Joe Strusz @ 2005-10-05 16:05 UTC (permalink / raw
  To: gentoo-user

No, thats not it... what about master.cf?  Could someone send me a 
sample master.cf with SASL running?


>Date: Wed, 05 Oct 2005 10:55:45 -0500
>To: gentoo-user@lists.gentoo.org
>From: Joe Strusz <jstrusz@oxpub.com>
>Subject: Re: [gentoo-user] POSTFIX and SASL
>
>Could it be because Im receiving that 8BITMIME line instead of 
>64BITMIME?  Or is that normal?
>
>At 10:47 AM 10/5/2005, you wrote:
>>Again.. heres my postconf -n
>>
>>alias_database = hash:/etc/mail/aliases
>>alias_maps = hash:/etc/mail/aliases
>>biff = no
>>broken_sasl_auth_clients = yes
>>command_directory = /usr/sbin
>>config_directory = /etc/postfix
>>content_filter = smtp-amavis:[127.0.0.1]:10024
>>daemon_directory = /usr/lib/postfix
>>debug_peer_level = 2
>>default_destination_concurrency_limit = 2
>>empty_address_recipient = MAILER-DAEMON
>>home_mailbox = .maildir/
>>html_directory = no
>>inet_interfaces = all
>>local_destination_concurrency_limit = 2
>>mail_owner = postfix
>>mailq_path = /usr/bin/mailq
>>manpage_directory = /usr/share/man
>>mydestination = op, op.$mydomain, $mydomain
>>mydomain = mydomain.com
>>myhostname = op.mydomain.com
>>mynetworks = 192.168.1.0/24, 127.0.0.0/8, mywanIP
>>newaliases_path = /usr/bin/newaliases
>>queue_directory = /var/spool/postfix
>>queue_minfree = 120000000
>>readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
>>sample_directory = /etc/postfix
>>sendmail_path = /usr/sbin/sendmail
>>setgid_group = postdrop
>>smtp_use_tls = yes
>>smtpd_recipient_restrictions = 
>>reject_invalid_hostname,        reject_non_fqdn_hostname, 
>>reject_non_fqdn_sender,        reject_non_fqdn_recipient, 
>>reject_unknown_sender_domain, 
>>reject_unknown_recipient_domain,        reject_unauth_pipelining, 
>>      permit_mynetworks, 
>>permit_sasl_authenticated,        reject_unauth_destination,        permit
>>smtpd_sasl_auth_enable = yes
>>smtpd_sasl_local_domain =
>>smtpd_sasl_security_options = noanonymous
>>smtpd_tls_CAfile = /etc/ssl/postfix/server.pem
>>smtpd_tls_cert_file = /etc/ssl/postfix/server.crt
>>smtpd_tls_key_file = /etc/ssl/postfix/server.key
>>smtpd_tls_loglevel = 3
>>smtpd_tls_received_header = yes
>>smtpd_tls_session_cache_timeout = 3600s
>>smtpd_use_tls = yes
>>tls_random_source = dev:/dev/urandom
>>unknown_local_recipient_reject_code = 450
>>
>>Still popping up the user/pass dialog...
>>
>>Heres what i grabbed from /var/log/mail.info:
>>
>>
>>Oct  5 15:41:12 op postfix/smtpd[7964]: < unknown[64.89.173.227]: 
>>EHLO ERROLSAYRE
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
>>250-op.oxpub.com
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
>>250-PIPELINING
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
>>250-SIZE 10240000
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 250-VRFY
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 250-ETRN
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
>>250-AUTH LOGIN PLAIN
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
>>250-AUTH=LOGIN PLAIN
>>Oct  5 15:41:12 op postfix/smtpd[7964]: match_list_match: unknown: no match
>>Oct  5 15:41:12 op postfix/smtpd[7964]: match_list_match: 
>>64.89.173.227: no match
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
>>250 8BITMIME
>>Oct  5 15:41:12 op postfix/smtpd[7964]: watchdog_pat: 0x5555556e4608
>>Oct  5 15:41:12 op postfix/smtpd[7964]: < unknown[64.89.173.227]: AUTH LOGIN
>>Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
>>sasl_method LOGIN
>>Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
>>uncoded challenge: Username:
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
>>334 VXNlcm5hbWU6
>>Oct  5 15:41:12 op postfix/smtpd[7964]: < unknown[64.89.173.227]: 
>>anN0cnVzeg==
>>Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
>>decoded response: jstrusz
>>Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
>>uncoded challenge: Password:
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
>>334 UGFzc3dvcmQ6
>>Oct  5 15:41:12 op postfix/smtpd[7964]: < unknown[64.89.173.227]: 
>>dXAybEB0ZQ==
>>Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
>>decoded response: MY PLAIN TEXT PASSWORD
>>Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
>>535 Error: authentication failed
>>Oct  5 15:41:12 op postfix/smtpd[7964]: watchdog_pat: 0x5555556e4608
>>Oct  5 15:41:12 op postfix/smtpd[7964]: smtp_get: EOF
>>Oct  5 15:41:12 op postfix/smtpd[7964]: lost connection after AUTH 
>>from unknown[64.89.173.227]
>>Oct  5 15:41:12 op postfix/smtpd[7964]: disconnect from 
>>unknown[64.89.173.227]
>>Oct  5 15:41:12 op postfix/smtpd[7964]: master_notify: status 1
>>Oct  5 15:41:12 op postfix/smtpd[7964]: connection closed
>>
>>
>>Please help!
>>
>>
>>
>>
>>Joe Strusz
>>
>>IT Assistant
>>Oxford Publishing, Inc.
>>307 West Jackson Avenue
>>Oxford, MS 38655-2154
>>800-247-3881
>>662-236-5510x40
>>jstrusz@oxpub.com
>>http://www.nightclub.com
>>
>>
>>--
>>gentoo-user@gentoo.org mailing list
>
>
>Joe Strusz
>
>IT Assistant
>Oxford Publishing, Inc.
>307 West Jackson Avenue
>Oxford, MS 38655-2154
>800-247-3881
>662-236-5510x40
>jstrusz@oxpub.com
>http://www.nightclub.com


Joe Strusz

IT Assistant
Oxford Publishing, Inc.
307 West Jackson Avenue
Oxford, MS 38655-2154
800-247-3881
662-236-5510x40
jstrusz@oxpub.com
http://www.nightclub.com


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 20+ messages in thread
* [gentoo-user] POSTFIX and SASL
@ 2005-10-05 16:17 Joe Strusz
  0 siblings, 0 replies; 20+ messages in thread
From: Joe Strusz @ 2005-10-05 16:17 UTC (permalink / raw
  To: gentoo-user

Again heres the section in my /var/log/mail.info:


< unknown[64.89.173.227]: EHLO ERROLSAYRE
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 
250-op.oxpub.com
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 
250-PIPELINING
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 
250-SIZE 10240000
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 250-VRFY
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 250-ETRN
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 
250-AUTH LOGIN PLAIN
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 
250-AUTH=LOGIN PLAIN
Oct  5 16:10:55 op postfix/smtpd[10183]: match_list_match: unknown: no match
Oct  5 16:10:55 op postfix/smtpd[10183]: match_list_match: 
64.89.173.227: no match
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 250 8BITMIME
Oct  5 16:10:55 op postfix/smtpd[10183]: watchdog_pat: 0x5555556e42b8
Oct  5 16:10:55 op postfix/smtpd[10183]: < unknown[64.89.173.227]: AUTH LOGIN
Oct  5 16:10:55 op postfix/smtpd[10183]: smtpd_sasl_authenticate: 
sasl_method LOGIN
Oct  5 16:10:55 op postfix/smtpd[10183]: smtpd_sasl_authenticate: 
uncoded challenge: Username:
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 
334 VXNlcm5hbWU6
Oct  5 16:10:55 op postfix/smtpd[10183]: < unknown[64.89.173.227]: 
anN0cnVzekBveHB1Yi5jb20=
Oct  5 16:10:55 op postfix/smtpd[10183]: smtpd_sasl_authenticate: 
decoded response: jstrusz@oxpub.com
Oct  5 16:10:55 op postfix/smtpd[10183]: smtpd_sasl_authenticate: 
uncoded challenge: Password:
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 
334 UGFzc3dvcmQ6
Oct  5 16:10:55 op postfix/smtpd[10183]: < unknown[64.89.173.227]: dXAybEB0ZQ==
Oct  5 16:10:55 op postfix/smtpd[10183]: smtpd_sasl_authenticate: 
decoded response: mydecodedplaintextpassword(is this supposed to be here?)
Oct  5 16:10:55 op postfix/smtpd[10183]: > unknown[64.89.173.227]: 
535 Error: authentication failed
Oct  5 16:10:55 op postfix/smtpd[10183]: watchdog_pat: 0x5555556e42b8
Oct  5 16:10:55 op postfix/smtpd[10183]: smtp_get: EOF
Oct  5 16:10:55 op postfix/smtpd[10183]: lost connection after AUTH 
from unknown[64.89.173.227]
Oct  5 16:10:55 op postfix/smtpd[10183]: disconnect from unknown[64.89.173.227]
Oct  5 16:10:55 op postfix/smtpd[10183]: master_notify: status 1
Oct  5 16:10:55 op postfix/smtpd[10183]: connection closed







Joe Strusz

IT Assistant
Oxford Publishing, Inc.
307 West Jackson Avenue
Oxford, MS 38655-2154
800-247-3881
662-236-5510x40
jstrusz@oxpub.com
http://www.nightclub.com


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 20+ messages in thread
* [gentoo-user] POSTFIX and SASL
@ 2005-10-05 15:47 Joe Strusz
  2005-10-05 15:55 ` Joe Strusz
  0 siblings, 1 reply; 20+ messages in thread
From: Joe Strusz @ 2005-10-05 15:47 UTC (permalink / raw
  To: gentoo-user

Again.. heres my postconf -n

alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 2
empty_address_recipient = MAILER-DAEMON
home_mailbox = .maildir/
html_directory = no
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = op, op.$mydomain, $mydomain
mydomain = mydomain.com
myhostname = op.mydomain.com
mynetworks = 192.168.1.0/24, 127.0.0.0/8, mywanIP
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
queue_minfree = 120000000
readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_use_tls = yes
smtpd_recipient_restrictions = 
reject_invalid_hostname,        reject_non_fqdn_hostname, 
reject_non_fqdn_sender,        reject_non_fqdn_recipient, 
reject_unknown_sender_domain,        reject_unknown_recipient_domain, 
        reject_unauth_pipelining,        permit_mynetworks, 
permit_sasl_authenticated,        reject_unauth_destination,        permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/postfix/server.pem
smtpd_tls_cert_file = /etc/ssl/postfix/server.crt
smtpd_tls_key_file = /etc/ssl/postfix/server.key
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450

Still popping up the user/pass dialog...

Heres what i grabbed from /var/log/mail.info:


Oct  5 15:41:12 op postfix/smtpd[7964]: < unknown[64.89.173.227]: 
EHLO ERROLSAYRE
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
250-op.oxpub.com
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
250-PIPELINING
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
250-SIZE 10240000
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 250-VRFY
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 250-ETRN
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
250-AUTH LOGIN PLAIN
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 
250-AUTH=LOGIN PLAIN
Oct  5 15:41:12 op postfix/smtpd[7964]: match_list_match: unknown: no match
Oct  5 15:41:12 op postfix/smtpd[7964]: match_list_match: 
64.89.173.227: no match
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 250 8BITMIME
Oct  5 15:41:12 op postfix/smtpd[7964]: watchdog_pat: 0x5555556e4608
Oct  5 15:41:12 op postfix/smtpd[7964]: < unknown[64.89.173.227]: AUTH LOGIN
Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
sasl_method LOGIN
Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
uncoded challenge: Username:
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 334 
VXNlcm5hbWU6
Oct  5 15:41:12 op postfix/smtpd[7964]: < unknown[64.89.173.227]: anN0cnVzeg==
Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
decoded response: jstrusz
Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
uncoded challenge: Password:
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 334 
UGFzc3dvcmQ6
Oct  5 15:41:12 op postfix/smtpd[7964]: < unknown[64.89.173.227]: dXAybEB0ZQ==
Oct  5 15:41:12 op postfix/smtpd[7964]: smtpd_sasl_authenticate: 
decoded response: MY PLAIN TEXT PASSWORD
Oct  5 15:41:12 op postfix/smtpd[7964]: > unknown[64.89.173.227]: 535 
Error: authentication failed
Oct  5 15:41:12 op postfix/smtpd[7964]: watchdog_pat: 0x5555556e4608
Oct  5 15:41:12 op postfix/smtpd[7964]: smtp_get: EOF
Oct  5 15:41:12 op postfix/smtpd[7964]: lost connection after AUTH 
from unknown[64.89.173.227]
Oct  5 15:41:12 op postfix/smtpd[7964]: disconnect from unknown[64.89.173.227]
Oct  5 15:41:12 op postfix/smtpd[7964]: master_notify: status 1
Oct  5 15:41:12 op postfix/smtpd[7964]: connection closed


Please help!




Joe Strusz

IT Assistant
Oxford Publishing, Inc.
307 West Jackson Avenue
Oxford, MS 38655-2154
800-247-3881
662-236-5510x40
jstrusz@oxpub.com
http://www.nightclub.com


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 20+ messages in thread
* [gentoo-user] POSTFIX and SASL
@ 2005-10-05 15:17 Joe Strusz
  2005-10-05 15:25 ` John Jolet
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Joe Strusz @ 2005-10-05 15:17 UTC (permalink / raw
  To: gentoo-user

Ive read every forum on the site, and even ventured over the Wiki for 
even more redundant reading.  Ive read the entire postfix handbook, 
and still have not found an answer to this problem.  Its been two 
weeks now I haven't been able to send mail from outside the network 
to non local users.

Heres my /etc/postfix/main.cf:

alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 2
empty_address_recipient = MAILER-DAEMON
home_mailbox = .maildir/
html_directory = no
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = op, op.$mydomain, $mydomain
mydomain = mydomain.com
myhostname = op.mydomain.com
mynetworks = 192.168.1.0/24, 127.0.0.0/8, *.*.*.*(my WAN ip)
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
queue_minfree = 120000000
readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_use_tls = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/postfix/server.pem
smtpd_tls_cert_file = /etc/ssl/postfix/server.crt
smtpd_tls_key_file = /etc/ssl/postfix/server.key
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450
virtual_alias_domains = myvirtual.com
virtual_alias_maps = hash:/etc/postfix/virtual


And heres /etc/sasl2/smtpd.conf:

pwcheck_method: saslauthd
mech_list: plain login

And heres /etc/conf.d/saslauthd:

# $Id: saslauthd.sysconfig,v 1.1 2001/05/02 10:55:48 wiget Exp $
# Authentications mechanism (for list see saslauthd -v)
SASL_AUTHMECH=pam


# Hostname for remote IMAP server (if rimap auth mech is used)
# Ldap configuration file (if ldap auth mech is used)
SASL_MECH_OPTIONS=


# Extra options (for list see saslauthd -h)
SASLAUTHD_OPTS=


And last but not least, heres a description of the problem...

TLS and everything else works great.  However as soon as I check that 
little box in outlook express that says "my smtp server requires 
authentication" on the client whom worsk out of the office on home 
internet lines.. the password box keeps reappearing, and accepting 
any passwords... i ran the line "saslpasswd2 -c username" to no 
avail.  Same issue.

Postfix was compiled with SASL support:

[ebuild   R   ] mail-mta/postfix-2.1.5-r2  -ipv6 -ldap -mailwrapper 
-mbox +mysql +pam -postgres +sasl (-selinux) +ssl -vda 0 kB

And when i telnet to 25 and issue the ehlo command, i do get AUTH 
PLAIN lines...

whats going on?

please help

im racking my brains.




Joe Strusz

IT Assistant
Oxford Publishing, Inc.
307 West Jackson Avenue
Oxford, MS 38655-2154
800-247-3881
662-236-5510x40
jstrusz@oxpub.com
http://www.nightclub.com


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-10-05 20:11 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-05 16:05 [gentoo-user] POSTFIX and SASL Joe Strusz
2005-10-05 16:31 ` kashani
2005-10-05 17:04   ` Joe Strusz
2005-10-05 17:10     ` Joe Strusz
2005-10-05 18:41       ` Joe Strusz
2005-10-05 18:46         ` Joe Strusz
2005-10-05 18:58           ` Drew Tomlinson
2005-10-05 19:03             ` joe strusz
2005-10-05 18:54     ` kashani
  -- strict thread matches above, loose matches on Subject: below --
2005-10-05 16:17 Joe Strusz
2005-10-05 15:47 Joe Strusz
2005-10-05 15:55 ` Joe Strusz
2005-10-05 15:17 Joe Strusz
2005-10-05 15:25 ` John Jolet
2005-10-05 15:26 ` John Jolet
2005-10-05 15:32   ` Joe Strusz
2005-10-05 15:36 ` kashani
2005-10-05 17:01 ` Marshal Newrock
2005-10-06  0:27 ` Bryan Whitehead
2005-10-05 20:04   ` Joe Strusz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox