acl_check_rcpt problem and Blank FROM address

This is a discussion on acl_check_rcpt problem and Blank FROM address within the alt.comp.mail.exim forums, part of the Mail Servers and Related category; Helo everyone I recently installed a new exim-mysql server and made provision for users to log into a web ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.exim

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-24-2005
Wayne Swart
 
Posts: n/a
Default acl_check_rcpt problem and Blank FROM address

Helo everyone

I recently installed a new exim-mysql server and made provision for users to
log into a web frontend and define their own denied senders and denied
domains.

But I have discovered that some emails get delivered to some clients and the
from field is blank. (F=<> in the log file).

This causes my server to reject the email with a 550.

Here is what I have in my ACL:

deny message = Sorry, I am not allowed to deliver mail from
($sender_address) to ($local_part@$domain).
condition = ${if eq {${lookup mysql {SELECT sender_address FROM deny_senders
WHERE sender_address = "$sender_address"
AND local_part = "$local_part" AND domain = "$domain" AND active =
"YES"}}}{$sender_address}}

So I see many emails get rejected with:
Sorry, I am not allowed to deliver mail from () to (someone@somewhere.org)

Can someone please tell me what the best way of fixing this is.
Should I add another ACL above this one which will accept the email if the
FROM field has a bank value, and if so, what should it look like?


Thanks in advance

Wayne


Reply With Quote
  #2 (permalink)  
Old 11-24-2005
Wayne Swart
 
Posts: n/a
Default Re: acl_check_rcpt problem and Blank FROM address

Hi Everyone

Got it working:

accept
condition = ${if eq{$sender_address}{}}


"Wayne Swart" <wayne@za24dotcom> wrote in message
news:npCdnQ5rqqXO4hjenZ2dnUVZ_vudnZ2d@is.co.za...
> Helo everyone
>
> I recently installed a new exim-mysql server and made provision for users
> to log into a web frontend and define their own denied senders and denied
> domains.
>
> But I have discovered that some emails get delivered to some clients and
> the from field is blank. (F=<> in the log file).
>
> This causes my server to reject the email with a 550.
>
> Here is what I have in my ACL:
>
> deny message = Sorry, I am not allowed to deliver mail from
> ($sender_address) to ($local_part@$domain).
> condition = ${if eq {${lookup mysql {SELECT sender_address FROM
> deny_senders WHERE sender_address = "$sender_address"
> AND local_part = "$local_part" AND domain = "$domain" AND active =
> "YES"}}}{$sender_address}}
>
> So I see many emails get rejected with:
> Sorry, I am not allowed to deliver mail from () to (someone@somewhere.org)
>
> Can someone please tell me what the best way of fixing this is.
> Should I add another ACL above this one which will accept the email if the
> FROM field has a bank value, and if so, what should it look like?
>
>
> Thanks in advance
>
> Wayne
>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0