RE: [Exim] differentiate between local and outside users

Góra strony
Delete this message
Reply to this message
Autor: deshmukh
Data:  
Dla: exim-users
Temat: RE: [Exim] differentiate between local and outside users
-----Original Message-----
From: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
Sent: Wednesday, August 13, 2003 2.18 PM
To: deshmukh@???
Cc: exim-users@???
Subject: Re: [Exim] differentiate between local and outside users


On Tue, 12 Aug 2003 deshmukh@??? wrote:

> i am new to linux and exim. so, my questions may appear to be basic.


Which Linux distribution? Which release of Exim?

> my exim set-up was done using exim-config smarthost option.


Sounds like Debian, in which case you are probably using Exim 3. The
people on this list are mostly Exim 4 users these days, and only a few
are familiar with the way Debian sets up Exim 3. For a start, I am
not... so any comments I make are "generic Exim comments", and may not
apply precisely to your set-up.

it is debian woody. exim version that shipped with woody. well, sorry if i
am posting to the wrong group. but thats the only group i could find on
exim.org! by the way, are there so many basic changes implemented between
exim3 and exim4?

> i also added these entries
>
> sandip: sandip@???
> father: sandip@???
> daughter: sandip@???
>
> in /etc/email-addresses.


I presume "sandip@???" is the email address that your ISP
supplies, and I further presume that /etc/email-addresses is some kind
of alias file. Is is mentioned in the Exim configuration, or is it
something your MUA uses? To find the name of Exim's configuration file,
run

/usr/sbin/sendmail -bP configure_file

it is part of exim package. the opening lines in the file mention it
clearly. sandip@??? is indeed my e-mail id. this bit was required as
without this, the mail reaches isp's smarthost appearing to be coming from
sandip@home and gets dumped. with these entries in /etc/email-addresses
file, the mail goes past isp's smtp server.1


> however, when i get a message from my daughter, it seems to be coming from
> sandip@???. i think it is the entry in /etc/email-addresses thats
> doing this.


How has the message travelled? Did it go to your ISP and come back, or
did it stay in your host? You can tell from the "Received:" headers in
the message. When you say "coming from" do you mean the "From:" line, or
the envelope sender (in the Exim log)?

simpler way. it reaches me even when i am not connected to my isp. so it
doesnt reach isp. it is delivered locally.


If the message went through your ISP, it may well be that the ISP
re-wrote the sender to the only valid email address it knows about.


I'm afraid there's a lot of complication in email, and a lot to learn.
Running an MTA is not simple.

> how do i prevent it from happening?


You will probably have to learn a bit more about the way your MUA works,
and the way Exim works. In particular, learn about Exim's debugging
tools, which allow you to send messages and watch what it does with
them. There is some information in the reference manual, but the really
introductory material is only the in book. The current edition is for
Exim 4.

i think i only need to know how do i tell exim 'use /etc/email-addresses
file ONLY if the mail is going to an outside entity' any ideas?

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book





Please note change in the sender's e-mail address and update your address
book accordingly.

+---------------------------------------------------------------------------
----------+
This message may contain confidential and/or privileged information. If you
have received this message in error, please advise the sender immediately by
reply e-mail and delete this message. If you are not the addressee or
authorized to receive this for the addressee, you must not use, copy,
disclose or take any action based on this message (except to notify the
sender) or any information herein. Thank you for your cooperation.

+---------------------------------------------------------------------------
----------+