[Exim] (no subject)

Top Page
Delete this message
Reply to this message
Author: Roman Hlynovski
Date:  
To: exim-users
Subject: [Exim] (no subject)
Hello there!!!

I'm trying to authenticate users from perl program and getting
error:
failed to expand condition"${perl{main}{--user=$local_part@$domain}}"
for pam_director director: Undefined subroutine &main::main called.

what could be wrong? exim is compiled with perl support, exim config
is:

forbid_domain_literals
relay_domains =
no_relay_domains_include_local_mx
no_relay_match_host_or_sender
host_accept_relay = /etc/mail/relay
host_lookup = *
ignore_errmsg_errors_after = 1d
local_domains = /etc/mail/domains
log_level = 6
never_users = root
primary_hostname = mail.domain.com
sender_address_relay = /etc/mail/domains
sender_reject = /etc/mail/spammers
smtp_accept_max = 1000
smtp_accept_max_per_host = 100
smtp_banner = ESMTP
smtp_receive_timeout = 1m
timeout_frozen_after = 7d
trusted_users = mail
perl_at_start = yes
perl_startup = 'do /usr/sbin/ucheck.pl'

sender_verify
receiver_verify
local_from_check

headers_sender_verify
headers_sender_verify_errmsg
log_received_recipients
log_received_sender
log_smtp_syntax_errors



# TRANSPORTS CONFIGURATION
.....
.....
# DIRECTORS CONFIGURATION

director:
condition = "${perl{main}{--user=$local_part\@$domain}}"
fail_verify
driver = smartuser
transport = local_delivery

.... etc

the script is ok and doesn't produce any errors at all during
execution from shell.

--
...WBR, Roman Hlynovski (dr@???)