Page 1 of 1

No email goes out of vesta

Posted: Mon Mar 26, 2018 3:59 pm
by tegralens
So I am not interested in incoming emails. I just want my admin emails from cron jobs and anything else vestacp related to be able to be sent from my server to whatever email i want. Except its not working. Below is a log file I found. main.log. Thanks in advance

2018-03-26 09:13:18 1ezQZL-0004pn-7y H=mta6.am0.yahoodns.net [74.6.137.63] Connection timed out
2018-03-26 09:13:18 1ezQZL-0004pn-7y == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2018-03-26 09:13:18 1ezQR2-0004Qt-F6 == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'yahoo.com'
2018-03-26 09:13:18 1ezQZL-0004pq-8k == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'yahoo.com'
2018-03-26 09:13:18 1ezRCE-0000ur-TA == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'yahoo.com'
2018-03-26 09:13:18 1ezmxc-0003fn-Vt Message is frozen
2018-03-26 09:13:18 1eznfK-00048c-7a Message is frozen
2018-03-26 09:13:18 1ezojb-0004rx-PR Message is frozen
2018-03-26 09:13:18 1f0ACy-0002lX-R0 Message is frozen
2018-03-26 09:13:18 End queue run: pid=25477
2018-03-26 10:11:10 Start queue run: pid=27897
2018-03-26 10:11:10 1f0AAv-0002lR-FQ Message is frozen
2018-03-26 10:13:18 1ezQZL-0004pn-7y H=mta6.am0.yahoodns.net [98.136.102.54] Connection timed out
2018-03-26 10:13:18 1ezQZL-0004pn-7y == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2018-03-26 10:13:18 1ezQR2-0004Qt-F6 == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'yahoo.com'
2018-03-26 10:13:18 1ezQZL-0004pq-8k == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'yahoo.com'
2018-03-26 10:13:18 1ezRCE-0000ur-TA == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'yahoo.com'
2018-03-26 10:13:18 1ezmxc-0003fn-Vt Message is frozen
2018-03-26 10:13:18 1ezn5q-0003m9-1j Message is frozen
2018-03-26 10:13:18 1eznfK-00048c-7a Message is frozen
2018-03-26 10:13:18 1ezojb-0004rx-PR Message is frozen
2018-03-26 10:13:18 1f0ACy-0002lX-R0 Message is frozen
2018-03-26 10:13:18 1f0ALB-0002se-Sn Message is frozen
2018-03-26 10:13:18 1f0ARL-0002vu-NB Message is frozen
2018-03-26 10:13:18 End queue run: pid=27897
2018-03-26 11:11:10 Start queue run: pid=30790
2018-03-26 11:11:10 1f0ALB-0002se-Sn Message is frozen
2018-03-26 11:11:10 1ezojb-0004rx-PR Message is frozen
2018-03-26 11:11:10 1eznfK-00048c-7a Message is frozen
2018-03-26 11:11:10 1ezn5q-0003m9-1j Message is frozen
2018-03-26 11:13:18 1ezQZL-0004pn-7y H=mta7.am0.yahoodns.net [98.136.102.55] Connection timed out
2018-03-26 11:15:25 1ezQZL-0004pn-7y H=mta7.am0.yahoodns.net [66.218.85.52] Connection timed out
2018-03-26 11:15:25 1ezQZL-0004pn-7y == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2018-03-26 11:17:33 1ezQR2-0004Qt-F6 H=mta5.am0.yahoodns.net [98.137.159.27] Connection timed out
2018-03-26 11:17:33 1ezQR2-0004Qt-F6 == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2018-03-26 11:17:33 1ezQZL-0004pq-8k == [email protected] R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host for 'yahoo.com'
2018-03-26 11:19:40 1ezRCE-0000ur-TA H=mta7.am0.yahoodns.net [74.6.137.63] Connection timed out
2018-03-26 11:19:40 1ezRCE-0000ur-TA == [email protected] R=dnslookup T=remote_smtp defer (110): Connection timed out
2018-03-26 11:19:40 1ezmxc-0003fn-Vt Message is frozen
2018-03-26 11:19:40 1f0AAv-0002lR-FQ Message is frozen
2018-03-26 11:19:40 1f0ACy-0002lX-R0 Message is frozen
2018-03-26 11:19:40 1f0ARL-0002vu-NB Message is frozen
2018-03-26 11:19:40 End queue run: pid=30790

Re: No email goes out of vesta

Posted: Sun Apr 29, 2018 10:21 am
by siaziz
any solution ?

Re: No email goes out of vesta

Posted: Tue Jul 24, 2018 2:17 pm
by tegralens
Nope nothing. I guess vestacp doesnt send emails out of the box after install.

Re: No email goes out of vesta

Posted: Fri Aug 03, 2018 1:13 pm
by ScIT
Copy&Paste of my answer from your other thread:

Are you sure, that your reserve dns configuration is set properly? Do you can connect manually to the target e-mail server (you can check this with using telnet -> https://www.port25.com/how-to-check-an- ... session-2/)? Also you can check if your server ip is on any blacklist or has any missconfiguration in smtp using www.mxtoolbox.com

Of course you're also free to take the vestacp commercial support, so you also can support the project.

Re: No email goes out of vesta

Posted: Fri Aug 03, 2018 2:06 pm
by tegralens
I see this from mxtoolbox.

Connecting to x.x.x.x

220 domain.com ESMTP Exim 4.90_1 Fri, 03 Aug 2018 09:04:07 -0500 [5669 ms]
EHLO EC2AMAZ-14J9QQI.mxtoolbox.com
250-domain.com Hello ec2-52-91-228-101.compute-1.amazonaws.com [52.91.228.101]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-CHUNKING
250-STARTTLS
250 HELP [626 ms]
MAIL FROM:<[email protected]>
250 OK [609 ms]
RCPT TO:<[email protected]>
550 relay not permitted [814 ms]

LookupServerv2 8125ms

Re: No email goes out of vesta

Posted: Fri Aug 03, 2018 2:11 pm
by ScIT
Please also try to understand what I write, infact this is the last thing on my written points. Also this test is for incoming e-mail, like you've written you want to check outgoing connection, so telnet would be a good point to do some research and debugging.

Re: No email goes out of vesta

Posted: Mon Aug 06, 2018 6:30 pm
by tegralens
This is ridiculous why should i have to do this. when I just installed this ? Port 25 is open.


PORT STATE SERVICE
25/tcp open smtp

Re: No email goes out of vesta

Posted: Mon Aug 06, 2018 6:42 pm
by ScIT
it isnt ridiculous, you just understand it. I think there is some lack on server/linux knowledge.

the idea behind the telnet check is that you can check the connectivity to the target server, so you can see if you can connect properly and if the server accepts your commands.

You have a lot of connection timeouts in your log, so the target server seems not to accept your requests or you've maybe a network issue.

Re: No email goes out of vesta

Posted: Wed Aug 08, 2018 6:12 pm
by tegralens
Is there something wrong with this file. /etc/exim/exim.conf

Code: Select all

######################################################################
#                                                                    #
#          Exim configuration file for Vesta Control Panel           #
#                                                                    #
######################################################################

SPAMASSASSIN = yes
SPAM_SCORE = 50
CLAMD =  yes

add_environment = <; PATH=/bin:/usr/bin
keep_environment =
disable_ipv6=true
domainlist local_domains = dsearch;/etc/exim/domains/
domainlist relay_to_domains = dsearch;/etc/exim/domains/
hostlist relay_from_hosts = 127.0.0.1
hostlist whitelist = net-iplsearch;/etc/exim/white-blocks.conf
hostlist spammers = net-iplsearch;/etc/exim/spam-blocks.conf
no_local_from_check
untrusted_set_sender = *
acl_smtp_connect = acl_check_spammers
acl_smtp_mail = acl_check_mail
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
acl_smtp_mime = acl_check_mime

.ifdef SPAMASSASSIN
spamd_address = 127.0.0.1 783
.endif

.ifdef CLAMD
av_scanner = clamd: /var/run/clamav/clamd.sock
.endif

tls_advertise_hosts = *
tls_certificate = /usr/local/vesta/ssl/certificate.crt
tls_privatekey = /usr/local/vesta/ssl/certificate.key

daemon_smtp_ports = 25 : 465 : 587 : 2525
tls_on_connect_ports = 465
never_users = 
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 5s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d

DKIM_DOMAIN = ${lc:${domain:$h_from:}}
DKIM_FILE = /etc/exim/domains/${lc:${domain:$h_from:}}/dkim.pem
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}



######################################################################
#                       ACL CONFIGURATION                            #
#         Specifies access control lists for incoming SMTP mail      #
######################################################################
begin acl

acl_check_spammers:
  accept  hosts         = +whitelist

  drop    message       = Your host in blacklist on this server.
          log_message   = Host in blacklist
          hosts         = +spammers

  accept


acl_check_mail:
  deny    condition     = ${if eq{$sender_helo_name}{}}
          message       = HELO required before MAIL

  drop    message       = Helo name contains a ip address (HELO was $sender_helo_name) and not is valid
          condition     = ${if match{$sender_helo_name}{\N((\d{1,3}[.-]\d{1,3}[.-]\d{1,3}[.-]\d{1,3})|([0-9a-f]{8})|([0-9A-F]{8}))\N}{yes}{no}}
          condition     = ${if match {${lookup dnsdb{>: defer_never,ptr=$sender_host_address}}\}{$sender_helo_name}{no}{yes}}
          delay         = 45s

  drop    condition     = ${if isip{$sender_helo_name}}
          message       = Access denied - Invalid HELO name (See RFC2821 4.1.3)

  drop    condition     = ${if eq{[$interface_address]}{$sender_helo_name}}
          message       = $interface_address is _my_ address

  accept


acl_check_rcpt:
  accept  hosts         = :

  deny    message       = Restricted characters in address
          domains       = +local_domains
          local_parts   = ^[.] : ^.*[@%!/|]

  deny    message       = Restricted characters in address
          domains       = !+local_domains
          local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./

  require verify        = sender

  accept  hosts         = +relay_from_hosts
          control       = submission

  accept  authenticated = *
          control       = submission/domain=

  deny    message       = Rejected because $sender_host_address is in a black list at $dnslist_domain\n$dnslist_text
          hosts         = !+whitelist
          dnslists      = ${readfile {/etc/exim/dnsbl.conf}{:}}

  require message       = relay not permitted
          domains       = +local_domains : +relay_to_domains

  deny    message       = smtp auth requried
         sender_domains = +local_domains
         !authenticated = *

  require verify        = recipient

.ifdef CLAMD
  warn    set acl_m0    = no

  warn    condition     = ${if exists {/etc/exim/domains/$domain/antivirus}{yes}{no}}
          set acl_m0    = yes
.endif

.ifdef SPAMASSASSIN
  warn    set acl_m1    = no

  warn    condition     = ${if exists {/etc/exim/domains/$domain/antispam}{yes}{no}}
          set acl_m1    = yes
.endif

  accept


acl_check_data:
.ifdef CLAMD
  deny   message        = Message contains a virus ($malware_name) and has been rejected
         malware        = *
         condition      = ${if eq{$acl_m0}{yes}{yes}{no}}
.endif

.ifdef SPAMASSASSIN
  warn   !authenticated = *
         hosts          = !+relay_from_hosts
         condition      = ${if < {$message_size}{100K}}
         condition      = ${if eq{$acl_m1}{yes}{yes}{no}}
         spam           = spamd:true/defer_ok
         add_header     = X-Spam-Score: $spam_score_int
         add_header     = X-Spam-Bar: $spam_bar
         add_header     = X-Spam-Report: $spam_report
         set acl_m2     = $spam_score_int

  warn   condition      = ${if !eq{$acl_m2}{} {yes}{no}}
         condition      = ${if >{$acl_m2}{SPAM_SCORE} {yes}{no}}
         add_header     = X-Spam-Status: Yes
         message        = SpamAssassin detected spam (from $sender_address to $recipients).
.endif

  accept


acl_check_mime:
  deny   message        = Blacklisted file extension detected
         condition      = ${if match {${lc:$mime_filename}}{\N(\.ade|\.adp|\.bat|\.chm|\.cmd|\.com|\.cpl|\.exe|\.hta|\.ins|\.isp|\.jse|\.lib|\.lnk|\.mde|\.msc|\.msp|\.mst|\.pif|\.scr|\.sct|\.shb|\.sys|\.vb|\.vbe|\.vbs|\.vxd|\.wsc|\.wsf|\.wsh)$\N}{1}{0}}

  accept



######################################################################
#                   AUTHENTICATION CONFIGURATION                     #
######################################################################
begin authenticators

dovecot_plain:
  driver = dovecot
  public_name = PLAIN
  server_socket = /var/run/dovecot/auth-client
  server_set_id = $auth1

dovecot_login:
  driver = dovecot
  public_name = LOGIN
  server_socket = /var/run/dovecot/auth-client
  server_set_id = $auth1


######################################################################
#                      ROUTERS CONFIGURATION                         #
#               Specifies how addresses are handled                  #
######################################################################
begin routers

smarthost:
  driver = manualroute
  domains = ! +local_domains
  transport = remote_smtp
  route_list = * smartrelay.vestacp.com
  no_more
  no_verify

dnslookup:
  driver = dnslookup
  domains = !+local_domains
  transport = remote_smtp
  no_more

userforward:
  driver = redirect
  check_local_user
  file = $home/.forward
  allow_filter
  no_verify
  no_expn
  check_ancestor
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply

procmail:
  driver = accept
  check_local_user
  require_files = ${local_part}:+${home}/.procmailrc:/usr/bin/procmail
  transport = procmail
  no_verify

autoreplay:
  driver = accept
  require_files = /etc/exim/domains/$domain/autoreply.${local_part}.msg
  condition = ${if exists{/etc/exim/domains/$domain/autoreply.${local_part}.msg}{yes}{no}}
  retry_use_local_part
  transport = userautoreply
  unseen

aliases:
  driver = redirect
  headers_add = X-redirected: yes
  data = ${extract{1}{:}{${lookup{$local_part@$domain}lsearch{/etc/exim/domains/$domain/aliases}}}}
  require_files = /etc/exim/domains/$domain/aliases
  redirect_router = dnslookup
  pipe_transport = address_pipe
  unseen

localuser_fwd_only:
  driver = accept
  transport = devnull
  condition = ${if exists{/etc/exim/domains/$domain/fwd_only}{${lookup{$local_part}lsearch{/etc/exim/domains/$domain/fwd_only}{true}{false}}}}

localuser_spam:
  driver = accept
  transport = local_spam_delivery
  condition = ${if eq {${if match{$h_X-Spam-Status:}{\N^Yes\N}{yes}{no}}} {${lookup{$local_part}lsearch{/etc/exim/domains/$domain/passwd}{yes}{no_such_user}}}}

localuser:
  driver = accept
  transport = local_delivery
  condition = ${lookup{$local_part}lsearch{/etc/exim/domains/$domain/passwd}{true}{false}}

catchall:
  driver = redirect
  headers_add = X-redirected: yes
  require_files = /etc/exim/domains/$domain/aliases
  data = ${extract{1}{:}{${lookup{*@$domain}lsearch{/etc/exim/domains/$domain/aliases}}}}
  file_transport = local_delivery
  redirect_router = dnslookup

terminate_alias:
  driver = accept
  transport = devnull
  condition = ${lookup{$local_part@$domain}lsearch{/etc/exim/domains/$domain/aliases}{true}{false}}



######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
begin transports

remote_smtp:
  driver = smtp
  #helo_data = $sender_address_domain
  dkim_domain = DKIM_DOMAIN
  dkim_selector = mail
  dkim_private_key = DKIM_PRIVATE_KEY
  dkim_canon = relaxed
  dkim_strict = 0

procmail:
  driver = pipe
  command = "/usr/bin/procmail -d $local_part"
  return_path_add
  delivery_date_add
  envelope_to_add
  user = $local_part
  initgroups
  return_output

local_delivery:
  driver = appendfile
  maildir_format
  maildir_use_size_file
  user = ${extract{2}{:}{${lookup{$local_part}lsearch{/etc/exim/domains/$domain/passwd}}}}
  group = mail
  create_directory
  directory_mode = 770
  mode = 660
  use_lockfile = no
  delivery_date_add
  envelope_to_add
  return_path_add
  directory = "${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim/domains/$domain/passwd}}}}/mail/$domain/$local_part"
  quota = ${extract{6}{:}{${lookup{$local_part}lsearch{/etc/exim/domains/$domain/passwd}}}}M
  quota_warn_threshold = 75%

local_spam_delivery:
  driver = appendfile
  maildir_format
  maildir_use_size_file
  user = ${extract{2}{:}{${lookup{$local_part}lsearch{/etc/exim/domains/$domain/passwd}}}}
  group = mail
  create_directory
  directory_mode = 770
  mode = 660
  use_lockfile = no
  delivery_date_add
  envelope_to_add
  return_path_add
  directory = "${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim/domains/$domain/passwd}}}}/mail/$domain/$local_part/.Spam"
  quota = ${extract{6}{:}{${lookup{$local_part}lsearch{/etc/exim/domains/$domain/passwd}}}}M
  quota_directory = "${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim/domains/$domain/passwd}}}}/mail/$domain/$local_part"
  quota_warn_threshold = 75%

address_pipe:
  driver = pipe
  return_output

address_file:
  driver = appendfile
  delivery_date_add
  envelope_to_add
  return_path_add

address_reply:
  driver = autoreply

userautoreply:
  driver = autoreply
  file = /etc/exim/domains/$domain/autoreply.${local_part}.msg
  from = "${local_part}@${domain}"
  headers = Content-Type: text/plain; charset=utf-8;\nContent-Transfer-Encoding: 8bit
  subject = "${if def:h_Subject: {Autoreply: \"${rfc2047:$h_Subject:}\"} {Autoreply Message}}"
  to = "${sender_address}"

devnull:
  driver = appendfile
  file = /dev/null


######################################################################
#                      RETRY CONFIGURATION                           #
######################################################################
begin retry

# Address or Domain    Error       Retries
# -----------------    -----       -------
*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h



######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################
begin rewrite


######################################################################

Re: No email goes out of vesta

Posted: Fri Aug 10, 2018 4:04 pm
by tegralens
I am dumping this and going with https://cyberpanel.net which actually works and includes mod security as well and email worked without any issues. Thanks anyway