We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
What host and port to use for the SMTP server
What host and port to use for the SMTP server
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.
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.
Re: What host and port to use for the SMTP server
Host can just be your domain.tld, if its pointing to the correct server.
Re: What host and port to use for the SMTP server
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
----
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
Re: What host and port to use for the SMTP server
Have you setup MX records?
Re: What host and port to use for the SMTP server
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
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
-
- Posts: 11
- Joined: Fri Jul 18, 2014 7:56 am
Re: What host and port to use for the SMTP server
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?
if you test your domain at http://mxtoolbox.com/ what errors do you get?
Re: What host and port to use for the SMTP server
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.
<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.
-
- Posts: 11
- Joined: Fri Jul 18, 2014 7:56 am
Re: What host and port to use for the SMTP server
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.
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.
Re: What host and port to use for the SMTP server
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
----
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
-
- Posts: 11
- Joined: Fri Jul 18, 2014 7:56 am
Re: What host and port to use for the SMTP server
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?
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?