Redirect Local Emails To A Remote Electronic Mail Account
This post shows you lot how to laid upwardly e-mail redirection. The instructions are like for diverse shipping service servers: exim4, Postfix, or sendmail.
- Set upwardly an SMTP server.
- Edit /etc/aliases every bit root.
mailer-daemon: postmaster postmaster: beginning nobody: beginning hostmaster: beginning usenet: beginning news: beginning webmaster: beginning www: beginning ftp: beginning abuse: beginning noc: beginning security: beginning root: peter
To the left of the colon is the shipping service alias defined on the local machine. You tin shipping e-mail to a local e-mail alias, enjoin security together with the message volition hold upwardly redirected to the account(s) specified to the correct of the colon.
In many default shipping service server configurations, emails to whatever alias are forwarded to root. But frequently root itself is non redirected to a regularly monitored e-mail account.
- Redirect root.
Replace the root: peter draw amongst the draw below using your personal e-mail address:
root: yourAddress@gmail.com
- Rebuild alias database.
$ newaliases
For sendmail, together with Postfix, afterwards you lot alter the alias file, you lot ask to operate the newaliases dominance to rebuild the shipping service alias database. For exim4, this pace is non required because it relies exclusively on the alias file together with NO database.
To test, shipping root an email, together with verify that the message is delivered to the target remote e-mail account.
$ echo 'Code red'| shipping service -s 'Hacker Alert' beginning
0 Response to "Redirect Local Emails To A Remote Electronic Mail Account"
Post a Comment