Unix Programming - mail in /var

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2006 > mail in /var





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mail in /var
a.abdulwahab@gmail.com

2006-06-24, 1:22 pm

hello,

How can I direct the new mail to my own user under /var ? currently all
mail goes to root. (I have root access, so no permission problems).

Thx.

Bit Twister

2006-06-24, 1:22 pm

On 24 Jun 2006 08:31:45 -0700, a.abdulwahab@gmail.com wrote:
> hello,
>
> How can I direct the new mail to my own user under /var ? currently all
> mail goes to root. (I have root access, so no permission problems).


Well, you can create an alias for your Mail Transport Agent (MTA) to
use to send root's mail to who ever you like.

Since my MTA is postfix, I modify the aliases file and run postalias
to create database file used by the MTA. Snippet from aliases.

$ tail -12 /etc/postfix/aliases

# Person who should get root's mail. This alias
# must exist.
# CHANGE THIS LINE to an account of a HUMAN
root: bittwister

# Note to the user: You must create the alias above!
# The root alias *must* exist under postfix because
# postfix runs as a non-privileged user and cannot
# touch a spool file which is UID/GID root
# The mapping to the postfix user is to ensure that root's mail
# doesn't get lost on a system installed out of the box.
Logan Shaw

2006-06-24, 1:22 pm

a.abdulwahab@gmail.com wrote:
> hello,
>
> How can I direct the new mail to my own user under /var ? currently all
> mail goes to root. (I have root access, so no permission problems).


This sound more like a system admin question, but anyway...

First step is, figure out which MTA you're using. sendmail? qmail?
postfix? something else?

Second step is, make a change to some configuration file or database
specific to that MTA.

- Logan
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com