Page 1 of 1

Emails with + Sign aren't working

Posted: Fri Apr 06, 2018 3:46 am
by wpconsulate
I have setup email account successfully and it's working.
Now my email account is like [email protected] and it's working fine
But I'm not able to receive emails with email addresses like
[email protected]

please suggest any way to make it work.


thanks
Deepak Oberoi

Re: Emails with + Sign aren't working

Posted: Fri Apr 06, 2018 11:05 am
by MAN5
RFC approved like that '+' symbol, But its advised Not-To-Do by leading email providers (eg: gmail).
I can explain this very simply & not soooo deep.
Just simply send an email to your gmail account with + symbols added.
(ie) if your gmail acc is [email protected] >> then u ask your frnd to send an email to '[email protected]'. Still you will recv it.
Now decide weather you need to use '+' or not in the real world..

Re: Emails with + Sign aren't working

Posted: Sat Apr 07, 2018 8:39 am
by wpconsulate
thanks for your reply @MAN5
and yes I want to do this because I have an email mapped to my pm system which reads my mailbox for any issues posted by email so it's important to get it working to create/update issues by email.

so is this possible with VestaCP

Re: Emails with + Sign aren't working

Posted: Sat Apr 07, 2018 11:44 am
by MAN5
Hi.
[Technically NOT a genuine idea. Do it @ your risk]
0. VestaCP has the reasonable script-coding to reduce most of the real world issues.
1. Yes possible with code changes. But all your code changes will be over-written by vestacp updates.
2. I can give you the 'hint' as how to make it work for creating email id with '+'. But its not enough, you need to work on subsequent process yourself.
3. Goto '/usr/local/vesta/func'
4. look for option >> # User format validator
5. Compare this line with your original >>

Code: Select all

if ! [[ "$1" =~ ^[[:alnum:]][-|\.|_+|[:alnum:]]{0,28}[[:alnum:]]$ ]]
6. I added '+' on the above line to let vestacp to allow that to create emails.

Re: Emails with + Sign aren't working

Posted: Mon Apr 09, 2018 11:05 am
by wpconsulate
I think we are talking about 2 different issues.

I'm not looking to be able to create email accounts with + symbols. Rather I want to be able to receive emails with that. for example again.

I created an email [email protected] and that works fine. Now I want if anyone sends an email at [email protected] It should land in my email [email protected] 's Inbox.

Is this possible in VestaCP?

Re: Emails with + Sign aren't working

Posted: Mon Apr 09, 2018 2:04 pm
by sandy
you need to configure cathall
viewtopic.php?t=10238

Re: Emails with + Sign aren't working

Posted: Mon Apr 09, 2018 2:07 pm
by MAN5
you need to configure cathall
Haha, his question is abt to let exim trimming the texts if any on email IDs with '+xxx' and send it to the email ID without those '+xxx'.

Re: Emails with + Sign aren't working

Posted: Tue Apr 10, 2018 5:26 am
by MAN5
Try this on EXIM4 config..

begin routers
#...
suffix_rewrite:
driver = redirect
allow_defer
allow_fail
skip_syntax_errors
data = ${local_part}@${domain}
local_part_suffix = "+*"
retry_use_local_part