hidden:Redirect local root mail to an external email address on HPSS servers: Difference between revisions
From Lsdf
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
==Redirect local root mail to an external email address on HPSS servers== |
===Redirect local root mail to an external email address on HPSS servers=== |
||
1. Check if "postfix" bzw. sendmail mail server is already installed. |
1. Check if "postfix" bzw. sendmail mail server is already installed. |
||
Line 24: | Line 24: | ||
#echo "Hello from hpsscr01." | mail -s "hpsscr01 email-test-message" root |
#echo "Hello from hpsscr01." | mail -s "hpsscr01 email-test-message" root |
||
==Relaying Emails through another Server== |
===Relaying Emails through another Server=== |
||
1. use scc-mailin-cn-01.scc.kit.edu as the remote mailserver on which I have a valid email account with the username and password. |
Revision as of 16:55, 20 January 2017
Redirect local root mail to an external email address on HPSS servers
1. Check if "postfix" bzw. sendmail mail server is already installed.
Notice: on RHEL Hosts postfix is already installed but on SL hosts its sendmail.
# service postfix status # yum install postfix (On HPSS Server it was already installed and running)
2. Edit /etc/aliases
root: hpss-admin@lists.kit.edu
4. Run command on shell:
# newaliases
5. Restart mail server
# service postfix restart
6. Test
#echo "Hello from hpsscr01." | mail -s "hpsscr01 email-test-message" root
Relaying Emails through another Server
1. use scc-mailin-cn-01.scc.kit.edu as the remote mailserver on which I have a valid email account with the username and password.