Page 1 of 1

Bounce Email

Posted: Tue Sep 19, 2017 8:30 pm
by catalin.se
Hello guys

I use VestaCP for some months and is great but for some reason i don't receive email that bounces
For example i made a test to send email using Roundcube to some emails that don't exist and nothing returned back
If i send to same emails using gmail i receive that email don't exist
Is there any setting that i miss in Vesta?

Thanks
Catalin

Re: Bounce Email

Posted: Fri Sep 22, 2017 2:29 pm
by mehargags
I guess VestaCP's send SMTP envelope contains the bounce address as <vestauser>@domain.com so if you to configure that ID as a mailbox in your server. This is presuming you have your email hosted on the VestaCP server.

If you host your email outside on external MX then also the mail ID has to be created locally to be able to collect bounces. If you want to host the mailbox outside then you create it and then also need to change this line in
/etc/exim4/exim4.conf.template

domainlist local_domains = dsearch;/etc/exim4/domains/
to be changed to
domainlist local_domains = @

Re: Bounce Email

Posted: Fri Sep 22, 2017 6:17 pm
by ScIT
mehargags wrote:I guess VestaCP's send SMTP envelope contains the bounce address as <vestauser>@domain.com so if you to configure that ID as a mailbox in your server. This is presuming you have your email hosted on the VestaCP server.

If you host your email outside on external MX then also the mail ID has to be created locally to be able to collect bounces. If you want to host the mailbox outside then you create it and then also need to change this line in
/etc/exim4/exim4.conf.template

domainlist local_domains = dsearch;/etc/exim4/domains/
to be changed to
domainlist local_domains = @
Hmm, seems like this would completly disable local delivery right? I'm using a bit another configuration for solving this problem.

Edit the exim4 conf file: /etc/exim/exim4.conf.template, add the following content under relay_to_domains:

Code: Select all

domainlist no_local_delivery = domain.tld : domain2.tld
then in the same file in the part ROUTERS CONFIGURATION after the dnslookup: block the following:
nolocaldelivery:
driver = dnslookup
domains = +no_local_delivery
transport = remote_smtp
no_more
So this will only forward the domains, definied in no_local_delivery (separated with :) to external smtp.

Re: Bounce Email

Posted: Sat Sep 23, 2017 3:18 pm
by mehargags

Code: Select all

domainlist local_domains = @
ScIT wrote:Hmm, seems like this would completly disable local delivery right?
Well ScIT, Maybe yes as the @ means anymailbox@hostname.
I do not ever use Mail hosting on my VestaCP servers so the only mailboxed I would host locally is vestacpusers@hostname to trap the bounce mails.

Thanks for your approach, will be handy for people hosting their mailboxes on the VestaCP server.