Re: [exim] Getting exim to ignore the local domain when send…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: John Burnham
Datum:  
To: 'Martin Pilkington', 'exim-users@exim.org'
Betreff: Re: [exim] Getting exim to ignore the local domain when sending


>
> 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@???). 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@???
> R: system_aliases for pilky@???
> pilky@??? 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@???) - it'll give you a bit more information.

John