logs archiveIRC Archive / Freenode / #exim / 2009 / December / 22 / 1
CoolCold
hi
guys, i do not understand where and when alias (from /etc/aliases) expantion happens, can u tell me/give some url?
if i do echo test|mail -s bla root, i may have expantion and may not have...trying to figure out where decision is made
uh, exim -d helped a lot, issue is in routers config
Yagger
In Exim, how do I forward all mails for a specific domain to a specific smtp host? (The examples I found only set up smart-host relaying :( )
arekm
what do you mean by "forward" ?
Yagger
I want to send all mails something.com to an explicit IP Address.
phx
Yagger, exim.org->documentation. you need the routers, like generic router options, and dnslookup router (well, can be done with that), and smtp transport. and access control lists chapter also, to set up the ACLs for it
Yagger
phx: Thanks!
alnr
i'm getting an error "lowest numbered MX record points to local host" for the following:
router_local: driver=dnslookup; domains = +local_domains; transport=local_smtp;no_more
transport_local_smtp: driver=smtp;hosts=127.0.0.1;port=25;allow_localhost. (exim is on 26)
adegtyarev
self = pass
on router_local
brrrrr
alnr
?
         

adegtyarev
what i'm talking...
probably self = send should work for you if I'm not mistaken with your config
alnr
adegtyarev: it seems to work fine as is with exim -bt -d, but not live.
that made me think it was a transport problem. let me check i think i have self send already
adegtyarev
i'm thing that the lowest numbered MX is a router related issue
alnr
hmm, -bt -d now says lowest numbered MX record points to local host: myhost.com configured to try delivery anyway. so i'll have to test it live
CoolCold
hm
adegtyarev: let's beer a bit?;)
adegtyarev
CoolCold: ouch sorry man, not now i need to go :-)
CoolCold
ah, ok, c ya next time then
adegtyarev
CoolCold: AFAIK skv@ will gather a big tusse to NY celebrate
this sould happen very soon i believe
CoolCold
mm..may be we'll meet there. relay me info about it when u get some news
adegtyarev
ok. /away
alnr
hmm i still get lowest numbered MX record points to local host: someone.myhost.com (while verifying <blah@someone.myhost.com> from host localhost (x) [127.0.0.1])
CunningPike
alnr: What does 'dig <domain> MX' from the MTA console give you?
alnr
CunningPike: the lowest mx is indeed the machine exim is on
petemc
if you want to to deliver it locally, put the domain in local_domains
CunningPike
alnr: OK - well, that usually happens when you use the DNS router to deliver mail to a domain that the MTA is responsible for
What he said
alnr
petemc: i actually want it to treat the address as a remote adddress like any other - with the mta on port 25 as the remote destination
petemc
why?
and when it delivers it to itself on port 25, what would you expect it to do then?
alnr
the 1st MTA will remap that address to a remote address
petemc
1st MTA?
alnr
the primary on port 25. the setup is something like a spamgourmet. eg foo@spamgourmet.org is fielded by the primary mta, it remaps the addres to joe@gmail.com and asks exim on 26 to send it out. but for internal requests to joe@spamgroumet is fielded by exim. exim sends it to primary mta which does its remapping to joe
         

petemc
you could use a manualroute in exim i guess
its not something ive done
alnr
yes manualroute seems to pop up in my researches.
i have had this working in the past using allow_localhost, so i'm perplexed why exim is still balking on it. maybe i didnt use dnsroute driver
(in case i wasnt clear, another mta is on 25, exim on 26, trying to cause exim to route an address whose domain is the box, to the other mta)
whose 1st mx of the domain is the box*
the reason is that internal requests, eg the mail command, php code, etc will generally target exim on port 26, and not the primary mta on 25