logs archiveIRC Archive / Freenode / #exim / 2015 / August / 13 / 1
linuxthefish
i'm being helpful and letting people email through me!
free email provider ;)
henk
linuxthefish: oh, cool, can I have the ip or hostname?
linuxthefish
nooo lol
henk
why not?
linuxthefish
nah it's for a friend, he wanted a relay setting up - but mail won't be relayed just accepted
henk
soooo, its not a relay? i.e. not what your friend wanted? i.e. not an open relay?
linuxthefish
i'm not sure
it's an open relay and people use it, but their emails don't go through and just get logged
well not logged, but some packet capture
bjornar
linuxthefish, so some kind of honeypot?
linuxthefish
i think, i don't ask
he does the same thing with SSH also
         

bjornar
whois he
Is it possible to use arguments in exim macros now? like the proposal in https://github.com/Exim/exim/wiki/ConfigurationImprovements
jgh_
no
bjornar
ok.. will use acl
is it a variable for $local_part@$domain ?
jgh_
pardon?
bjornar
the recipient
jgh_
what about it?
bjornar
do I need to use $local_part@$domain, or does it exist a single variable that expands to same?
jgh_
if you really need an expansion you need that combination. But sometimes the "recipients=" ACL condition is more appropriate
bjornar
ok, so could use a MACRO then..
RCPT_TO
jgh_, when I "RCPT TO:<prvs=oaoitsqsmg=test@foobar.org>"
local_part expands to test@foobar.org
or $local_part@$domain does...
hrmm..
How can I get the "raw" data?
jgh_
$smtp_command
bjornar
huh
not _that_ raw :)
jgh_
$smtp_command_argument ?
bjornar
jgh_, seems the problem is when a $local_part containg = is assigned to a macro, RCPT_TO=$local_part@$domain
only the last part is kept.
how can I prevent this from happening?
jgh_
how were you using the macro? The problem might be there rather than the definition
bjornar_
I am trying to use warn to do some pretasks (setting acl_m_* variables) in a non delivery acl.. but this does not work..
is there any verb that means something like: just do this
anyone?
jgh_
yup, use "warn"
but what do you mean by "non delivery acl"?
bjornar_
${acl{...
some reason warn does not work here..
jgh_
called from where?
bjornar_
transport
another thing .. in an ${if and{...}{...}{...}} .. are the expansions done in order?
henk
setting such variables using warn works, I do it in my config &
         

bjornar_
henk, you need to read the whole thing.. it sure works in "normal" acl's
..do it all the time
jgh_
... but not when called from a transport
it certainly won't work for transferring info from one transport to another (or anywhere else). I'm unsure if it'll work within a single transport; never tried it
Where were you trying to use the value, once set?
bjornar_
just in the same acl
henk
hm, ok, sorry, never mind then & I didnt know one could call an acl from a transport. Does anyone happen to know where that is documented?
bjornar_
probem is I am not able to set it .. unless I use a trick, since I cant use warn as I usually do
jgh_
hmm. That has the best hope of working. Can you pastebin that acl?
bjornar_
${acl is "normal" expansion..
which means you can more-or-less make macros with arguments
${acl{some_acl_name}{$sender_address}{...}}
jgh_
well, it's more of a function-call than a macro
no, not the call, the definition
bjornar_
jgh_, yeah sure.. but the need for this is for me because macros dont take args
jgh_
there's probably an easier way; tell us the big picture. What are you trying to do?
bjornar_
jgh_
you've read section 51 in the acl chapter? Doesn't do what you need?
bjornar_
yeah.. but this question remains anyway
jgh_
you realise that you might be trying to set the return-path to the string "true" ?
(when that redis lookup fails)
bjornar_
no
Thats actually just a mockup for you guys.. not the real way
henk
which basically means you are wasting your and our time (;
bjornar_
« prev