Hullo there,
All mail for root, admin, postgres etc on my server are aliased to jenny, so it gets sent to jenny@localhost.
How can I request it is sent to jenny@ordinary-email-address instead?
I never remember to go and read mail on the server.
Thanks,
Jenny
On Wed, Sep 20, 2006 at 08:47:18AM +0100, Jenny Hopkins wrote:
Hullo there,
Hi
All mail for root, admin, postgres etc on my server are aliased to jenny, so it gets sent to jenny@localhost.
How can I request it is sent to jenny@ordinary-email-address instead?
Sounds like you need to edit /etc/aliases (depending on your server setup, should work for most machines) and change the line that looks something like
root: jenny
to
root: jenny@ordinary-email-address
depending on your mail server setup it may (or may not) forward your mail to the correct place. The best way to test before changing the config would be to run
mail -s "test message" jenny@ordinary-email-address (hit enter, and type the body of your message, put a . on a line by itself to finish the mail)
to make sure that the box is configured to send mail to the outside world first. One other thing, I'm fairly certain that all MTA software will reread /etc/aliases without being poked, but you may need to restart the mail daemon.
I never remember to go and read mail on the server.
Or you could install an imap or pop server on the machine and point your mail client at it, can be especially useful if the machine breaks for some reason and can't send mail as you notice that you either can't connect to it any more or that you at least get the messages (or notice a lack of them).
Adam
On 20/09/06, Adam Bower adam@thebowery.co.uk wrote:
Sounds like you need to edit /etc/aliases (depending on your server setup, should work for most machines) and change the line that looks something like
root: jenny
to
root: jenny@ordinary-email-address
depending on your mail server setup it may (or may not) forward your mail to the correct place. The best way to test before changing the config would be to run
mail -s "test message" jenny@ordinary-email-address (hit enter, and type the body of your message, put a . on a line by itself to finish the mail)
to make sure that the box is configured to send mail to the outside world first. One other thing, I'm fairly certain that all MTA software will reread /etc/aliases without being poked, but you may need to restart the mail daemon.
Yes, it already sends mails to the great outside world from various web pages, so I know this part will work.
I'll try editing aliases and tell you if that works.
Or you could install an imap or pop server on the machine and point your mail client at it, can be especially useful if the machine breaks for some reason and can't send mail as you notice that you either can't connect to it any more or that you at least get the messages (or notice a lack of them).
That sounds like a challenge. If it worked, I could put Exchange on their win servers out of business :-)
Thanks,
Jenny
On Wed, Sep 20, 2006 at 09:17:43AM +0100, Jenny Hopkins wrote:
something like
root: jenny
to
root: jenny@ordinary-email-address
Actually, now I think of it, it'd be better to write something like:
root: jenny, jenny@ordinary-email-address
so that the mail goes both to your mailbox on the server and to your outside mail address.
Yes, it already sends mails to the great outside world from various web pages, so I know this part will work.
I'll try editing aliases and tell you if that works.
Good good, make sure you test it too, nothing more embarassing than dropping all your mail for a while before you notice (or creating a huge routing loop of doom which makes each mail get copied several times and put back in the queue).
Adam
On 20/09/06, Adam Bower adam@thebowery.co.uk wrote:
root: jenny, jenny@ordinary-email-address
Good good, make sure you test it too, nothing more embarassing than dropping all your mail for a while before you notice (or creating a huge routing loop of doom which makes each mail get copied several times and put back in the queue).
Thanks, that works a treat. I've tested most of the alises and they all come to me here and mailbox on server.
Jenny.