lava / dockermail

Ready-to-use email server + (optional) web mail + (optional) caldav, carddav and a kitchen sink in a docker container
MIT License
300 stars 60 forks source link

Any way to redirect mail ? #5

Open edorgeville opened 9 years ago

edorgeville commented 9 years ago

Is there a way to make it so all the mail is redirected to another email adress ?

lava commented 9 years ago

I haven't tried it yet, but things might actually just work (tm) if you put the forward into mail-base/aliases.

It that doesn't work, I'm afraid you'll have to manually edit the postfix config. A helpful description can be found at http://www.binarytides.com/postfix-mail-forwarding-debian/

avinashtanniru commented 9 years ago

When i install a dovecot in a docker it shows dovecot is un recognise and mail.log file is also not generating can you help me out from this. @lava

lava commented 9 years ago

Hi avinash, I'm afraid I don't quite understand what you want to say. I would suggest to open a separate issue and describe your problem in detail there.

avinashtanniru commented 9 years ago

Thanks for replying @lava I'm using docker container with latest Ubuntu 14.04 when i install a postfix services mail.log file have to generate in /var/log/ directory but it fails to generate and when i install dovecot through "apt-get install postfix postfix-mysql dovecot-core dovecot-imapd dovecot-lmtpd dovecot-mysql" when i tends to restart it by "sudo service dovecot restart" it shows "dovecot is unrecognise" but it will installed correctly without any error. what is the solution to this problem in docker.

lava commented 9 years ago

If I read correctly, you're trying to manually install dovecot and postfix in Ubuntu? This is not necessary for using dockermail. Both postfix and dovecot will be installed automatically within the Docker container if you follow the procedure described in the readme.

avinashtanniru commented 9 years ago

You are right @lava I Used to pull Ubuntu Image and I install that services but it is not recognizing can you tell me y ?

dragonito commented 9 years ago

is it possible to forward to a gmail-adress, i tried it in aliases file but it doesn´t work.

Perfect would be a forward to a external address and also save it.

Exim was is a .forward file in user dir with something like this:

unseen deliver xxxxxxxxx@googlemail.com

lava commented 9 years ago

By default all mail gets delivered to local addresses, so you'd need to modify some of the configuration files to get forwarding. That said, if you just want to forward your mail, there is probably an easier solution.

dragonito commented 9 years ago

For those who want to forward Mails to gmail. Test it with an external adress ;)

test@mydomain testuser@gmail.com test@mydomain

will forward mail to gmail and save it to your dovecot.

Sometimes Mails went to spam-folder. I don´t know why