logs archiveIRC Archive / Freenode / #exim / 2009 / December / 30 / 1
cweiske
Hi. We are using exim 4.6.7 on suse 10.3 in combination with xams. when trying to use a filter like http://paste2.org/p/585816 , my mail gets written to /var/mail/netresearch/christian.weiske//var/mail/netresearch/christian.weiske/.aida/ - twice the home directory! I do not understand why this is doubled. does someone have an idea?
nutmeg_
cweiske: How does the xams_address_file transport look like?
cweiske
http://xams.svn.sourceforge.net/viewvc/xams/xams/branches/0.0.x/config/exim4/exim-transports.conf.in?revision=1142&view=markup
exactly the same, except that MAILDIR is /var/mail/
http://paste2.org/p/585827
could it be that transport_home_directory is always prepended ?
nutmeg_
cweiske: I think so, yes. Because of create_file = belowhome.
cweiske
so what is the correct solution? which variable needs to be nulled?
nutmeg_
cweiske: I honestly cannot tell since I am not familiar with xams. Could you ask the xams-authors?
cweiske
(Action) thought that's primarily an exim issue
setting create_file to anywhere and removing directory= in the transport does not help
nutmeg_
cweiske: The big question is what kind of data the xams authors expect to be returned by the SQL lookup used for data=...
cweiske
it contanis the filter file
the xams frontend has a textarea there
and the filter is actually executed
         

nutmeg_
cweiske: And you are using absolute paths in the filter file, while yams expects relative ones, perhaps?
cweiske
as you see in http://paste2.org/p/585816
it's a relative path
ok, setting the router_home_directory to / in the router config does work
but it does not seem to be a clean solution
it delivers to /var/mail/netresearch/christian.weiske///.aida/ now
nutmeg_
I would suggest running the whole thing in debugging mode, to see where stuff goes wrong.
(Action) thinks MAILDIR should be /var/mail instead of /var/mail/. (I do not think this is the cause, though.)
cweiske
nutmeg_, thanks for helping
HVittel
I know this is rather VAGUE, but I'm fairly clueless with exim. Is there any specific things I should look for when trying to figure why SMTP would be incredibly slow? CPU is fine. Ping between me and server seems okay. Memory is fine. Load is fine. SMTP? Really slow.
nutmeg_
HVittel: What exactly is slow?
HVittel
Using ThunderBird IE, the connected stage is pretty quick. The delivering mail part takes eons. (by which I mean: minutes, it should really be just a few seconds)
Not a lot to go on, I know. I'm starting to wonder if other things are afoot with this server.
nutmeg_
It could be either DNS or rfc1413_query_timeout.
HVittel
DNS issues, hm, hadn't thought to check that. Should really be the first port of call I guess. Will check into both the suggestions :)
nutmeg_
HVittel: good luck.
HVittel
I set the rfc timeout to 0, and dns lookups seem pretty fast. Any other possible areas I should look at?
Ah, maybe this is why: "817 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (7 more tries)
nutmeg_
HVittel: Multiple MTAs running?
HVittel
Not that I know of, but I'm starting to wonder. :)
Telnetting to port 25 definitely gets me exim
how strange
Aprogas
Some MTA split their MUA part to a different port number.
Or MSA or whatever it is called.
HVittel
Hm, odd. :) I tried to go through the process manually with telnet.
when it came to entering "." on its own and hitting enter, it didn't finish.
Aprogas
Did you provide the right headers?
I think Subject is required, and From might also be.
HVittel
did helo compname - mail from: my email. rcpt to: my other email. data typed lots, hit enter, '.', hit enter, and it seems just to sit there.
This time around, it eventually said 250 OK id=1NPxEt-0000Rh-65
didn't queue it though?
Aprogas
Some mailservers purposely delay a bit to hog the resources of spammers.
HVittel
Hm. Is there a specific part of the configuration I should look for to remove the delay (or check if that's what it is doing)
Aprogas
I don't know, I don't use exim.
         

HVittel
*grin* Fair enough. Is there friendlier alternatives you'd suggest?
Aprogas
All mailservers require extensive reading if you want to do fancy stuff.
I use mostly use postfix myself, but have also used sendmail until long after everybody else stopped using that.
I am a stubborn person, I also still use bind.
HVittel
nothing wrong with that, especially if you know it well :)
Guess I finally found the culprit. commented out acl_smtp_data and things are fast, heh.
Aprogas
I highly recommend making your mailserver annoying to spammers.
Every 5 seconds extra they spend talking to your mailservers, is one of their sockets in use for an extra 5 seconds.
HVittel
It's behind a firewall anyway afaik so only people from specific IPs should be gaining access
Aprogas
If they normally can push 1 mail per second on that socket, with that 5 seconds, you have blocked 5 spam mails.
Well, if the firewall is already doing ACL-type stuff, I guess doing it in the mailserver is superfluous.
HVittel
(it's a company mailserver, that we've only made annoying to us. I think!)
Hm, not entirely closed. we should really be locking down port 25 more effectively than we are.
ryann
i've recently reconfigured my exim4 installation to allow for relay through my ISP's SMTP.. but still wish for local mail..
dc_other_hostnames='localhost, alf'
however.. only mail to @localhost is locally delivered
exim -bt ryan@localhost shows router = local_user, transport = mail_spool
whereas
exim -bt ryan@alf
router = smarthost, transport = remote_smtp_smarthost
what must i do to retain local mail?
nutmeg_
ryann: what is dc_eximconfig_configtype set to?
ryann
dc_eximconfig_configtype='smarthost'
nutmeg_
ryann: Shouldn't the list items in dc_other_hostnames be separated by semi-colons instead of commas?
ryann
the reconfiguration script generated that output
i'll try it though
yes
that seems to have worked
:)
thank you very much
nutmeg_
np.
ryann
thanks again.. happy new year!
« prev