Hi

I'm trying to re-direct my root email to my external email address.

I altered the entry in /etc/aliases to

root: n...@external-address.co.uk

Ran newaliases, reloaded postfix and tried sending an email to root

The email gets sent to r...@bxxxxxxx-hxxx.co.uk where
bxxxxxxx-hxxx.co.uk is the domain set in postfix's main.cf as follows:

myhostname = dxxxxxxx.bxxxxxxx-hxxx.co.uk
mydomain = bxxxxxxx-hxxx.co.uk
myorigin = bxxxxxxx-hxxx.co.uk
mydestination = $myhostname, localhost.$mydomain, localhost

I had to set myorigin to be mydomain because my ISP will only relay
emails from this domain and not sub/hosts within it.

I'm assuming that this is the problem, but am banging my head against a
brick wall.

I have a local account npr on the machine, but even if I just use

root: npr

and use a .forward to my external address, root's email still goes to
r...@bxxxxxxx-hxxx.co.uk although emails to npr will get forwarded
correctly.

Any help gratefully received! Thanks

Nick 

Reply via email to