logs archiveIRC Archive / Freenode / #exim / 2009 / December / 15 / 1
Phurl
anyone have experience setting up a test environment for exim?
i need to deliver mail locally but with different addresses/domain
ideally would have multiple servers all running on one computer
jkroon
can somebody please point me at documentation that would explain to me how to run an external program and grab the output as I would that of a lookup?
I've seen ${run{command}} but this doesn't seem to grab the output, only success/fail based on exit code (I think).
henk
during this expansion, the standard output/error from the command is in the variable $value
from the docs of ${run
jkroon
henk, googling for ${run gets lots of other stuff, i'm trying to locate that, but from what I understand ${run{command}{$value}} should thus do what I want?
henk
jkroon: i don't know what you want, but the result will be the output and errors from the command as long as its exit status is good.
if not, the result will be empty.
if that's what you want, that's what you want :)
jkroon
${run{echo fneh}{$value}} should thus always give fneh as result right?
henk
jkroon: hm, i guess so
jkroon
ok, clearly my understanding of what's happening is wrong.
because the above gets me the empty string.
henk
hm, interesting...
${run {true}{bar}{foo}}
this yields "foo"
${run {false}{bar}{foo}}
that also
oh, ok...
${run {/bin/true}{bar}{foo}} --> bar
so try with the full path.
         

jkroon
oh, you mean it might be an execve type thing with no $PATH lookup.
(Action) checks
henk
looks like that to me
jkroon
how do you test these things? cause at the moment I'm sending email through the setup the whole time.
and yes ${run{/bin/echo fneh}{$value}} gets me what I want. The further implication is that things like piping etc won't work either.
will need to do something like ${run{/bin/sh -c "actual command"}{$value}}
thanks for your help.
henk
exim -be
jkroon
thanks.
leev
i have a server setup in /etc/relayhosts, but i still want mail coming from it to be checked again spamassassin and its not
any ideas on how to fix this?
henk
leev: understand what you are doing with that file and then fix your config...
our crystal balls are broken, so we cannot just magically tell you "your mistake is in line 10 of /etc/exim/whatever"...
leev
i understand that. however i just wasn't sure if there would be a setting as such that could be changed to make it not bypass spamassassin
henk
i don't have the impression you do understand it... how are we supposed to know what setting would have to be changed in YOUR CONFIG? we don't know your config...
leev
well i if i show you my config, would you be able to take a look?
henk
probably...
leev
thank you
http://pastebin.com/m1616fc27
i tried playing with check_message
henk
you could also use exim -bh ip.from.relayhosts.file to see what exim does...
i assume it has something to do with all those variables and stuff... don't really understand that, sorry.
leev
alright, thanks
that -bh has helped a bit
as i now see where tis being accepted
so i should be able to get somewhere from there
although, that condition is in the file alot
_Brandon_
how can I send an email from command line with exim?
henk
_Brandon_: yes, sendmail is the command.
_Brandon_
henk: I want to send a mail file from a mbox, so I tried sendmail < filename but I get this error Exim is a Mail Transfer Agent. It is normally called by Mail User Agents, not directly from a shell command line. Options and/or arguments control what it does when called. For a list of options, see the Exim documentation
henk
_Brandon_: and why don't you do that but instead tell me all that?
jkroon
_Brandon_, sendmail -f '<>' recipient@fneh < filename or sendmail -ti < filename (iirc)
_Brandon_
henk: because I don't understand what are the right options
jkroon: thanks I'll try that
         

jkroon
_Brandon_, the man page is reasonably useful :)
also, finding examples of people invoking sendmail direct isn't overly difficult.
but yea, asking is often the way to go ... sometimes there's a funny twist that isn't well known :)
_Brandon_
sendmail -ti works thanks
jkroon
_Brandon_, -ti assumes you've got appropriate To:, From: and Cc: headers, so make sure you understand what -ti does and that it's actually what you want.
_Brandon_
yes that's exactly what I wanted, since I already got the mail file, I needed to forward it from the old to the new server
jkroon
what happens in cases where there were other people Cc'ed as well?
_Brandon_
yeah that may be a problem, but in my case I just had to forward one mail with only one recipient
leev
henk: you there still?
henk
leev: yes
jkroon
right, here is to the best MTA I've ever used!
the more i use it, the more i like it.
leev
henk: on line 493 of the config, i have tried commenting that out. and then copying the lines 466,467 in there
they work, however, the acl_m1 is set to nobody instead of the url. any ideas?
alnr
given the message arrival log line 2009-12-15 07:31:18 1NKWYf-0004Dx-Fo <= bounce@myhost.com H=localhost (somehost.com) [127.0.0.1] P=smtp S=2681 , where is exim getting somehost.com from?
jkroon
the helo line issued by the connecting agent?
alnr
jkroon: ah, i think so, thanks
narayan44
hi
I got a problem with exim4, I can seem to get local mail to work
I run debian 5
default exim4 config
petemc
what do the logs say?
narayan44
hold on
its in /var/log mail.*
right
petemc
no
narayan44
ahh
petemc
exim4 -bP log_file_path
narayan44
ok found
it says it delivers it
petemc
dont paraphrase
narayan44
2009-12-15 11:28:01 1NKaFl-0001Lr-20 <= root@green.local.lan U=root P=local-esm$
2009-12-15 11:28:01 1NKaFl-0001Lr-20 => narayan <narayan@green.local.lan> R=loc$
2009-12-15 11:28:01 1NKaFl-0001Lr-20 Completed
2009-12-15 11:28:01 1NKaFl-0001Lr-20 <= root@green.local.lan U=root P=local-esmtp S=571 id=alpine.DEB.1.10.0912151127400.5187@green.local.lan
2009-12-15 11:28:01 1NKaFl-0001Lr-20 => narayan <narayan@green.local.lan> R=local_user T=maildir_home
2009-12-15 11:28:01 1NKaFl-0001Lr-20 Completed
rather
petemc
so it delivered it to a maildir
narayan44
yeah
phx
no
it is delivered using a transport called maildir_home :)
narayan44
I checked Maildir on narayan
phx
it's just the name of the transport, can be anything
narayan44
its in the Maildir dirrectory under new
I checked
petemc
phx: that was a useless addition to the conversation
narayan44
but niether alpine, nor mail can read it
both tell me I got no mail
phx
petemc, might be the case, yes. i've met several times situations like this. the user assumed things were going according to whatever was told, and actually the config was different underneath
narayan44
ok it works now
I just had to configure exim4 to user /var/mail instead of user dirrectories
I guess thats a glitch with the debian exim4-config package
small configuration error
« prev