[nflug] Setting up local MTA as relay questions
jjneff at yahoo.com
Fri Sep 29 13:13:57 EDT 2006
Here is my Debian conf (debian builds the exim file when exim start from this conf
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
# Please note that this is _not_ a dpkg-conffile and that automatic changes
# to this file might happen. The code handling this will honor your local
# changes, so this is usually fine, but will break local schemes that mess
# around with multiple versions of the file.
# update-exim4.conf uses this file to determine variable values to replace
# the DEBCONFsomethingDEBCONF strings in the configuration template files.
# Most settings found in here do have corresponding questions in the
# Debconf configuration, but not all of them.
# This is a Debian specific file
# This is /etc/email-addresses. It is part of the exim package
# This file contains email addresses to use for outgoing mail. Any local
# part not in here will be qualified by the system domain as normal.
# It should contain lines of the form:
#user: someone at isp.com
#otheruser: someoneelse at anotherisp.com
jjneff: grendelson at gmail.com
Log outpput sending to root from jjneff using mutt.
2006-09-29 11:57:26 1GTLfy-0007nb-UJ <= grendelson at gmail.com U=jjneff P=local S=472 id=20060929165726.GA29965 at jjn.com
2006-09-29 11:57:28 1GTLfy-0007nb-UJ => root at jjn.com R=smarthost T=remote_smtp_smarthost H=gmail-smtp.l.google.com [220.127.116.11] X=TLS-1.0:RSA_3DES_EDE_CBC_SHA1:24
2006-09-29 11:57:28 1GTLfy-0007nb-UJ Completed
## ALL Mail seems to be getting grabbed by the smarthost router even though the localdomain is set as jjn.com and ! +localdomains should not accept mail as root at jjn.com.... I'm confused - I think it's right but I've been staring at it too long!
I tried to send from one user on machien to other user (jjneff is getting rename to my google account name
2006-09-29 12:06:25 1GTLof-0007w0-O6 <= lgneff at jjn.com U=lgneff P=local S=496 id=20060929170625.GA30474 at jjn.com
2006-09-29 12:06:27 1GTLof-0007w0-O6 => jjneff at jjn.com R=smarthost T=remote_smtp_smarthost H=gmail-smtp.l.google.com [18.104.22.168] X=TLS-1.0:RSA_3DES_EDE_CBC_SHA1:24
2006-09-29 12:06:27 1GTLof-0007w0-O6 Completed
Still Trying to go via Smarthost - somehow the jjn.com is not being seen as localdomains
$$$ Mail for the intenet IS going out roght so that's good
----- Original Message ----
From: Mark T. Valites <mark-nflug at valites.net>
To: Niagara Frontier Linux Users Group <nflug at nflug.org>
Sent: Thursday, September 28, 2006 12:38:43 PM
Subject: Re: [nflug] Setting up local MTA as relay questions
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:
debug_print = "R: local_user for $local_part@$domain"
driver = accept
domains = +local_domains
local_parts = ! root
transport = maildir_home
The corresponding transport:
debug_print = "T: maildir_home for $local_part@$domain"
driver = appendfile
directory = $home/Maildir
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
nflug mailing list
nflug at nflug.org
More information about the nflug