We are starting CHRISTMAS Sale. Get 30% OFF on lifetime licenses with code: FYSKK72

Bounce Email

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
catalin.se
Posts: 1
Joined: Tue Sep 19, 2017 7:47 pm

Bounce Email

Postby catalin.se » Tue Sep 19, 2017 8:30 pm

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

mehargags
Moderators
Posts: 835
Joined: Sat Sep 06, 2014 9:58 pm
Contact:

Re: Bounce Email

Postby mehargags » Fri Sep 22, 2017 2:29 pm

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 = @

ScIT
Posts: 271
Joined: Mon Feb 23, 2015 4:13 pm

Re: Bounce Email

Postby ScIT » Fri Sep 22, 2017 6:17 pm

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.

mehargags
Moderators
Posts: 835
Joined: Sat Sep 06, 2014 9:58 pm
Contact:

Re: Bounce Email

Postby mehargags » Sat Sep 23, 2017 3:18 pm

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.


Return to “Mail Server”



Who is online

Users browsing this forum: No registered users and 3 guests