nobaloney
NoBaloney Internet Svcs - In Memoriam †
These errors indicate a bad exim.pl file or a perhaps typographical error in the exim.conf file.
Jeff
Jeff
Hi All,
I have this plugin running on several servers now and it looks fine.
However yesterday and today I received some tickets from customer complaining that the reached there limit which is not possible.
When I look into the exim logfile I see messages refused to send because of limit reached. The account name that is mentioned is NOT the account of that customer ?!
I raised the limit to skip this error for now, is there anyone that has this problem also ?
regards,
Michel.
2009-03-18 17:11:57 1LjzJ7-0000r3-5W <= [email protected] H=mail-gx0-f173.google.com [209.85.217.173] P=esmtp S=1672 [email protected] T="Test" from <[email protected]> for [email protected]
2009-03-18 17:12:11 1LjzJ7-0000rJ-Uv <= [email protected] U=mail P=spam-scanned S=2050 [email protected] T="Test" from <[email protected]> for [email protected]
2009-03-18 17:12:11 1LjzJ7-0000rJ-Uv failed to expand condition "${perl{save_virtual_user}}" for virtual_user router: Undefined subroutine &main::uid_exempt called at /etc/exim.pl line 307, <DOMAINOWNERS> line 32.
2009-03-18 17:12:11 1LjzJ7-0000rJ-Uv => pkhost <[email protected]> F=<[email protected]> R=localuser T=local_delivery S=2164
2009-03-18 17:12:11 1LjzJ7-0000rJ-Uv Completed
2009-03-18 17:12:11 1LjzJ7-0000r3-5W <[email protected]>: spamcheck transport output: 2009-03-18 17:12:11 1LjzJ7-0000rJ-Uv failed to expand condition "${perl{save_virtual_user}}" for virtual_user router: Undefined subroutine &main::uid_exempt called at /etc/exim.pl line 307, <DOMAINOWNERS> line 32.
2009-03-18 17:12:11 1LjzJ7-0000r3-5W => rizwan65 <[email protected]> F=<[email protected]> R=spamcheck_director T=spamcheck S=1934
2009-03-18 17:12:11 1LjzJ7-0000r3-5W Completed
Thanks for your reply
sub check_limits
{
my $count = 0;
#find the current user
$uid = find_uid();
if (uid_exempt($uid)) { return "yes"; }
my $name = "";
my $email_limit = 0;
if (($name = getpwuid($uid))) {
if (-e "/etc/virtual/limit.$name") {
open (LIMIT, "/etc/virtual/limit.$name");
$email_limit = int(<LIMIT>);
close(LIMIT);
} else {
open (LIMIT, "/etc/virtual/limit");
$email_limit = int(<LIMIT>);
close(LIMIT);
}
if ($email_limit > 0) {
$count = (stat("/etc/virtual/usage/$name"))[7];
if ($count > $email_limit) {
die("You ($name) have reach your daily email limit of $email_limit emails\n");
}
open (USAGE, ">>/etc/virtual/usage/$name");
print USAGE "1";
close (USAGE);
chmod (0660, "/etc/virtual/usage/$name");
}
}
my $sender_address = Exim::expand_string('$sender_address');
my $mid = Exim::expand_string('$message_id');
log_bandwidth($uid,"type=email&email=$sender_address&method=outgoing&id=$mid");
return "yes"
}
hello,
i had to do updates and newly build all new.
then smtp-limiter were giving these errors ...
Warning: file_get_contents(): SAFE MODE Restriction in effect. The script whose uid is 100 is not allowed to access /etc/virtual/limit owned by uid 501 in /usr/local/directadmin/plugins/SMTP_Limiter/admin/index.html on line 133 Warning: file_get_contents(/etc/virtual/limit): failed to open stream: Inappropriate ioctl for device in /usr/local/directadmin/plugins/SMTP_Limiter/admin/index.html on line 133