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

What host and port to use for the SMTP server

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
13 posts
  • 1
  • 2
  • Next
openyk
Posts: 14
Joined: Tue Jul 15, 2014 8:52 pm

What host and port to use for the SMTP server
  • Quote

Post by openyk » Thu Jul 17, 2014 6:58 pm

After installing a clean VestaCP, I create an email account in the admin web section. I want to use this account to send emails with SMTP using the SwiftMailer utility in my project's code.

In my application back-end, I need to specify:

SMTP Host:
SMTP Username:
SMTP Password:
SMTP Port:

I'm pretty sure that the SMTP user and pass need to be [email protected] and userpassword, but not sure what to put for host and port.

Something like smtp.domain.com and 25? If someone could verify I'd appreciate it.
Top

ivanh
Posts: 41
Joined: Sun Mar 23, 2014 6:40 am

Re: What host and port to use for the SMTP server
  • Quote

Post by ivanh » Fri Jul 18, 2014 5:58 pm

Host can just be your domain.tld, if its pointing to the correct server.
Top

openyk
Posts: 14
Joined: Tue Jul 15, 2014 8:52 pm

Re: What host and port to use for the SMTP server
  • Quote

Post by openyk » Sat Jul 19, 2014 1:03 am

Seems like both domain.tld and mail.domain.tld on port 25 are not working (replaced domain.tld with the actual domain name of course) when I use swiftmailer with smtp.

----

Also, a separate issue (which may be linked to the above, probably), for some reason the mail account ([email protected]) is not receiving emails sent from gmail, though sending works fine.

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain...

The error that the other server returned was:
550 no mailbox by that name is currently available

I must be missing some simple steps because I remember getting both sending and receiving working for email record before, just forgot to document the steps... this is really coming back to bite me xD those who do not document history are doomed to repeat it :P
Top

ivanh
Posts: 41
Joined: Sun Mar 23, 2014 6:40 am

Re: What host and port to use for the SMTP server
  • Quote

Post by ivanh » Sat Jul 19, 2014 5:37 pm

Have you setup MX records?
Top

openyk
Posts: 14
Joined: Tue Jul 15, 2014 8:52 pm

Re: What host and port to use for the SMTP server
  • Quote

Post by openyk » Sat Jul 19, 2014 7:44 pm

I tried:

Namecheap > Manage Domains > Host Management: All Host Records
Then Mail Settings > User (Mail Server's Host Name Required)
Save Changes

Host Name: @
Mailserver Host Name: mail.domain.tld
MX Pref: 10
TTL: 1800

Save Changes

Emails still not being received :/
In VestaCP the DNS record (auto-created) for mail is @, MX, 10, domain.tld
Top

energytech
Posts: 11
Joined: Fri Jul 18, 2014 7:56 am

Re: What host and port to use for the SMTP server
  • Quote

Post by energytech » Sun Jul 20, 2014 7:47 pm

If you login to your VestaCP as admin and check the services, are all running?

if you test your domain at http://mxtoolbox.com/ what errors do you get?
Top

openyk
Posts: 14
Joined: Tue Jul 15, 2014 8:52 pm

Re: What host and port to use for the SMTP server
  • Quote

Post by openyk » Mon Jul 21, 2014 12:52 am

When I go to mxtoolbox.com and check "domain.tld", I get:

<MX: domain.tld>
Pref: 10
Hostname: mail.domain.tld
IP Address: {no A record}
TTL: 30min

When I check "smtp: domain.tld", I get:

220 HostName ESMTP Exim 4.82 Ubuntu
SMTP Banner Check: Reverse DNS FAILED! This is a problem.
SMTP Connection Time: 6.037 seconds - Warning on Connection time
SMTP Transaction Time: 8.377 seconds - Not good! on Transaction Time
SMTP TLS: OK - Supports TLS.
SMTP Relay: OK - Not an open relay.

When I go VestaCP admin > Services tab, all services are running.
Top

energytech
Posts: 11
Joined: Fri Jul 18, 2014 7:56 am

Re: What host and port to use for the SMTP server
  • Quote

Post by energytech » Mon Jul 21, 2014 7:27 am

It does look like you have not configured all the DNS records correctly.

You should copy all the DNS records that are created for your domain in Vesta, into your DNS records with your DNS host.

Vesta does create all the required DNS records for you, you just need to make sure you have entered all of them correctly (apart from any NS records, which are not required if you are not using Vesta for DNS).

I hope this helps.
Top

openyk
Posts: 14
Joined: Tue Jul 15, 2014 8:52 pm

Re: What host and port to use for the SMTP server
  • Quote

Post by openyk » Mon Jul 21, 2014 4:43 pm

Ah cool, I did
----
Namecheap Domain Manage > All Host Records > subdomain settings:

mail IP_address A 1800
pop IP_address A 1800

Save Settings
----

And now the emails are receiving properly.

The SMTP is still erroring however. When I check on mxtoolbox for smtp the transcript's near-final line is 550 relay not permitted
Top

energytech
Posts: 11
Joined: Fri Jul 18, 2014 7:56 am

Re: What host and port to use for the SMTP server
  • Quote

Post by energytech » Mon Jul 21, 2014 7:28 pm

Can you send emails from the webmail interface?

Try sending an email to [email protected] from the webmail,
you should get a report back within a few minutes.

What SMTP settings are you using in your email client?
Top


Post Reply
  • Print view

13 posts
  • 1
  • 2
  • Next

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