Ubuntu forward all emails sent to me to another email address

Asked By 330 points N/A Posted on -
qa-featured

I am using Ubuntu 10.04 as my server giving me root access to modify or install whatever needs to be modified / installed. I have reasonable experience in Linux but I have never had to modify email servers so I have very limited experience in what I am trying to do. Basically, I would like to forward all emails sent to me to another email address where I will send emails or replies when needed.

I do not want to send emails or replies from my own email. How can I do this? Thanks.

SHARE
Best Answer by Experttechyv
Best Answer
Best Answer
Answered By 5 points N/A #89783

Ubuntu forward all emails sent to me to another email address

qa-featured

You can try the following fixes and see if they will help:

  • The first fix will be to use procmail, or you can also use ~/.forward file. over the two procmail which tends to have far more options and control.
  • The second fix will be to use the recipient BCC maps so as to copy all the emails that you want to be sent to a specific user or to a specific domain. In the following example, you can add the following line to the  main.cfthat you are using, or you can as well use postconffor that:

    • recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps
    • After that you can create a file /etc/postfix/recipient_bcc_mapsthat has the content that follows:
    • [email protected] [email protected] then you will run postmap recipient_bcc_maps.

Experttechyv

 

Answered By 20 points N/A #89784

Ubuntu forward all emails sent to me to another email address

qa-featured

Hello Rashed, 

                           I am trying to figure out if you want to configure your server to do that or you want to change the configured email settings. I have read this post about the same thing, and i think that should be helpful for you. You can read it here. Finally you can read about the email configurations for Ubuntu Server here.  I assume there is an auto-forward option inherent in the Ubuntu mail server that you can use but i guess you have already explored it for that ? You could forward your mail to your gmail and then use the Ubuntu Server header to reply.

I hope that was helpful.

Abe.

Related Questions