SASL AUTH works but Postfix continues recipient check and fails

View: New views
9 Messages — Rating Filter:   Alert me  

SASL AUTH works but Postfix continues recipient check and fails

by Thomas Polliard-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have the host properly receiving mail.  I am showing in the logs that the SASL AUTH is working but for some reason after that its still parsing recipient rules and doesn't find it in my virtual tables.

User me (thomas@... ----sending----> thomas_polliard@...)
My configuration is Postfix/Postgres/Dovecot:

So below the pound signs is all the logging/config that should be helpful but simply stated.

I was having problems using the virtual_map directive as I could send mail SASL authenticated but I couldnt receive mail.  I did some research on postfix.org and updated to 2.0 Syntax (About time, Iv used postfix for so long)
I then switch to use 2.0 syntax for the virtual directives and all seemed ok.  Till I tried to send mail using SASL.  Then I found that it was strange because SASL AUTH was working properly but that postfix continued to run
down reciepient checks.  

If anyone can give me a hand I would appreciate it as Im about to pull my hair out....

Thanks

Thomas Polliard

###########################################################################

[saslfinger]
[root@uranium saslfinger-1.0.3]# ./saslfinger -s
saslfinger - postfix Cyrus sasl configuration Mon Nov  2 11:00:05 CST 2009
version: 1.0.2
mode: server-side SMTP AUTH

-- basics --
Postfix: 2.3.3
System: CentOS release 5.4 (Final)

-- smtpd is linked to --
        libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00002ba955eb5000)

-- active SMTP AUTH and TLS parameters for smtpd --
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname, $myhostname.$mydomain
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot


-- listing of /usr/lib64/sasl2 --
total 2872
drwxr-xr-x  2 root root   4096 Oct 24 21:47 .
drwxr-xr-x 68 root root  36864 Oct 31 17:35 ..
-rwxr-xr-x  1 root root    890 Sep  3 19:04 libanonymous.la
-rwxr-xr-x  1 root root  15880 Sep  3 19:05 libanonymous.so
-rwxr-xr-x  1 root root  15880 Sep  3 19:05 libanonymous.so.2
-rwxr-xr-x  1 root root  15880 Sep  3 19:05 libanonymous.so.2.0.22
-rwxr-xr-x  1 root root    862 Sep  3 19:04 liblogin.la
-rwxr-xr-x  1 root root  16448 Sep  3 19:05 liblogin.so
-rwxr-xr-x  1 root root  16448 Sep  3 19:05 liblogin.so.2
-rwxr-xr-x  1 root root  16448 Sep  3 19:05 liblogin.so.2.0.22
-rwxr-xr-x  1 root root    862 Sep  3 19:04 libplain.la
-rwxr-xr-x  1 root root  16416 Sep  3 19:05 libplain.so
-rwxr-xr-x  1 root root  16416 Sep  3 19:05 libplain.so.2
-rwxr-xr-x  1 root root  16416 Sep  3 19:05 libplain.so.2.0.22
-rwxr-xr-x  1 root root    936 Sep  3 19:04 libsasldb.la
-rwxr-xr-x  1 root root 893304 Sep  3 19:05 libsasldb.so
-rwxr-xr-x  1 root root 893304 Sep  3 19:05 libsasldb.so.2
-rwxr-xr-x  1 root root 893304 Sep  3 19:05 libsasldb.so.2.0.22
-rw-r--r--  1 root root     25 Mar 14  2007 Sendmail.conf
-rw-r--r--  1 root root     26 Oct  7  2008 smtpd.conf

-- listing of /usr/lib/sasl2 --
total 2864
drwxr-xr-x  2 root root   4096 Oct 24 14:59 .
drwxr-xr-x 52 root root  36864 Oct 31 17:09 ..
-rwxr-xr-x  1 root root    884 Sep  3 19:04 libanonymous.la
-rwxr-xr-x  1 root root  14372 Sep  3 19:04 libanonymous.so
-rwxr-xr-x  1 root root  14372 Sep  3 19:04 libanonymous.so.2
-rwxr-xr-x  1 root root  14372 Sep  3 19:04 libanonymous.so.2.0.22
-rwxr-xr-x  1 root root    856 Sep  3 19:04 liblogin.la
-rwxr-xr-x  1 root root  14752 Sep  3 19:04 liblogin.so
-rwxr-xr-x  1 root root  14752 Sep  3 19:04 liblogin.so.2
-rwxr-xr-x  1 root root  14752 Sep  3 19:04 liblogin.so.2.0.22
-rwxr-xr-x  1 root root    856 Sep  3 19:04 libplain.la
-rwxr-xr-x  1 root root  14848 Sep  3 19:04 libplain.so
-rwxr-xr-x  1 root root  14848 Sep  3 19:04 libplain.so.2
-rwxr-xr-x  1 root root  14848 Sep  3 19:04 libplain.so.2.0.22
-rwxr-xr-x  1 root root    930 Sep  3 19:04 libsasldb.la
-rwxr-xr-x  1 root root 905200 Sep  3 19:04 libsasldb.so
-rwxr-xr-x  1 root root 905200 Sep  3 19:04 libsasldb.so.2
-rwxr-xr-x  1 root root 905200 Sep  3 19:04 libsasldb.so.2.0.22

-- listing of /etc/sasl2 --
total 16
drwxr-xr-x  2 root root  4096 Sep  3 19:04 .
drwxr-xr-x 95 root root 12288 Nov  2 09:43 ..




-- content of /usr/lib64/sasl2/smtpd.conf --
pwcheck_method: saslauthd


-- active services in /etc/postfix/master.cf --
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
smtp      inet  n       -       n       -       -       smtpd
   -o smtpd_sasl_auth_enable=yes
   -o content_filter=spamfilter:dummy
   -v
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache  unix - - n - 1 scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
spamfilter   unix  -       n       n       -       -      pipe
  flags=Rq user=filter argv=/usr/local/sbin/spamfilter -f ${sender} -- ${recipient}

-- mechanisms on localhost --
250-AUTH PLAIN DIGEST-MD5
250-AUTH=PLAIN DIGEST-MD5


-- end of saslfinger output --




[main.cf]
<snip>
virtual_mailbox_base = /prod/mail
virtual_uid_maps = static:25001
virtual_gid_maps = static:25001
transport_maps = pgsql:/etc/postfix/pgsql/transport.cf
virtual_mailbox_domains = pgsql:/etc/postfix/pgsql/virtual_domains.cf
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql/mailboxes.cf
virtual_alias_maps = pgsql:/etc/postfix/pgsql/virtual_alias.cf

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases


smtpd_helo_required = yes
disable_vrfy_command = yes

smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        permit_mynetworks,
        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_destination,
        #reject_rbl_client dnsbl-3.uceprotect.net,
        #reject_rbl_client zen.spamhaus.org,
        #reject_rbl_client rhsbl.ahbl.org,
        #reject_rbl_client dnsbl.ahbl.org,
        #check_sender_access pcre:/etc/postfix/spam_checks.pcre,
        permit


smtpd_data_restrictions =
        reject_unauth_pipelining,
        permit

smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname, $myhostname.$mydomain
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/run/dovecot/auth-client
broken_sasl_auth_clients = yes

header_checks = regexp:/etc/postfix/header_checks



Client SASL Authenticates through dovecot  Here is my log of the connection

[/var/log/maillog]
<SNIP>

BEGIN CRITICAL SECTION

Nov  2 10:54:02 uranium postfix/smtpd[12121]: < pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: AUTH PLAIN AHRob21hc0Bwb2xsaWFyZC5jb20AOWFodWdpdGU=
Nov  2 10:54:02 uranium postfix/smtpd[12121]: xsasl_dovecot_server_first: sasl_method PLAIN, init_response AHRob21hc0Bwb2xsaWFyZC5jb20AOWFodWdpdGU=
Nov  2 10:54:02 uranium dovecot: auth(default): client in: AUTH 2 PLAIN service=smtp resp=AHRob21hc0Bwb2xsaWFyZC5jb20AOWFodWdpdGU=
Nov  2 10:54:02 uranium dovecot: auth(default): sql(thomas@...): query: SELECT userid as user, password FROM service.email_accounts WHERE userid = 'thomas@...'
Nov  2 10:54:02 uranium dovecot: auth(default): client out: OK 2 user=thomas@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: xsasl_dovecot_handle_reply: auth reply: OK?2?user=thomas@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: > pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 235 2.0.0 Authentication successful
Nov  2 10:54:02 uranium postfix/smtpd[12121]: < pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: MAIL FROM:<thomas@...>

END CRITICAL SECTION

Nov  2 10:54:02 uranium postfix/smtpd[12121]: extract_addr: input: <thomas@...>
Nov  2 10:54:02 uranium postfix/smtpd[12121]: smtpd_check_addr: addr=thomas@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: ctable_locate: leave existing entry key thomas@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: extract_addr: in: <thomas@...>, result: thomas@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: fsspace: .: block size 4096, blocks free 54962955
Nov  2 10:54:02 uranium postfix/smtpd[12121]: smtpd_check_queue: blocks 4096 avail 54962955 min_free 0 msg_size_limit 10240000
Nov  2 10:54:02 uranium postfix/smtpd[12121]: > pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 250 2.1.0 Ok
Nov  2 10:54:02 uranium postfix/smtpd[12121]: < pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: RCPT TO:<thomas_polliard@...>
Nov  2 10:54:02 uranium postfix/smtpd[12121]: extract_addr: input: <thomas_polliard@...>
Nov  2 10:54:02 uranium postfix/smtpd[12121]: smtpd_check_addr: addr=thomas_polliard@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: send attr request = rewrite
Nov  2 10:54:02 uranium postfix/smtpd[12121]: send attr rule = local
Nov  2 10:54:02 uranium postfix/smtpd[12121]: send attr address = thomas_polliard@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: private/rewrite socket: wanted attribute: flags
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute name: flags
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute value: 0
Nov  2 10:54:02 uranium postfix/smtpd[12121]: private/rewrite socket: wanted attribute: address
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute name: address
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute value: thomas_polliard@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: private/rewrite socket: wanted attribute: (list terminator)
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute name: (end)
Nov  2 10:54:02 uranium postfix/smtpd[12121]: rewrite_clnt: local: thomas_polliard@... -> thomas_polliard@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: send attr request = resolve
Nov  2 10:54:02 uranium postfix/smtpd[12121]: send attr sender =
Nov  2 10:54:02 uranium postfix/smtpd[12121]: send attr address = thomas_polliard@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: private/rewrite socket: wanted attribute: flags
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute name: flags
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute value: 0
Nov  2 10:54:02 uranium postfix/smtpd[12121]: private/rewrite socket: wanted attribute: transport
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute name: transport
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute value: virtual
Nov  2 10:54:02 uranium postfix/smtpd[12121]: private/rewrite socket: wanted attribute: nexthop
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute name: nexthop
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute value: yahoo.com
Nov  2 10:54:02 uranium postfix/smtpd[12121]: private/rewrite socket: wanted attribute: recipient
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute name: recipient
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute value: thomas_polliard@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: private/rewrite socket: wanted attribute: flags
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute name: flags
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute value: 1024
Nov  2 10:54:02 uranium postfix/smtpd[12121]: private/rewrite socket: wanted attribute: (list terminator)
Nov  2 10:54:02 uranium postfix/smtpd[12121]: input attribute name: (end)
Nov  2 10:54:02 uranium postfix/smtpd[12121]: resolve_clnt: `' -> `thomas_polliard@...' -> transp=`virtual' host=`yahoo.com' rcpt=`thomas_polliard@...' flags= class=virtual
Nov  2 10:54:02 uranium postfix/smtpd[12121]: ctable_locate: install entry key thomas_polliard@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: extract_addr: in: <thomas_polliard@...>, result: thomas_polliard@...

ERROR BEGIN

Nov  2 10:54:02 uranium postfix/smtpd[12121]: >>> START Recipient address RESTRICTIONS <<<
Nov  2 10:54:02 uranium postfix/smtpd[12121]: generic_checks: name=permit_sasl_authenticated
Nov  2 10:54:02 uranium postfix/smtpd[12121]: generic_checks: name=permit_sasl_authenticated status=1
Nov  2 10:54:02 uranium postfix/smtpd[12121]: >>> CHECKING RECIPIENT MAPS <<<
Nov  2 10:54:02 uranium postfix/smtpd[12121]: ctable_locate: leave existing entry key thomas_polliard@...
Nov  2 10:54:02 uranium postfix/smtpd[12121]: maps_find: recipient_canonical_maps: thomas_polliard@...: not found
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? uranium.polliard.com
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? localhost.polliard.com
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_list_match: yahoo.com: no match
Nov  2 10:54:02 uranium postfix/smtpd[12121]: maps_find: recipient_canonical_maps: @yahoo.com: not found
Nov  2 10:54:02 uranium postfix/smtpd[12121]: mail_addr_find: thomas_polliard@... -> (not found)
Nov  2 10:54:02 uranium postfix/smtpd[12121]: maps_find: canonical_maps: thomas_polliard@...: not found
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? uranium.polliard.com
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? localhost.polliard.com
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_list_match: yahoo.com: no match
Nov  2 10:54:02 uranium postfix/smtpd[12121]: maps_find: canonical_maps: @yahoo.com: not found
Nov  2 10:54:02 uranium postfix/smtpd[12121]: mail_addr_find: thomas_polliard@... -> (not found)
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql_get_active: found active connection to host localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql: successful query from host localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql_lookup: retrieved 0 rows
Nov  2 10:54:02 uranium postfix/smtpd[12121]: maps_find: virtual_alias_maps: thomas_polliard@...: not found
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? uranium.polliard.com
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? localhost.polliard.com
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_list_match: yahoo.com: no match
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql_get_active: found active connection to host localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql: successful query from host localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql_lookup: retrieved 0 rows
Nov  2 10:54:02 uranium postfix/smtpd[12121]: maps_find: virtual_alias_maps: @yahoo.com: not found
Nov  2 10:54:02 uranium postfix/smtpd[12121]: mail_addr_find: thomas_polliard@... -> (not found)
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql_get_active: attempting to connect to host localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql: successful connection to host localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql: successful query from host localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql_lookup: retrieved 0 rows
Nov  2 10:54:02 uranium postfix/smtpd[12121]: maps_find: virtual_mailbox_maps: thomas_polliard@...: not found
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? uranium.polliard.com
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? localhost.polliard.com
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_string: yahoo.com ~? localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: match_list_match: yahoo.com: no match
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql_get_active: found active connection to host localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql: successful query from host localhost
Nov  2 10:54:02 uranium postfix/smtpd[12121]: dict_pgsql_lookup: retrieved 0 rows
Nov  2 10:54:02 uranium postfix/smtpd[12121]: maps_find: virtual_mailbox_maps: @yahoo.com: not found
Nov  2 10:54:02 uranium postfix/smtpd[12121]: mail_addr_find: thomas_polliard@... -> (not found)
Nov  2 10:54:02 uranium postfix/smtpd[12121]: NOQUEUE: reject: RCPT from pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 550 5.1.1 <thomas_polliard@...>: Recipient address rejected: User unknown in virtual mailbox table; from=<thomas@...> to=<thomas_polliard@...> proto=ESMTP helo=<[10.0.1.4]>
Nov  2 10:54:02 uranium postfix/smtpd[12121]: > pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 550 5.1.1 <thomas_polliard@...>: Recipient address rejected: User unknown in virtual mailbox table
Nov  2 10:54:02 uranium postfix/smtpd[12121]: < pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: QUIT
Nov  2 10:54:02 uranium postfix/smtpd[12121]: > pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 221 2.0.0 Bye


Re: SASL AUTH works but Postfix continues recipient check and fails

by Victor Duchovni :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 02, 2009 at 12:14:29PM -0500, Thomas Polliard wrote:

> Nov  2 10:54:02 uranium postfix/smtpd[12121]: < pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: AUTH PLAIN AHRob21hc0Bwb2xsaWFyZC5jb20AOWFodWdpdGU=

Change your password as soon as possible. You have just posted it for
all the world to see:

    Username: thomas@...
    Password: 9ahu....

Do not post the base64 encoded part of the SASL handshake.

> Nov  2 10:54:02 uranium postfix/smtpd[12121]: > pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 235 2.0.0 Authentication successful

So far, so good.

> Nov  2 10:54:02 uranium postfix/smtpd[12121]: < pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: MAIL FROM:<thomas@...>
> Nov  2 10:54:02 uranium postfix/smtpd[12121]: > pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 250 2.1.0 Ok
> Nov  2 10:54:02 uranium postfix/smtpd[12121]: < pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: RCPT TO:<thomas_polliard@...>

> Nov  2 10:54:02 uranium postfix/smtpd[12121]: resolve_clnt: `' -> `thomas_polliard@...' -> transp=`virtual' host=`yahoo.com' rcpt=`thomas_polliard@...' flags= class=virtual

You have misconfigured your system to treat all domains (including
yahoo.com) as a virtual mailbox domain.

Do not return the full list of domains regardless of the input key.
Return any non-empty string of your choice, when the input key is
one of the desired domains.

> Nov  2 10:54:02 uranium postfix/smtpd[12121]: NOQUEUE: reject: RCPT from pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 550 5.1.1 <thomas_polliard@...>: Recipient address rejected: User unknown in virtual mailbox table; from=<thomas@...> to=<thomas_polliard@...> proto=ESMTP helo=<[10.0.1.4]>

Not surprising.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo@...?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Re: SASL AUTH works but Postfix continues recipient check and fails

by Daniel V. Reinhardt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message






----- Original Message ----

> From: Victor Duchovni <Victor.Duchovni@...>
> To: postfix-users@...
> Sent: Mon, November 2, 2009 6:27:34 PM
> Subject: Re: SASL AUTH works but Postfix continues recipient check and fails
>
> On Mon, Nov 02, 2009 at 12:14:29PM -0500, Thomas Polliard wrote:
>
> > Nov  2 10:54:02 uranium postfix/smtpd[12121]: <
> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: AUTH PLAIN
> <DO NOT PASTE YOUR PASSWORD>
>
> Change your password as soon as possible. You have just posted it for
> all the world to see:
>
>     Username: thomas@...
>     Password: 9ahu....
>
> Do not post the base64 encoded part of the SASL handshake.

In fact, I would recommend changing your password for every account you do use, just in case you use the same one for everything like most of the people I know.



     

Re: SASL AUTH works but Postfix continues recipient check and fails

by Thomas Polliard-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Victor,

Im trying it now and just for the record, password was changed the  
moment I hit send ;)  I had changed it to that prior to the test.  
What is special though about the base64 encoding thought it was just  
the password digested, is there something else in there?

(I had changed the user's passwords on the database before doing the  
test.)

Thanks

Thomas
On Nov 2, 2009, at 1:27 PM, Victor Duchovni wrote:

> On Mon, Nov 02, 2009 at 12:14:29PM -0500, Thomas Polliard wrote:
>
>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: <  
>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: AUTH  
>> PLAIN AHRob21hc0Bwb2xsaWFyZC5jb20AOWFodWdpdGU=
>
> Change your password as soon as possible. You have just posted it for
> all the world to see:
>
>    Username: thomas@...
>    Password: 9ahu....
>
> Do not post the base64 encoded part of the SASL handshake.
>
>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: >  
>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 235  
>> 2.0.0 Authentication successful
>
> So far, so good.
>
>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: <  
>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: MAIL  
>> FROM:<thomas@...>
>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: >  
>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 250  
>> 2.1.0 Ok
>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: <  
>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: RCPT  
>> TO:<thomas_polliard@...>
>
>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: resolve_clnt: `' -> `thomas_polliard@...
>> ' -> transp=`virtual' host=`yahoo.com' rcpt=`thomas_polliard@...
>> ' flags= class=virtual
>
> You have misconfigured your system to treat all domains (including
> yahoo.com) as a virtual mailbox domain.
>
> Do not return the full list of domains regardless of the input key.
> Return any non-empty string of your choice, when the input key is
> one of the desired domains.
>
>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: NOQUEUE: reject: RCPT  
>> from pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]:  
>> 550 5.1.1 <thomas_polliard@...>: Recipient address rejected:  
>> User unknown in virtual mailbox table; from=<thomas@...>  
>> to=<thomas_polliard@...> proto=ESMTP helo=<[10.0.1.4]>
>
> Not surprising.
>
> --
> Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> <mailto:majordomo@...?body=unsubscribe%20postfix-users>
>
> If my response solves your problem, the best way to thank me is to not
> send an "it worked, thanks" follow-up. If you must respond, please put
> "It worked, thanks" in the "Subject" so I can delete these quickly.


Re: SASL AUTH works but Postfix continues recipient check and fails

by Daniel V. Reinhardt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



----- Original Message ----

> From: Thomas Polliard <polliard@...>
> To: postfix-users@...
> Sent: Mon, November 2, 2009 6:35:49 PM
> Subject: Re: SASL AUTH works but Postfix continues recipient check and fails
>
> Thanks Victor,
>
> Im trying it now and just for the record, password was changed the moment I hit
> send ;)  I had changed it to that prior to the test.  What is special though
> about the base64 encoding thought it was just the password digested, is there
> something else in there?
>
> (I had changed the user's passwords on the database before doing the test.)
>
> Thanks
>
> Thomas

It contains the encoded password, of which anyone can decode with the base64 decoders that are online.



     

Re: SASL AUTH works but Postfix continues recipient check and fails

by Thomas Polliard-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Victor I agree that appears to be the problem as that is the behavior  
but my query on the database is in fact only returning 1 row with the  
text virtual: as its result.  Do you mean there is something else that  
I need to do?

Thomas
On Nov 2, 2009, at 1:35 PM, Thomas Polliard wrote:

> Thanks Victor,
>
> Im trying it now and just for the record, password was changed the  
> moment I hit send ;)  I had changed it to that prior to the test.  
> What is special though about the base64 encoding thought it was just  
> the password digested, is there something else in there?
>
> (I had changed the user's passwords on the database before doing the  
> test.)
>
> Thanks
>
> Thomas
> On Nov 2, 2009, at 1:27 PM, Victor Duchovni wrote:
>
>> On Mon, Nov 02, 2009 at 12:14:29PM -0500, Thomas Polliard wrote:
>>
>>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: <  
>>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: AUTH  
>>> PLAIN AHRob21hc0Bwb2xsaWFyZC5jb20AOWFodWdpdGU=
>>
>> Change your password as soon as possible. You have just posted it for
>> all the world to see:
>>
>>   Username: thomas@...
>>   Password: 9ahu....
>>
>> Do not post the base64 encoded part of the SASL handshake.
>>
>>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: >  
>>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 235  
>>> 2.0.0 Authentication successful
>>
>> So far, so good.
>>
>>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: <  
>>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: MAIL  
>>> FROM:<thomas@...>
>>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: >  
>>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 250  
>>> 2.1.0 Ok
>>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: <  
>>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: RCPT  
>>> TO:<thomas_polliard@...>
>>
>>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: resolve_clnt: `' -> `thomas_polliard@...
>>> ' -> transp=`virtual' host=`yahoo.com' rcpt=`thomas_polliard@...
>>> ' flags= class=virtual
>>
>> You have misconfigured your system to treat all domains (including
>> yahoo.com) as a virtual mailbox domain.
>>
>> Do not return the full list of domains regardless of the input key.
>> Return any non-empty string of your choice, when the input key is
>> one of the desired domains.
>>
>>> Nov  2 10:54:02 uranium postfix/smtpd[12121]: NOQUEUE: reject:  
>>> RCPT from  
>>> pool-96-253-127-251.rcmdva.fios.verizon.net[96.253.127.251]: 550  
>>> 5.1.1 <thomas_polliard@...>: Recipient address rejected:  
>>> User unknown in virtual mailbox table; from=<thomas@...>  
>>> to=<thomas_polliard@...> proto=ESMTP helo=<[10.0.1.4]>
>>
>> Not surprising.
>>
>> --
>> Viktor.
>>
>> Disclaimer: off-list followups get on-list replies or get ignored.
>> Please do not ignore the "Reply-To" header.
>>
>> To unsubscribe from the postfix-users list, visit
>> http://www.postfix.org/lists.html or click the link below:
>> <mailto:majordomo@...?body=unsubscribe%20postfix-users>
>>
>> If my response solves your problem, the best way to thank me is to  
>> not
>> send an "it worked, thanks" follow-up. If you must respond, please  
>> put
>> "It worked, thanks" in the "Subject" so I can delete these quickly.
>


Re: SASL AUTH works but Postfix continues recipient check and fails

by Victor Duchovni :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 02, 2009 at 01:35:49PM -0500, Thomas Polliard wrote:

> Im trying it now and just for the record, password was changed the moment I
> hit send ;)  I had changed it to that prior to the test.  What is special
> though about the base64 encoding thought it was just the password digested,
> is there something else in there?

Don't confuse an "encoding" with encryption or a cryptographic digest.

    $ perl -e '
      use MIME::Base64;
      ($x = decode_base64(shift)) =~ s/\0/\\000/g;
      print $x, "\n";
      ' AHRob21hc0Bwb2xsaWFyZC5jb20AOWFodWdpdGU=

encodings are key-less and reversible, they just represent bit-strings
in a different form.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo@...?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Re: SASL AUTH works but Postfix continues recipient check and fails

by Victor Duchovni :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 02, 2009 at 01:43:29PM -0500, Thomas Polliard wrote:

> Victor I agree that appears to be the problem as that is the behavior but
> my query on the database is in fact only returning 1 row with the text
> virtual: as its result.  Do you mean there is something else that I need to

Fix the search query to not return this value when the input string
is yahoo.com.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo@...?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Re: SASL AUTH works but Postfix continues recipient check and fails

by Thomas Polliard-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No Im a noob.... Its what I get for not sleeping.  I didnt add the  
where line to my query = but it was in my svn version of the file so  
somehow I didnt checkout the valid copy but was using an older copy.

Thanks again all

Thomas
On Nov 2, 2009, at 2:00 PM, Victor Duchovni wrote:

> On Mon, Nov 02, 2009 at 01:43:29PM -0500, Thomas Polliard wrote:
>
>> Victor I agree that appears to be the problem as that is the  
>> behavior but
>> my query on the database is in fact only returning 1 row with the  
>> text
>> virtual: as its result.  Do you mean there is something else that I  
>> need to
>
> Fix the search query to not return this value when the input string
> is yahoo.com.
>
> --
> Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> <mailto:majordomo@...?body=unsubscribe%20postfix-users>
>
> If my response solves your problem, the best way to thank me is to not
> send an "it worked, thanks" follow-up. If you must respond, please put
> "It worked, thanks" in the "Subject" so I can delete these quickly.