On Tue, 2005-08-30 at 20:56 +1000, Denis Crowdy wrote:
> On my ubuntu box, mail for root is being sent out to my ISP, rather than
> delivered locally (which is what I want surely?

Depends. Do you ever check your local mailbox? I don't. :-)

>   "[EMAIL PROTECTED]"
> not a good look...).  I have tried various alias combinations in
> /etc/aliases and that appears to be the file postfix looks at. No
> success.  What foolishness have I configured this time?

What have you got in /etc/mailname ? And what does
your /etc/postfix/main.cf look like?

For what it's worth, here's what I've done to have all of my root mail
sent to my regular email account:

My /etc/postfix/main.cf looks like this:
myhostname = thunk.casa
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost.localdomain, localhost.localdomain, localhost
relayhost = littlegeek.casa
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only

(.casa is a domain that only resolves in my internal network)
/etc/mailname contains my mail domain, hardy.dropbear.id.au.

And my /etc/aliases contains these aliases:
postmaster:    root
# Added by installer for initial user
root:   [EMAIL PROTECTED]
webmaster: root

Make sure your aliases db is up to date with `postalias /etc/aliases`
and you should be golden.

Cheers,
-- 
Pete

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to