1829606 Members
1280 Online
109992 Solutions
New Discussion

mail command and daemond

 
SOLVED
Go to solution
Manuales
Super Advisor

mail command and daemond

what should i configure or run to get information under /var/mail for each user?
it is about emails for each user into the system ..

and, how can i redirect to outlook using the command email ....
i mean, at same moment it has got updated the file into /var/mail also it has sent an email to the user ... how can i do that?

thanks ...
1 REPLY 1
James R. Ferguson
Acclaimed Contributor
Solution

Re: mail command and daemond

Hi Manuales:

By default, email directed to a user is placed in /var/mail'.

You can redirect mail with a '.forward' file in the user's ${HOME} directory or by defining the target in '/etc/mail/aliases'. If you change the 'aliases' file, run '/usr/sbin/newaliases' to create a runtime binary file for 'sendmail' to use.

To enable forwarding to outside your server, configure '/etc/mail/sendmail.cf'. Define the 'DS' (smart relay) macro. For example:

DSexchange.abc.org

Regards!

...JRF...