Re: [exim] embedded perl script in Exim - with debuging message

From: sam wun (sam dot wun at authtec dot net)
Date: Sun Nov 07 2004 - 23:42:43 EST

  • Next message: sam wun: "Re: Authenticator doesn't work - with debugging msg."

    Hi,

    I used exim -d+auth -bh tester for testing the smtp auth and found some
    strange value in the set_id tags, here is the complete debugging message:

    #encode "\0bob at mydom dot com\0bob at mydom dot com"
    AGtldmluLmxlZS5jb20Aa2V2aW4ubGVlLmNvbQ==

    # exim -d+auth -bh 127.0.0.1
    Exim version 4.43 (FreeBSD 5.3) uid=0 gid=0 pid=16139 D=fbb95cfd
    Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
    Support for: iconv() IPv6 PAM Perl OpenSSL
    Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb
    dsearch nis nis0 passwd
    Authenticators: cram_md5 cyrus_sasl plaintext spa
    Routers: accept dnslookup ipliteral manualroute queryprogram redirect
    Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
    Fixed never_users: 0
    changed uid/gid: forcing real = effective
      uid=0 gid=0 pid=16139
      auxiliary group list: 0
    configuration file is /usr/local/etc/exim/configure
    log selectors = 00000ffc 00010400
    Starting Perl interpreter
    trusted user
    admin user
    changed uid/gid: privilege not needed
      uid=60 gid=6 pid=16139
      auxiliary group list: 6
    finduser used cached passwd data for cyrus
    originator: uid=0 gid=0 login=root name=Charlie Root
    sender address = root at mymaindom dot com mymaindom.net mydom.com
    sender_fullhost = [127.0.0.1]
    sender_rcvhost = [127.0.0.1]

    **** SMTP testing session as if from host 127.0.0.1
    **** but without any ident (RFC 1413) callback.
    **** This is not for real!

    host in hosts_connection_nolog? no (option unset)
    LOG: smtp_connection MAIN
      SMTP connection from [127.0.0.1]
    host in host_lookup? no (option unset)
    set_process_info: 16139 handling incoming connection from [127.0.0.1]
    host in host_reject_connection? no (option unset)
    host in sender_unqualified_hosts? no (option unset)
    host in recipient_unqualified_hosts? no (option unset)
    host in helo_verify_hosts? no (option unset)
    host in helo_try_verify_hosts? no (option unset)
    host in helo_accept_junk_hosts? no (option unset)
    SMTP>> 220 at.mymaindom.com ESMTP Exim 4.43 Mon, 08 Nov 2004 12:13:06 +0800
    220 at.mymaindom.com ESMTP Exim 4.43 Mon, 08 Nov 2004 12:13:06 +0800
    smtp_setup_msg entered
    EHLO localhost
    SMTP<< EHLO localhost
    localhost in helo_lookup_domains? no (end of list)
    sender_fullhost = (localhost) [127.0.0.1]
    sender_rcvhost = [127.0.0.1] (helo=localhost)
    set_process_info: 16139 handling incoming connection from (localhost)
    [127.0.0.1]
    host in pipelining_advertise_hosts? yes (matched "*")
    host in auth_advertise_hosts? yes (matched "*")
    host in tls_advertise_hosts? no (option unset)
    250-at.mymaindom.com Hello localhost [127.0.0.1]
    250-SIZE 52428800
    250-PIPELINING
    250-AUTH LOGIN PLAIN
    250 HELP
    SMTP>> 250-at.mymaindom.com Hello localhost [127.0.0.1]
    250-SIZE 52428800
    250-PIPELINING
    250-AUTH LOGIN PLAIN
    250 HELP
    AUTH PLAIN AGtldmluLmxlZS5jb20Aa2V2aW4ubGVlLmNvbQ==
    SMTP<< AUTH PLAIN AGtldmluLmxlZS5jb20Aa2V2aW4ubGVlLmNvbQ==
    Running saslauthd authentication for user "bob.com"
    saslauthd userid='bob.com' servicename='' realm=''
    Answer 'NO' received.
    saslauthd: access denied (NO)
    plain authenticator:
      $1 =
      $2 = bob.com
      $3 = bob.com
    expanded string: 0
    SMTP>> 535 Incorrect authentication data
    535 Incorrect authentication data
    LOG: MAIN REJECT
      plain authenticator failed for (localhost) [127.0.0.1]: 535 Incorrect
    authentication data (set_id=bob.com)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    I found this not right, the set_id should be equal to bob at mydom dot com? No
    wonder it is indicated as Incorrect auth.
    But the saslauthenticator is straight copy from the tomster.com
    freebsdcookbook:
    http://tomster.org/geek/freebsdcookbook/ar01s02.html

    I wonder what should be the correct way to define saslauthd in Exim 4.43?

    Thanks
    Sam


  • Next message: sam wun: "Re: Authenticator doesn't work - with debugging msg."





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD