Hi All, I have a big problem with exim4 on debian. I have a basic installation (Comes pre-installed on Debian). I am using the single file config. Problem is I don''t know how to ''define'' a macro? In exim4.conf.template I have: ifndef CHECK_RCPT_LOCAL_LOCALPARTS CHECK_RCPT_LOCAL_LOCALPARTS = ^[.] : ^.*[@%!/|\''''`#&?] endif I want it so that when my local users send an email to someone else in the local domain, if their local part name matches ''CHECK_RCPT_LOCAL_LOCALPARTS'' they should be denied. So I tried this: ifndef CHECK_RCPT_LOCAL_LOCALPARTS CHECK_RCPT_LOCAL_LOCALPARTS = a^[.] : ^.*[@%!/|\''''`#&?] endif So because ''a'' was specified, any mail send to say admin@whatever.com would be denied. I still believe I need to define the macro so that this acl will work. Because I don''t know the correct format of exim4.conf.localmacros I did this: #.ifndef CHECK_RCPT_LOCAL_LOCALPARTS CHECK_RCPT_LOCAL_LOCALPARTS = a^[.] : ^.*[@%!/|\''''`#&?] #.endif But again still no luck. When I said an email to admin@whatever.com it goes through quite happily. I hope someone can help me with this as I am completely stuck what to do! Many thanks to anyone who can help Andrew. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.17/661 - Release Date: 30/01/2007 23:30
On Thu, Feb 01, 2007 at 11:24:55PM -0000, Andrew wrote:> Problem is I don''t know how to ''define'' a macro?No, the problem is somewhere else.> CHECK_RCPT_LOCAL_LOCALPARTS = a^[.] : ^.*[@%!/|\''''`#&?]That''s a regular expression matching any string that has an "a" before its beginning. what you want is: CHECK_RCPT_LOCAL_LOCALPARTS = ^[a.] : ^.*[@%!/|\''''#&?] or (probably better understandeable CHECK_RCPT_LOCAL_LOCALPARTS = ^[a] : ^[.] : ^.*[@%!/|\''''#&?] Both regular expressions matche all strings that start with a dot or an "a" or contain one of the characters from [@%!/|\''''#&?] at any place. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835