Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Getting exim to ignore the local domain when sending

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


pilky at mcubedsw

Feb 9, 2010, 9:21 AM

Post #1 of 3 (1255 views)
Permalink
Getting exim to ignore the local domain when sending

Hey all,

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?

Thanks

---------------------------------
Martin Pilkington
Writer of Weird Symbols
pilky [at] mcubedsw


--
## 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/


John.Burnham at admin

Feb 10, 2010, 1:13 AM

Post #2 of 3 (1226 views)
Permalink
Re: Getting exim to ignore the local domain when sending [In reply to]

>
> 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/


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/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.