1

all!

I'm configuring exim mail-server and I'm a newbie to it. It is not my first mail server configuration, but first of exim.

So far, I have read different config docs (e.g. this one) in the Internet and an exim's configuration manual, as well. And now it is more clear to me. But one issue is not clear yet - it is concerned .ifdef, .ifndef directives.
For example,

.ifdef CHECK_MAIL_HELO_ISSUED
  deny
    message = no HELO given before MAIL command
    condition = ${if def:sender_helo_name {no}{yes}}
.endif


As far as I saw from the manual, this clause means if the macros CHECK_MAIL_HELO_ISSUED is declared, then followed actions will be applied. But if it is not present anywhere, the actions will not be applied.
And if I want to apply that acl (it is a part of acl), it is better to use that without .ifdef directive.

So, please, correct me if I'm wrong,

acd
  • 15
  • 7
  • Actually, I was wrong a little. `.ifdef` defined the MACRO with the name given in the string after `.ifdef` with its "attributes". In this case, _deny sender without HELO given_. – acd Nov 23 '16 at 13:21

1 Answers1

1

You could either just delete the .ifdef and .endif directives or define CHECK_MAIL_HELO_ISSUED = yes somwhere logically 'before' that deny statement.

geruetzel
  • 134
  • 6
  • 1
    Thank you, anyway. Though this question isn't more actual to me, I hope this could help someone else. – acd Jan 27 '17 at 05:32