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

email server send to local domain externally

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
MAN5
Posts: 86
Joined: Sun Jan 31, 2016 4:14 am

Os: Ubuntu 15x
Web: apache + nginx
email server send to local domain externally
  • Quote

Post by MAN5 » Wed Feb 03, 2016 12:40 pm

Hi.
My server is Ubuntu 14, VestaCP, Apache, NginX, Exim4 etc.,

I have hosted 4 domains under the single VestaCP server under single user name.

locL.com > using local MX
extG.com > using Google Apps MX.
extZ.com > using Zoho MX

The issue is,
whenever i send email between those domains all mails delivering locally.

[email protected] > to > [email protected] > should deliver to Google MX. But it delivering to local mail box. Same is for my zoho MX also.

Keep receiving on local mailbox.

I have tried all the options of "sudo dpkg-reconfigure exim4-config".
All still same... :-(
Please help me. This server im setting up for a hosting company.
Top

MAN5
Posts: 86
Joined: Sun Jan 31, 2016 4:14 am

Os: Ubuntu 15x
Web: apache + nginx
Re: email server send to local domain externally
  • Quote

Post by MAN5 » Thu Feb 04, 2016 11:34 am

Ok i got it.
The scenario was like this..

1. sending emails are passing thru EXIM4 and the exim4 checks is the domain is local or non-local. (via "/etc/exim4/domains")
2. If is local domain > than try to delivering to local mail box. (even i set my MX to Google Apps). But there if there is valid mailbox, than failed.

3. So i created a dummy folder called "/etc/exim4/remote-domains". And change the config path on the "/etc/exim4/exim4.conf.template" as below..

**"......
######################################################################
# #
# Exim configuration file for Vesta Control Panel #
# #
######################################################################

SPAMASSASSIN = yes
SPAM_SCORE = 50
CLAMD = yes

#domainlist local_domains = dsearch;/etc/exim4/domains/
domainlist local_domains = dsearch;/etc/exim4/remote-domains/
domainlist relay_to_domains = dsearch;/etc/exim4/domains/
hostlist relay_from_hosts = 127.0.0.1

****

5. and restart EXIM services.
6. Now always, the EXIM4 check the remote-domains folder & there is no domains specified. So it thinks all the outgoing emails are have to send to outside domains. So it tries to deliver mails externally..

Anybody found any bugs on this config.?
Please advise me.
Top

Sanity
Posts: 167
Joined: Tue Apr 08, 2014 9:10 am
Contact:
Contact Sanity
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: email server send to local domain externally
  • Quote

Post by Sanity » Sat Mar 19, 2016 10:40 pm

So that messages reach the mail account google apps, you need to use dual delivery of google apps. and using aliases of google.
Top

MAN5
Posts: 86
Joined: Sun Jan 31, 2016 4:14 am

Os: Ubuntu 15x
Web: apache + nginx
Re: email server send to local domain externally
  • Quote

Post by MAN5 » Sat Mar 26, 2016 1:38 pm

Sanity wrote:So that messages reach the mail account google apps, you need to use dual delivery of google apps. and using aliases of google.
Sorry. I cant get your question clearly.
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

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