Error: exim logged Undefined subroutine &main::user2uid called. LOG: MAIN

Posted on Updated on

EximMy email server was not delivering any of the email from the domains hosted on my Cpanel server, I was  checked the exim log, it shows some ACL (Access Control List)rules from the exim configuration. This will and also I tried to send email manually but the same error will logged. After googling for a minute I found the solution for this.

It is because for exim  unable to read configuration characters. simple solution to fix this just  rebuild configuration onceagain and copy exim.pl to /etc, now everythings looks fine

Exim error :
LOG: MAIN
cwd=/root 4 args: /usr/sbin/exim -i -v testemail@gmail.com
LOG: MAIN REJECT
F=<root@darkmatter.dnsprotect.com> rejected by non-SMTP ACL: failed to expand ACL string "${if eq{$originator_uid}{${perl{user2uid}{nobody}}}{1}{0}}": Undefined subroutine &main::user2uid called. LOG: MAIN
cwd=/var/spool/exim 8 args: /usr/sbin/exim -v -t -oem -oi -f <> -E1UY3r2-000

Rebuilding exim configuration:

root@server-web [~]# /scripts/buildeximconf
Configuration file passes test! New configuration file was installed.
/etc/exim.pl.local.build syntax OK
Enabled system filter options: attachments|spam_rewrite
..........
...
........
/etc/exim.pl.local installed!
razor2 is not installed, disabling it in SpamAssassin to save memory
pyzor is not installed, disabling it in SpamAssassin to save memory
SPF is disabled in exim or unavailable, enabling SPF for SpamAssassin
Refreshing SMTP Mail protection.

Some it is necessary to copy the exim.pl to /etc, because the script will remove the file while rebuilding. check the file availability before executing this step.

root@server-web [~]# cp -rpf /etc/exim.pl.local /etc/exim.pl

Verify  before restarting exim,

root@server-web [~]# mail -s "Testemail please ignore" "testemail@gmail.com" -- -f "testemail@example.com"
Test email please ignore
.
Cc:

Hope this will help you.

Advertisements

One thought on “Error: exim logged Undefined subroutine &main::user2uid called. LOG: MAIN

    Francis Boudreau said:
    May 31, 2016 at 8:25 pm

    Thank you so much for this solution. I Googled for hours, but only this blog post gave the right thing to do. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s