Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta Web Interface
  • Search

New Install of Vestacp Won't Send Emails By Default

Questions regarding the Web Interface
GUI
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
umuzidan
Posts: 19
Joined: Wed Jan 21, 2015 9:53 pm

New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by umuzidan » Thu Jan 22, 2015 12:43 pm

In more detail, there are several places withing the Web Interface where it says that an email will be sent to new users with credentials and such. Well, these emails never send. I assume that they would just send from port 25, but I don't recall seeing anywhere to set email properties, such as send-as, authentication, etc?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by skurudo » Thu Jan 22, 2015 6:02 pm

Well... It's may be several reason for this:
- blocked port
- not valid e-mail
- not resolved e-mail (I think it's a reason)
- MTA exim don't work

Can you check in console? Command -> mailq
Top

umuzidan
Posts: 19
Joined: Wed Jan 21, 2015 9:53 pm

Re: New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by umuzidan » Thu Jan 22, 2015 6:31 pm

Thanks, I'll check that command. I have business grade internet in my office where we run an exchange server using port 25.
Top

umuzidan
Posts: 19
Joined: Wed Jan 21, 2015 9:53 pm

Re: New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by umuzidan » Thu Jan 22, 2015 10:32 pm

skurudo wrote:Well... It's may be several reason for this:
- blocked port
- not valid e-mail
- not resolved e-mail (I think it's a reason)
- MTA exim don't work

Can you check in console? Command -> mailq
postqueue: warning: Mail system is down -- accessing queue directly
Mail queue is empty
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by skurudo » Fri Jan 23, 2015 7:20 am

umuzidan, okey, as we see MTA don't work.

I'm a bit confused, can you check exim? ->

Code: Select all

/etc/init.d/exim4 status 
and then

Code: Select all

/etc/init.d/exim4 restart
Can you show output - /var/log/exim4/mainlog ?
Top

umuzidan
Posts: 19
Joined: Wed Jan 21, 2015 9:53 pm

Re: New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by umuzidan » Sun Mar 29, 2015 1:25 pm

Here is the log output from exim. I don't know why it would not be able to send mail based on the log

Code: Select all

2015-03-29 04:26:00 Start queue run: pid=17639
2015-03-29 04:26:00 1YbwNr-0001eI-6d Message is frozen
2015-03-29 04:26:00 1YbwNr-0001eV-UT Message is frozen
2015-03-29 04:26:00 1YbwNs-0001ed-9v Message is frozen
2015-03-29 04:26:00 1YbwNs-0001el-Jb Message is frozen
2015-03-29 04:26:00 1YbwNs-0001eh-Eh Message is frozen
2015-03-29 04:26:00 1YbwNr-0001eM-DU Message is frozen
2015-03-29 04:26:00 1YbwNr-0001eQ-Mz Message is frozen
2015-03-29 04:26:00 1YbPba-0004D5-TG Message is frozen
2015-03-29 04:26:00 1YbwXb-0001of-Lg Message is frozen
2015-03-29 04:26:00 1YbciU-0007vj-UP Message is frozen
2015-03-29 04:26:00 1YbwNr-0001eE-0B Message is frozen
2015-03-29 04:26:00 1YbwNs-0001eZ-50 Message is frozen
2015-03-29 04:26:00 End queue run: pid=17639
2015-03-29 05:26:00 Start queue run: pid=21353
2015-03-29 05:26:00 1YbwNr-0001eE-0B Message is frozen
2015-03-29 05:26:00 1YbwNr-0001eI-6d Message is frozen
2015-03-29 05:26:00 1YbwNr-0001eV-UT Message is frozen
2015-03-29 05:26:00 1YbwXb-0001of-Lg Message is frozen
2015-03-29 05:26:00 1YbwNs-0001el-Jb Message is frozen
2015-03-29 05:26:00 1YbwNs-0001eh-Eh Message is frozen
2015-03-29 05:26:00 1YbwNr-0001eM-DU Message is frozen
2015-03-29 05:26:00 1YbwNr-0001eQ-Mz Message is frozen
2015-03-29 05:26:00 1YbPba-0004D5-TG Unfrozen by errmsg timer
2015-03-29 05:26:00 1YbPba-0004D5-TG ** [email protected]: Unrouteable address
2015-03-29 05:26:00 1YbPba-0004D5-TG [email protected]: error ignored
2015-03-29 05:26:00 1YbPba-0004D5-TG Completed
2015-03-29 05:26:00 1YbwNs-0001ed-9v Message is frozen
2015-03-29 05:26:00 1YbciU-0007vj-UP Message is frozen
2015-03-29 05:26:00 1YbwNs-0001eZ-50 Message is frozen
2015-03-29 05:26:00 End queue run: pid=21353
2015-03-29 06:26:00 Start queue run: pid=24629
2015-03-29 06:26:00 1YbciU-0007vj-UP Message is frozen
2015-03-29 06:26:00 1YbwNr-0001eI-6d Message is frozen
2015-03-29 06:26:00 1YbwNs-0001el-Jb Message is frozen
2015-03-29 06:26:00 1YbwNs-0001eh-Eh Message is frozen
2015-03-29 06:26:00 1YbwNr-0001eM-DU Message is frozen
2015-03-29 06:26:00 1YbwNr-0001eQ-Mz Message is frozen
2015-03-29 06:26:00 1YbwXb-0001of-Lg Message is frozen
2015-03-29 06:26:00 1YbwNs-0001ed-9v Message is frozen
2015-03-29 06:26:00 1YbwNr-0001eV-UT Message is frozen
2015-03-29 06:26:00 1YbwNr-0001eE-0B Message is frozen
2015-03-29 06:26:00 1YbwNs-0001eZ-50 Message is frozen
2015-03-29 06:26:00 End queue run: pid=24629
2015-03-29 07:26:00 Start queue run: pid=27910
2015-03-29 07:26:00 1YbwNs-0001eZ-50 Message is frozen
2015-03-29 07:26:00 1YbciU-0007vj-UP Message is frozen
2015-03-29 07:26:00 1YbwNr-0001eV-UT Message is frozen
2015-03-29 07:26:00 1YbwNs-0001ed-9v Message is frozen
2015-03-29 07:26:00 1YbwNs-0001el-Jb Message is frozen
2015-03-29 07:26:00 1YbwNs-0001eh-Eh Message is frozen
2015-03-29 07:26:00 1YbwNr-0001eM-DU Message is frozen
2015-03-29 07:26:00 1YbwNr-0001eQ-Mz Message is frozen
2015-03-29 07:26:00 1YbwXb-0001of-Lg Message is frozen
2015-03-29 07:26:00 1YbwNr-0001eI-6d Message is frozen
2015-03-29 07:26:00 1YbwNr-0001eE-0B Message is frozen
2015-03-29 07:26:00 End queue run: pid=27910
2015-03-29 08:24:53 1YcCGr-0008Bh-En <= [email protected] U=admin P=local S=730
2015-03-29 08:25:56 1YcCGr-0008Bh-En umuzitech.com [172.20.22.2] Connection refused
2015-03-29 08:25:56 1YcCGr-0008Bh-En umuzitech.com [172.20.20.3] Connection refused
2015-03-29 08:25:56 1YcCGr-0008Bh-En == [email protected] R=dnslookup T=remote_smtp defer (111): Connection refused
2015-03-29 08:25:56 1YcCGr-0008Bh-En ** [email protected]: retry timeout exceeded
2015-03-29 08:25:56 1YcCHs-0008Ft-D2 <= <> R=1YcCGr-0008Bh-En U=exim P=local S=1600
2015-03-29 08:25:56 1YcCHs-0008Ft-D2 ** [email protected]: Unrouteable address
2015-03-29 08:25:56 1YcCHs-0008Ft-D2 Frozen (delivery error message)
2015-03-29 08:25:56 1YcCGr-0008Bh-En Completed
2015-03-29 08:26:00 Start queue run: pid=31739
2015-03-29 08:26:00 1YbwNr-0001eI-6d Message is frozen
2015-03-29 08:26:00 1YbwNs-0001ed-9v Message is frozen
2015-03-29 08:26:00 1YbwNs-0001eh-Eh Message is frozen
2015-03-29 08:26:00 1YcCHs-0008Ft-D2 Message is frozen
2015-03-29 08:26:00 1YbwNr-0001eM-DU Message is frozen
2015-03-29 08:26:00 1YbwNr-0001eQ-Mz Message is frozen
2015-03-29 08:26:00 1YbwNs-0001el-Jb Message is frozen
2015-03-29 08:26:00 1YbwXb-0001of-Lg Message is frozen
2015-03-29 08:26:00 1YbwNr-0001eV-UT Message is frozen
2015-03-29 08:26:00 1YbciU-0007vj-UP Message is frozen
2015-03-29 08:26:00 1YbwNr-0001eE-0B Message is frozen
2015-03-29 08:26:00 1YbwNs-0001eZ-50 Message is frozen
2015-03-29 08:26:00 End queue run: pid=31739
2015-03-29 08:52:56 1YcChz-0000Wq-88 <= [email protected] U=admin P=local S=729
2015-03-29 08:52:56 1YcChz-0000Wq-88 ** [email protected] R=dnslookup T=remote_smtp: retry time not reached for any host after a long failure period
2015-03-29 08:52:56 1YcCi0-0000Wu-N2 <= <> R=1YcChz-0000Wq-88 U=exim P=local S=1640
2015-03-29 08:52:56 1YcCi0-0000Wu-N2 ** [email protected]: Unrouteable address
2015-03-29 08:52:56 1YcCi0-0000Wu-N2 Frozen (delivery error message)
2015-03-29 08:52:56 1YcChz-0000Wq-88 Completed
2015-03-29 09:00:51 exim 4.72 daemon started: pid=2461, -q1h, listening for SMTP on port 25 (IPv6 and IPv4) port 587 (IPv6 and IPv4) port 2525 (IPv6 and IPv4) and for SMTPS on port 465 (IPv6 and IPv4)
2015-03-29 09:00:51 Start queue run: pid=2467
2015-03-29 09:00:51 1YcCi0-0000Wu-N2 Message is frozen
2015-03-29 09:00:51 1YbwNr-0001eV-UT Message is frozen
2015-03-29 09:00:52 1YbwNs-0001ed-9v Message is frozen
2015-03-29 09:00:52 1YbwXb-0001of-Lg Message is frozen
2015-03-29 09:00:52 1YbwNs-0001el-Jb Message is frozen
2015-03-29 09:00:52 1YbwNs-0001eh-Eh Message is frozen
2015-03-29 09:00:52 1YbwNr-0001eQ-Mz Message is frozen
2015-03-29 09:00:52 1YbwNr-0001eM-DU Message is frozen
2015-03-29 09:00:52 1YcCHs-0008Ft-D2 Message is frozen
2015-03-29 09:00:52 1YbwNr-0001eI-6d Message is frozen
2015-03-29 09:00:52 1YbciU-0007vj-UP Message is frozen
2015-03-29 09:00:52 1YbwNr-0001eE-0B Message is frozen
2015-03-29 09:00:52 1YbwNs-0001eZ-50 Message is frozen
2015-03-29 09:00:52 End queue run: pid=2467
2015-03-29 09:18:21 1YcD28-0000ue-Qb SIGINT received while reading local message
2015-03-29 09:18:29 exim 4.72 daemon started: pid=4662, -q1h, listening for SMTP on port 25 (IPv6 and IPv4) port 587 (IPv6 and IPv4) port 2525 (IPv6 and IPv4) and for SMTPS on port 465 (IPv6 and IPv4)
2015-03-29 09:18:29 Start queue run: pid=4663
2015-03-29 09:18:29 1YbwNs-0001eZ-50 Message is frozen
2015-03-29 09:18:29 1YbwNr-0001eV-UT Message is frozen
2015-03-29 09:18:29 1YbwXb-0001of-Lg Message is frozen
2015-03-29 09:18:29 1YbwNs-0001el-Jb Message is frozen
2015-03-29 09:18:29 1YcCHs-0008Ft-D2 Message is frozen
2015-03-29 09:18:29 1YbwNr-0001eQ-Mz Message is frozen
2015-03-29 09:18:29 1YbwNr-0001eM-DU Message is frozen
2015-03-29 09:18:29 1YbwNs-0001eh-Eh Message is frozen
2015-03-29 09:18:29 1YbwNs-0001ed-9v Message is frozen
2015-03-29 09:18:29 1YbwNr-0001eI-6d Message is frozen
2015-03-29 09:18:29 1YbciU-0007vj-UP Message is frozen
2015-03-29 09:18:29 1YbwNr-0001eE-0B Message is frozen
2015-03-29 09:18:29 1YcCi0-0000Wu-N2 Message is frozen
2015-03-29 09:18:29 End queue run: pid=4663
2015-03-29 09:19:57 1YcD89-0001N4-0q <= [email protected] U=admin P=local S=729
2015-03-29 09:19:57 1YcD89-0001N4-0q ** [email protected] R=dnslookup T=remote_smtp: retry time not reached for any host after a long failure period
2015-03-29 09:19:57 1YcD89-0001NI-Hi <= <> R=1YcD89-0001N4-0q U=exim P=local S=1640
2015-03-29 09:19:57 1YcD89-0001NI-Hi ** [email protected]: Unrouteable address
2015-03-29 09:19:57 1YcD89-0001NI-Hi Frozen (delivery error message)
2015-03-29 09:19:58 1YcD89-0001N4-0q Completed
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by skurudo » Sun Mar 29, 2015 2:29 pm

It's your problem - "Unrouteable address"

There is two way to solve this problem: 1) you can check closed or not your 25 port, and make setting for resolv/PRT/dns/hostname 2) use external mail for your messages - viewtopic.php?f=12&t=7422
Top

umuzidan
Posts: 19
Joined: Wed Jan 21, 2015 9:53 pm

Re: New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by umuzidan » Sun Mar 29, 2015 3:48 pm

Ok something is missing here.

I want my VCP server to only act as a web server, not host email for users. So, I only want VCP to send email notifications like when you create a new FTP user. I do not want to allow port 25 access INTO VCP.

When VCP sends an email, I want it to send it to my internal mail server, for example mail.example.com:8001 (yes, I mean on port 8001) and there is NO authentication - anonymous.

So, from what I learned, I think I need to update the /etc/exim/main.conf file. Can you please tell me where I specify my mail server and port?
Top

umuzidan
Posts: 19
Joined: Wed Jan 21, 2015 9:53 pm

Re: New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by umuzidan » Sun Mar 29, 2015 4:35 pm

I uncommented the smarthost section and added my server. After 30 minutes it just started working :)

/closed.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: New Install of Vestacp Won't Send Emails By Default
  • Quote

Post by skurudo » Mon Mar 30, 2015 5:02 pm

You're good ) Nice!
Top


Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “Web Interface”



  • 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