[nflug] Setting up local MTA as relay questions

Mark T. Valites mark-nflug at valites.net
Thu Sep 28 13:38:43 EDT 2006


On Thu, 28 Sep 2006, JJ Neff wrote:

> I set up exim4 to act as a relay and send mail to my gmail acct suing 
> smtpauth and ssl
>
> Now however ALL messages even those for root from cron jobs try to go to 
> root at localhost.localdomain and then end up in my gmail acct when they 
> fail since localhost.localdomain is not known in DNS.  I tried following 
> some exim suggestions to get it to stop trying to search dns for 
> everything , added to hosts, etc but still no go - How can I get mail to 
> the world to still use smarthost but keep local mail local?

Including your exim config file and some example log entries that 
illustrate the problem would be extremely valuable in helping to 
troubleshoot your problem.

Without seeing that, my best guess would be that you likely just need to 
add localhost.localdomain to a domainlist that you specify the local 
domains in, and later refer to in a router that uses this.

For example, a simplified version of my exim4 config for my valites.net 
domain would be as follows:

domainlist local_domains = @:@[] : localhost : valites.net

One of my routers:

local_user:
   debug_print = "R: local_user for $local_part@$domain"
   driver = accept
   domains = +local_domains
   check_local_user
   local_parts = ! root
   transport = maildir_home

The corresponding transport:

maildir_home:
   debug_print = "T: maildir_home for $local_part@$domain"
   driver = appendfile
   directory = $home/Maildir
   create_directory
   delivery_date_add
   envelope_to_add
   return_path_add
   maildir_format
   maildir_tag = ,S=$message_size
   mode = 0600
   mode_fail_narrower = false

Integration into your config may be slightly different.
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list