
pilky at mcubedsw
Feb 10, 2010, 2:01 AM
Post #3 of 3
(1224 views)
Permalink
|
|
Re: Getting exim to ignore the local domain when sending
[In reply to]
|
|
Thanks so much, that worked perfectly! Martin On 10 Feb 2010, at 9:13 am, John Burnham wrote: > > >> >> I'm having some problems with exim with my setup. Basically I >> have a VPS running Ubuntu. My mail is being handled via a >> separate service (fastmail). My MX record is pointing to >> them. I need the ability to send emails from web scripts >> which is why I installed exim, unfortunately I have an issue >> getting exim to look at the MX record for emails to myself >> >> If I try to send an email from my VPS to a non @mcubedsw.com >> domain name then is sends fine (eg echo "Hello" | mail -s >> "Test" foo [at] bar). However, if I send an email to an >> @mcubedsw.com domain then it doesn't send it. Instead it says >> that it is an "unrouteable address". For example: >> >> exim -bt pilky [at] mcubedsw >> R: system_aliases for pilky [at] mcubedsw >> pilky [at] mcubedsw is undeliverable: Unrouteable address >> >> I've tried to remove every reference to mcubedsw.com from >> config files and spent hours reading docs and googling >> solutions to no avail. I'm a bit of a reluctant server admin >> so I'm not exactly teeming with experience. Does anyone have >> any advice on how to get exim to send emails to my local >> domain to the server listed in the MX record for it? >> > > You probably need a router telling exim how to handle mail sent to mcubedsw.com - routers are run in order so stick something in before the dnslookup router - probably a manualroute router if your mail is handled by another system: > > new_router: > driver = manualroute > transport = remote_smtp > domains = mcubedsw.com > route_list = * host.that.accepts.mail.for.your.fastmail.setup > > Give that a go. Also you might want to stick a -d in your command line (exim -d -bt pilky [at] mcubedsw) - it'll give you a bit more information. > > John -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
|