Redirect Local Emails To A Remote Electronic Mail Account

My previous post is a guide for setting upwardly exim4, an SMTP shipping service server, to purpose Gmail every bit a smarthost. One argue for setting upwardly a shipping service server is to redirect my local root emails to an Internet e-mail draw organization human relationship that I truly monitor. In this way, I won't missy whatever safety warning sent to the local root mailbox.

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.

  1. Set upwardly an SMTP server.
  2. 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.

  3. Redirect root.

    Replace the root: peter draw amongst the draw below using your personal e-mail address:

    root: yourAddress@gmail.com 
  4. 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 

Berlangganan update artikel terbaru via email:

0 Response to "Redirect Local Emails To A Remote Electronic Mail Account"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel