Page 1 of 1

How do I get email from Linux mail to Scalix?

Posted: Thu Aug 02, 2007 4:26 pm
by akoei
I am new both for Limix and Scalix. In the /var/mail, there is a file "root", all system notice has been send to this file. How can I take those messages by Scalix?

Posted: Thu Aug 02, 2007 10:06 pm
by jaime.pinto
You may be able to read those emails just by typing "Mail" on a shell as root.
Another thing you could do is to edit /etc/aliases and find the line that looks like this
postmaster: root

You can them change it to
postmaster: sxadmin

This way and can read those notifications as the sxadmin user.

Posted: Fri Aug 03, 2007 11:23 am
by akoei
jaime.pinto wrote:May may be able to read those emails just by typing "Mail" on a shell as root.
Another thing you could do is to edit /etc/aliases and find the line that looks like this
postmaster: root

You can them change it to
postmaster: sxadmin

This way and can read those notifications as the sxadmin user.


Do I need to reboot? I did the changes, but messages in root keep growing, and no one goes to sxadmin...

Posted: Fri Aug 03, 2007 11:32 am
by jaime.pinto
You will need to type "newaliases" on a shell each time you make a change on /etc/aliases

Posted: Fri Aug 03, 2007 5:40 pm
by akoei
jaime.pinto wrote:You will need to type "newaliases" on a shell each time you make a change on /etc/aliases


still doesn't work. if I also need to change
mail: root
to
mail: sxadmin
?

Posted: Fri Aug 03, 2007 10:17 pm
by btisdall
Most of the generic accounts are aliased to root, so rather than change these individually you'll be better off adding a line at the end that says:

Code: Select all

root: user@example.com


Most distros actually have such a line at the bottom of the aliases file, waiting to be uncommented & edited to suit. It usually looks like this in my experience:

Code: Select all

#Person who should get root's mail
#root: marc


And I've often wondered who marc is...

BTW, notice I didn't use sxadmin my example above - IMO this shouldn't be used as an everyday mailbox since it has super-powers - think of it as Scalix's root & use an ordinary Joe account to read the spam sent to webmaster etc...

Posted: Wed Jan 30, 2008 10:26 am
by akoei
btisdall wrote:Most of the generic accounts are aliased to root, so rather than change these individually you'll be better off adding a line at the end that says:

Code: Select all

root: user@example.com


Most distros actually have such a line at the bottom of the aliases file, waiting to be uncommented & edited to suit. It usually looks like this in my experience:

Code: Select all

#Person who should get root's mail
#root: marc


And I've often wondered who marc is...

BTW, notice I didn't use sxadmin my example above - IMO this shouldn't be used as an everyday mailbox since it has super-powers - think of it as Scalix's root & use an ordinary Joe account to read the spam sent to webmaster etc...


works great, thanks