[exim] Can't send email to external mail server

Top Page
Delete this message
Reply to this message
Author: sam wun
Date:  
To: exim-users
Subject: [exim] Can't send email to external mail server
Hi,

Since there was problem with smtp authtentication thru saslauthd,
therefore I recomipled Exim4.42 with cyrus-sasl enable.
With cyrus-sasl enabled, smtp authenticaiton success, and I can send
email to local user as well.
But I can't send email to external mail server (non local user).

The change of the Authentication in the exim/configure file is look like
as follow:

sasl_cram_md5:
        driver = cyrus_sasl
        public_name = CRAM-MD5
        server_set_id = $1


sasl_plain:
        driver = cyrus_sasl
        public_name = PLAIN
        server_set_id = $2



When sending email to external mail server, the message in the mainlog file is:
2004-10-25 15:02:08 1CLyrl-0002oX-0i <= sam.wun@??? H=(localhost) [192.168.4.254] P=esmtpa A=sasl_cram_md5:sam.wun@??? S=872

Note, a successful sent email should have a log message ended as "<message_id> Completed". For this outgoing email, I don't see its log msg is ended in this way.

The trace info of this email is shown as below:
# exim -d+all-memory 1CLyrl-0002oX-0i
15:11:24 10921 Exim version 4.43 (FreeBSD 5.3) uid=0 gid=0 pid=10921 D=fffdffff
Probably Berkeley DB version 1.8x (native mode)
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
15:11:24 10921 changed uid/gid: forcing real = effective
15:11:24 10921 uid=0 gid=0 pid=10921
15:11:24 10921 auxiliary group list: 0
15:11:24 10921 configuration file is /usr/local/etc/exim/configure
15:11:24 10921 log selectors = 00000ffc 00010400
15:11:24 10921 trusted user
15:11:24 10921 admin user
15:11:24 10921 changed uid/gid: privilege not needed
15:11:24 10921 uid=60 gid=6 pid=10921
15:11:24 10921 auxiliary group list: 6
15:11:24 10921 Cyrus SASL knows about: NTLM:LOGIN:ANONYMOUS:PLAIN:GSSAPI:OTP:DIGEST-MD5:CRAM-MD5
15:11:24 10921 Cyrus SASL driver sasl_cram_md5: CRAM-MD5 initialised
15:11:24 10921 Cyrus SASL knows about: NTLM:LOGIN:ANONYMOUS:PLAIN:GSSAPI:OTP:DIGEST-MD5:CRAM-MD5
15:11:24 10921 Cyrus SASL driver sasl_plain: PLAIN initialised
15:11:24 10921 originator: uid=0 gid=0 login=root name=Charlie Root
15:11:24 10921 sender address = root@??? mydomain.net
15:11:24 10921 set_process_info: 10921 accepting a local non-SMTP message from <root@??? mydomain.net swamc.com>
15:11:24 10921 Sender: root@??? mydomain.net
15:11:24 10921 Recipients:
15:11:24 10921 1CLyrl-0002oX-0i
15:11:24 10921 search_tidyup called

sorry, may be I m using an incorrect commandline for debugging. Any other suggest is very welcome.

Thanks
Sam