Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-23-2007, 10:32 PM   #1
Registered: Mar 2007
Location: Utah
Distribution: Gentoo Linux (3.0.6-gentoo)
Posts: 222

Rep: Reputation: 32
Unhappy Where to Add Relay Domains Exim4?

I am trying to allow and add to my exim4 server the domain to allow for pager notifications. But I am unable to find the file where the domains need to be posted. I have looked into config files and keep seeing a refrence to +relay_to_hosts and +relay_from_hosts.

I am using Debian Etch and here is the resuslt of the log

2007-04-23 21:20:39 1HgBa3-0001ml-OJ <= U=root P=local S=361
2007-04-23 21:20:55 1HgBa3-0001ml-OJ ** R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after RCPT TO:<>: host []: 553 sorry, relaying denied from your location [] (#5.7.1)
2007-04-23 21:21:01 1HgBaP-0001n8-2t <= <> R=1HgBa3-0001ml-OJ U=Debian-exim P=local S=1375
2007-04-23 21:21:01 1HgBa3-0001ml-OJ Completed
2007-04-23 21:21:21 1HgBaP-0001n8-2t => R=smarthost T=remote_smtp_smarthost []
2007-04-23 21:21:21 1HgBaP-0001n8-2t Completed

On a note I have edited this log entry above before posting to not have my domain or number to prevent spamming from spammers.

Anyway.. All I want to do is allow my mail server to send an email to the domain. Any help would be great.

On an added note, it seems that anything that is not hosted my is unable to be relayed by my server.

Last edited by richinsc; 04-23-2007 at 10:43 PM.
Old 04-23-2007, 11:01 PM   #2
LQ Newbie
Registered: Apr 2007
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
this is from my exim.conf

domainlist relay_domains = lsearch;/etc/localdomains : \
hostlist relay_hosts = lsearch;/etc/relayhosts : \

hope that helps
Old 04-23-2007, 11:31 PM   #3
Registered: Mar 2007
Location: Utah
Distribution: Gentoo Linux (3.0.6-gentoo)
Posts: 222

Original Poster
Rep: Reputation: 32
Well I added those but every time I restart exim I still get same log result. Exim was installed and configured using apt-get and debconf for configuring. So where these actual files are being stored I don't know.. If I would have built this from source and written my own config files I could maybe get this to work. This is what my config files lists.

# List of recipient domains to relay _to_. Use this list if you're -
# for example - fallback MX or mail gateway for domains.
domainlist relay_to_domains = MAIN_RELAY_TO_DOMAINS : \

# List of sender networks (IP addresses) to _unconditionally_ relay
# _for_. If you intend to be SMTP AUTH server, you do not need to enter
# anything here.
hostlist relay_from_hosts = MAIN_RELAY_NETS : \
The only things I added to config is
: \ lsearch;/etc/relayhosts 


: \ lsearch;/etc/secondarymx
If I could just figure out where these files are being refrenced then I could add the domains to it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exim4 SMTP Relay richinsc Debian 4 03-25-2008 07:36 PM
Exim4 for multiple domains - some problems bence8810 Linux - Server 2 01-28-2007 09:02 AM
exim4 relay upload-3 Linux - Networking 0 06-28-2006 03:49 PM
Exim4 relay to hosting prob ALInux Debian 1 05-08-2006 04:07 PM
Exim4: Two accounts same name, different domains? jonwatson Linux - Software 12 02-02-2005 09:19 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration