On Fri, May 11, 2001 at 10:16:35AM +1000, Mike Lake wrote:
> > qualify_domain = uts.edu.au
> > comment it out.
> 
> OK Have now done that. 

Did it fix anything?

So now when you send mail locally it should append your hostname
to the To: and From: addresses.

To test: 
echo test1 | mail -s test1 localuser

Then when you read the email localuser should have changed to 
[EMAIL PROTECTED]

> OK I find there the following:
> *@uts.edu.au    ${lookup{$1}lsearch{/etc/email-addresses}\
>                                                {$value}fail} bcfrF

> and in email-addresses currently I have 
>         #user: [EMAIL PROTECTED]
>         #otheruser: [EMAIL PROTECTED]
> 
> Um my domain is chem.uts.edu.au and my machine name is say A123
> would I set *@uts.edu.au instead to:
> *@chem.uts.edu.au ?

I set it to my real host name and real domain name, ie
the `hostname -s` command will print your host name and 
`hostname -d` will print your domain name.

If you send mail to yourself like I did above, just copy
what ever gets added after the @.

> Local delivery would be to [EMAIL PROTECTED] but what about
> [EMAIL PROTECTED] Is that local? 
> I'm not sure what to put in place of *@uts.edu.au 

I think I've confused you, see above and below where I try to
really confuse you. :)

> and would I put in email-addresses
> mikel: [EMAIL PROTECTED]
> ie exim will lookup local user mikel and use email address
> [EMAIL PROTECTED] ?

It changes your from address when sending email to someone not on your
box, so if you send mail from your mikel account to
[EMAIL PROTECTED], your from address will be changed from
[EMAIL PROTECTED] to [EMAIL PROTECTED] But if you send mail to someone
on your box, eg mikel, your from address won't be changed.

Its not strictly necessary, because you are already changing 
your from address in mutt and in netscape, but it means you can send
mail from any email program without needing to setup anything up,
eg when you use the mail command your address will be right.

Once you've set it up, if you now send some mail:
echo test2 | mail -s test2 [EMAIL PROTECTED]

Your from address should be [EMAIL PROTECTED]

If you set your name in /etc/passwd with
usermod -c "Mike Lake" mikel
Your from: address will look like
Mike Lake <[EMAIL PROTECTED]>

Keep in mind that I haven't read any exim docs, I've just read
the comments in the config files and experimented. ie I could
be wrong.

> Netscape settings are to deliver outgoing via the outgoing mail (smtp) server 
>         "postoffice.uts.edu.au" 
> At present this is not set anywhere in my exim.conf

Fair enough, I was just assuming you were using a smarthost.



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to