logs archiveIRC Archive / Freenode / #exim / 2010 / February / 20 / 1
Rioting_Pacifist
I need to setup a linux mail server, to hold emails when exchange servers go down then send them to exchange when it comes back up, I don't know much about MTAs so is looking to setup exim to act as a relay a sensible way to do this?
henk
Rioting_Pacifist: exim can do that for you, yes.
Rioting_Pacifist
thx
edeca
I am calling exim like so: /usr/sbin/exim -oMr dspam-checked -bS as resubmission from dspam, how can I ignore those mails in my dspam router?
As obviously, if I don't, it will loop :)
Some solutions I've seen use headers, but that's icky. Can I avoid checking headers and look for the dspam-checked submission place instead?
Aah, I can do it in the condition
(Action) goes to try
romel
Is it really bad to use helo/ehlo verification and to reject mail depend on it?
RFC say that it's incorrect, but I think it's a powerfull anti-spam stuff
petemc
if you're in a position to do so, go for it
some users dont like not getting mail, and there are badly configured servers out there
edeca
I personally score on EHLO/HELO rather than outright reject (except a few really bad HELOs)
romel: You can have a dump of my config if you like, it keeps a local score and increments for naughty stuff
romel
edeca, it would be nice :)
edeca
Sure, give me 2 minutes.
petemc: http://pastebin.ca/1803912 - what order are those transports being called in? It looks like my remote submission is being called dspam-checked, which is wrong?
         

romel
scoring, sounds interesting... I haven't thought about it
edeca
I got the idea from someone else, not mine ;)
romel: http://pastebin.ca/InlGZy13 - password 'exim' without quotes
(Action) goes to cook
romel
thanks a lot, edeca
edeca
Welcome, let me know if you need clarification (back in a bit)
romel
have a nice cooking :)
petemc
edeca: the transports are called by the routers, there is no order, as such
the routers are processed in the order they appear oin the config
edeca
Sorry, that was a bad question
In that log, it seems that the dovecot delivery is called _before_ dspam :)
Received: from dspam by mx.lionserver.co.uk with dspam-checkedid 1NivFH-0002cx-G5 for david@edeca.net; Sat, 20 Feb 2010 19:44:07 +0000
dspam definitely gets piped the mail, but doesn't seem to add headers :)
To use a transport_filter, does the relevant user need a shell?
It seems not, from the manual
FabTG
hi everyone, when i performl exim -bt ftg@machine2.mydomain.org from machine1.mydomain.org, exim try to resolve out my domain name?
how can i force it to resolve "locally"?
edeca
You mean you want machine1 to handle mail for machine2?
FabTG
not really, i just wantto send mail thru my lan
from machine1 to machine2
machine1 can send without any problem mails on itself (localhost)
but on machine2, instead of resolving within the domain, it tries to resolve out there ;)
when i comment out my remote dns server in /etc/resolv.conf, it writes ftg@machine2.domain.org cannot be resolved at this time: host lookup did not complete
edeca
Ah, OK
So on machine1, you should probably add a hosts entry for machine2
Or run a local DNS resolver on one of the machines, such as dnsmasq
FabTG
edeca: in /etc/hosts for solution 1? that's what i ve done
edeca
I'm unsure how exactly exim looks up addresses, but it should honour /etc/hosts entries. Pastebin your entire /etc/hosts for us
romel: You check the config?
romel
yep
i am currently at the stage of planning my database's structure
:)
acl checks looks clear for me
edeca
Cool. The database stuff can just be ignored really
It's the acl_c1 stuff which is interesting. My config barely scratches the surface ;)
FabTG
edeca: http://www.pastebin.com/m23dcf473
edeca: i'd like to send to serveur.lutix.org
romel
edeca, i noticed this :) btw, I gonna write some web-gui for mail maintenance so database structure is important for me now
edeca
romel: I just use phpmyadmin :)
romel
(I know it sounds like reinventing wheels)
edeca
FabTG: I'm unsure, your hosts entry looks alright. Perhaps add a manual route for it in exim?
         

FabTG
edeca: ok i will try thanks for your help
edeca
FabTG: No problems, sorry I can't help more
Does "14230 end of filtering transport writing: yield=1" mean that my transport_filter returned a status code of 1?
« prev next »