[Exim] Syntax error XXXX, authentication broken

Top Page
Delete this message
Reply to this message
Author: Patrick D. Avery
Date:  
To: exim-users
Subject: [Exim] Syntax error XXXX, authentication broken
After moving my Exim server from one co-location facility to another. I
began to see the following errors. Any ideas as to what they are?

[root@frits root]# cat /var/log/exim_mainlog | grep XXX | more
2002-01-10 18:08:27 SMTP syntax error in "XXXX invincible.cnchost.com
H=invincible.concentric.net [207.155.248.15.36317]: unrecognized command
2002-01-10 18:08:30 SMTP syntax error in "XXXX irresistable.cnchost.com"
H=irresistable.cnchost.com [207.155.248.34.19906]: unrecognized command
<cut>

Also, after bringing the server back up I can't seem to get the server
to authenticate external users unless I specifiy auth_hosts = *. The
way I have it configured now is really terribe, I have just set
host_accept_relay = *. Before the reboot I had host_accept_relay set to
localhost and auth_host_accept_relay = *. So, my external users that
had email accounts on the machine could relay if they authenticated.
External users that had no email accounts could only relay to the local
domains, and localhost could send regardless of authentication.

I have attached a copy of the pertinent sections of my configure file.

One last note, the authentication configuration seems to work since if I
set auth_hosts = * I do authenticate and relay. Thanks for any help.

######################################################################
#                  Runtime configuration file for Exim               #
######################################################################
######################################################################
#                      MAIN CONFIGURATION                            #
######################################################################
rfc1413_query_timeout = 0s
qualify_domain = collegeworks.com
hide mysql_servers = localhost/NSGFrits2002/root/blueg0nz0
forbid_domain_literals
never_users = root:bin:exim
host_accept_relay = *
#host_auth_accept_relay = *
#debug_level = 10
log_subject
log_smtp_syntax_errors
log_smtp_connections
log_smtp_confirmation
log_sender_on_delivery
log_rewrites
log_refused_recipients
log_received_sender
log_received_recipients
log_ip_options
log_incoming_port
log_arguments
log_all_parents
log_level = 6
host_lookup = *
receiver_verify
sender_verify
rbl_domains = blackholes.mail-abuse.org
ignore_errmsg_errors_after = 2d
timeout_frozen_after = 7d
perl_at_start
perl_startup = do '/usr/exim/exim_start.pl'
message_filter = /usr/exim/outfilt
######################################################################
#                   AUTHENTICATION CONFIGURATION                     #
######################################################################
plain:
  driver = plaintext
  public_name = PLAIN
  server_condition = "${if and { \
                        {!eq{$2}{}} \
                        {!eq{$3}{}} \
                        {eq{$3}{${lookup mysql{SELECT password FROM
users WHERE username='$2'}{$value}fail}}} \
                        } {yes}{no}}"
  server_set_id = $2


login:
  driver = plaintext
  public_name = LOGIN
  server_prompts = "Username:: : Password::"
  server_condition = "${if and { \
                        {!eq{$1}{}} \
                        {!eq{$2}{}} \
                        {eq{$2}{${lookup mysql{SELECT password FROM
users WHERE username='$1'}{$value}fail}}} \
                        } {yes}{no}}"
  server_set_id = $1


# End of Exim configuration file