These three settings are important in exim.conf:

qualify_domain = ihug.co.nz
qualify_recipient = localhost
local_domains = localhost

Assuming your computer does not have a fully-qualified domain name (most 
dial-up users don't).
If you do have a FQDN, use that instead of localhost.  So, people who want to 
send mail to you
will send it to [EMAIL PROTECTED]  You will use fetchmail to relay the mail 
from your POP account
to the local machine (tell fetchmail that you want to send it to [EMAIL 
PROTECTED]).  You will send
mail to local users by addressing it to [EMAIL PROTECTED] or just user, and the 
mail will be routed
locally.  You will send mail to non-local users by addressing it to [EMAIL 
PROTECTED], and
the recipient will see [EMAIL PROTECTED] in the "From:" field.  Does that sound 
like what you wanted?

Marc

----------
Marc Mongeon <[EMAIL PROTECTED]>
Unix Specialist
Ban-Koe Systems
9100 W Bloomington Fwy
Bloomington, MN 55431-2200
(612)888-0123, x417 | FAX: (612)888-3344
----------
"It's such a fine line between clever and stupid."
   -- David St. Hubbins and Nigel Tufnel of "Spinal Tap"


>>> Matthew Gregan <[EMAIL PROTECTED]> 06/08 10:21 AM >>>
Greetings...

I've tried searching the debian-user list archive already, and found some 
messages which probably contain the answer I'm after, but it seems that the 
actual messages aren't available, so I can't read them... (It was working a 
week ago when I last tried, but not yesterday or today...)

Anyway, this should be an easy problem to solve for somebody. I've played 
around with eximconfig a bit, but I can't find how to solve the problem.

I'm using exim and fetchmail for my mail delivery. Exim is setup using option 2 
in eximconfig (recommended for dialup systems). Everything is working fine, I 
can receive email and send it fine, except if I try and send email to people on 
my ISP. The problem is that outgoing emails have their addresses rewritten as 
@ihug.co.nz, and my mail system classes these emails as local, so it tries to 
deliver them on my machine and fails.

I thought I'd fixed this by stopping ihug.co.nz being considered local, but 
then email generated by cronjobs and such were finding their way to my provider 
([EMAIL PROTECTED] - since the outgoing mails were having their addresses 
rewritten).

I think it should be a simple fix to solve this, but I don't know what it is... 
I've checked howtos but they only seem to cover other MTAs. :-/

Thanks in advance.
-- 
Matthew Gregan                                [EMAIL PROTECTED] 


-- 
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to