Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Forwarding mail addresses

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
18 posts
  • Previous
  • 1
  • 2
YoloDude87
Posts: 1
Joined: Mon Apr 06, 2015 2:08 pm

Re: Forwarding mail addresses
  • Quote

Post by YoloDude87 » Mon Apr 06, 2015 2:13 pm

Aight people listen up. I think I found the cause of the issue why "Do not store forwarded email" isn't working properly.

If we check the fwd_only file in in $HOMEDIR/$user/conf/mail/$domain/fwd_only, we see it only holds 1 entry max. If we add another forward only account in the GUI, we see that LAST entry. Now after some debugging, I found out that if you add or edit something in the GUI, the following command is called:

v-add-mail-account-fwd-only USER DOMAIN ACCOUNT

Now if we open this file in /usr/local/vesta/bin/v-add-mail-account-fwd-only we see the following line somewhere near the end:

$account" > $HOMEDIR/$user/conf/mail/$domain/fwd_only

Aha! It overwrites the file instead of appending the new account. All we need to do is change > to >>. We can do this with the following command:

sed -i 's/echo "$account" > $HOMEDIR\/$user\/conf\/mail\/$domain\/fwd_only/echo "$account" >> $HOMEDIR\/$user\/conf\/mail\/$domain\/fwd_only/g' /usr/local/vesta/bin/v-add-mail-account-fwd-only

Eh voila, email forwarding only fixed (at least for me). Try it out and see if it works. And I hope the developers can change this in the real code :)

P.S.: This might be why it seemed to work for some people who only test with 1 account (cause yeah, it works for one account, just not multiple :) )
Top

fedekrum
Posts: 49
Joined: Mon May 12, 2014 7:45 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Forwarding mail addresses
  • Quote

Post by fedekrum » Fri May 15, 2015 4:37 pm

It looks YoloDude87 is right.
Are you admins planning to introduce this fix in next release?

thanks
Top

desertflyer
Posts: 5
Joined: Thu Feb 20, 2014 1:42 am

Re: Forwarding mail addresses
  • Quote

Post by desertflyer » Tue Aug 25, 2015 6:04 pm

Is there any update on this? It looks like this is still a problem.
Top

Pong
Posts: 4
Joined: Thu Nov 12, 2015 3:27 pm
Contact:
Contact Pong
Website

Re: Forwarding mail addresses
  • Quote

Post by Pong » Sat Nov 14, 2015 7:10 pm

I'm on version: 0.9.8, release 15.

File /usr/local/vesta/bin/v-add-mail-account-fwd-only now has this code:
$account" > $HOMEDIR/$user/conf/mail/$domain/fwd_only
Top

arafatx
Posts: 25
Joined: Tue Aug 11, 2015 4:51 pm

Re: Forwarding mail addresses
  • Quote

Post by arafatx » Wed Jan 06, 2016 11:33 am

still doesn't forward email.
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Forwarding mail addresses
  • Quote

Post by tjebbeke » Wed Jan 06, 2016 2:18 pm

arafatx wrote:still doesn't forward email.
Create bug https://bugs.vestacp.com/
Top

arafatx
Posts: 25
Joined: Tue Aug 11, 2015 4:51 pm

Re: Forwarding mail addresses
  • Quote

Post by arafatx » Fri Jan 08, 2016 4:37 pm

tjebbeke wrote:
arafatx wrote:still doesn't forward email.
Create bug https://bugs.vestacp.com/
Well, currently I'm able to forward mail within my mail in roundcube not the external email like Gmail. So, this is my temporary solution without having to open every email that I created. Example, in a business hosting we would have [email protected], [email protected], [email protected].. etc that would be time consuming to check every mail each day.
Top

atonit
Posts: 3
Joined: Wed Sep 24, 2014 12:38 am

Re: Forwarding mail addresses
  • Quote

Post by atonit » Fri Jan 22, 2016 2:52 pm

The solution here: https://github.com/serghey-rodin/vesta/ ... -173938239
Top


Post Reply
  • Print view

18 posts
  • Previous
  • 1
  • 2

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password