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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 > > |