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

Mails not working

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
29 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Mails not working
  • Quote

Post by mehargags » Thu Feb 19, 2015 6:14 am

philly

check mail in your spam folder... usually a new server's mail is often trapped in SPAM/JUNK.

also open a new terminal and : tail -f /var/log/exim4/mainlog

then in another console issue this
echo "MailCheck- Test Mail sent $(date +"%T")" | mail -s Testing <youremailid.com>

then see in the Tail of exim log what happens to your email.

I'm no expert, but I've been exercising Email Sending problems very hard towards perfection... still learning!

The only way to debug is "check logs" (skurudo)
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Mails not working
  • Quote

Post by sanna » Thu Feb 19, 2015 4:08 pm

mehargags wrote:philly

check mail in your spam folder... usually a new server's mail is often trapped in SPAM/JUNK.

also open a new terminal and : tail -f /var/log/exim4/mainlog

then in another console issue this
echo "MailCheck- Test Mail sent $(date +"%T")" | mail -s Testing <youremailid.com>

then see in the Tail of exim log what happens to your email.

I'm no expert, but I've been exercising Email Sending problems very hard towards perfection... still learning!

The only way to debug is "check logs" (skurudo)
[root@srv1 exim]# tail -f /var/log/exim/main.log
2015-02-19 09:58:42 1YO0WV-0000Eg-T4 Message is frozen
2015-02-19 09:58:42 End queue run: pid=26686
2015-02-19 10:58:42 Start queue run: pid=31407
2015-02-19 10:58:42 1YNkg6-0007Q2-8z Message is frozen
2015-02-19 10:58:42 1YOMzy-0000NJ-Dl Message is frozen
2015-02-19 10:58:42 1YOD15-0005s1-FL Message is frozen
2015-02-19 10:58:42 1YO0WN-0008M8-GF Message is frozen
2015-02-19 10:58:42 1YO0WV-0000Eg-T4 Message is frozen
2015-02-19 10:58:42 1YON04-0000Oa-2E Message is frozen
2015-02-19 10:58:42 End queue run: pid=31407

after echo:
2015-02-19 11:10:22 1YOTgE-00005h-PK <= [email protected] U=root P=local S=422
2015-02-19 11:10:22 1YOTgE-00005h-PK ** [email protected] <[email protected]>: Unrouteable address
2015-02-19 11:10:22 1YOTgE-00005j-Rf <= <> R=1YOTgE-00005h-PK U=exim P=local S=1280
2015-02-19 11:10:22 1YOTgE-00005h-PK Completed
2015-02-19 11:10:22 1YOTgE-00005j-Rf ** [email protected]: Unrouteable address
2015-02-19 11:10:22 1YOTgE-00005j-Rf Frozen (delivery error message)
2015-02-19 11:11:17 1YOTh7-00005o-V0 <= [email protected] U=root P=local S=422
2015-02-19 11:11:17 1YOTh7-00005o-V0 ** [email protected] <[email protected]>: Unrouteable address
2015-02-19 11:11:17 1YOTh7-00005q-Vc <= <> R=1YOTh7-00005o-V0 U=exim P=local S=1280
2015-02-19 11:11:17 1YOTh7-00005o-V0 Completed
2015-02-19 11:11:18 1YOTh7-00005q-Vc ** [email protected]: Unrouteable address
2015-02-19 11:11:18 1YOTh7-00005q-Vc Frozen (delivery error message)

2015-02-19 11:12:31 1YOTiJ-00005z-Fu <= [email protected] U=root P=local S=422
2015-02-19 11:12:31 1YOTiJ-00005z-Fu ** [email protected] <[email protected]>: Unrouteable address
2015-02-19 11:12:31 1YOTiJ-000061-Gd <= <> R=1YOTiJ-00005z-Fu U=exim P=local S=1280
2015-02-19 11:12:31 1YOTiJ-000061-Gd ** [email protected]: Unrouteable address
2015-02-19 11:12:31 1YOTiJ-000061-Gd Frozen (delivery error message)
2015-02-19 11:12:31 1YOTiJ-00005z-Fu Completed

many thanks for support us :)
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Mails not working
  • Quote

Post by mehargags » Thu Feb 19, 2015 5:36 pm

Whats srv1.iacserver.com is that your hostname ?
cat /etc/hostname -- result?

do and exim -bt <[email protected]> for the addesses you see FROZEN queue and post results -- you may need the Magic Trick by Skurudo

nano /etc/exim4/exim4.conf.template
Change domains = !+local_domains to domains = *
to allow lookups for all domains

But if that is your local hosts -- why are you sending mails to yourself ?

may you need to do setup /etc/aliases
root = <your official email ID>
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Mails not working
  • Quote

Post by sanna » Thu Feb 19, 2015 10:32 pm

mehargags wrote:Whats srv1.iacserver.com is that your hostname ? YES
cat /etc/hostname -- result? no host

do and exim -bt <[email protected]> for the addesses you see FROZEN queue and post results -- you may need the Magic Trick by Skurudo

nano /etc/exim4/exim4.conf.template
Change domains = !+local_domains to domains = *
to allow lookups for all domains

But if that is your local hosts -- why are you sending mails to yourself ?

may you need to do setup /etc/aliases
root = <your official email ID>
many thanks,for help, my system: CentOS 5.9 32bit

"/etc/exim4/exim4.conf.template" I have /etc/exim/exim.conf not .template

if i do: setup /etc/aliases :

Text Mode Setup Utility 1.19.2 (c) 1999-2006 Red Hat, Inc.




┌────────┤ Choose a Tool ├─────────┐
│ │
│ Authentication configuration │
│ Firewall configuration │
│ Network configuration │
│ System services │
│ │
│ ┌──────────┐ ┌──────┐ │
│ │ Run Tool │ │ Quit │ │
│ └──────────┘ └──────┘ │
│ │
│ │
└──────────────────────────────────┘
What I have to do here.

my email is : affari @ mclink.it , I typed in the VestaCP installation
Top

philly75
Posts: 7
Joined: Thu Nov 06, 2014 12:11 am

Re: Mails not working
  • Quote

Post by philly75 » Fri Feb 20, 2015 2:14 pm

Exim still chooses to send out emails on random ports.

This is something to due with either vestacp configuration, clamvd, or something that is binding like this.
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Mails not working
  • Quote

Post by sanna » Fri Feb 20, 2015 10:41 pm

mehargags wrote:
But if that is your local hosts -- why are you sending mails to yourself ?

may you need to do setup /etc/aliases
root = <your official email ID>
in aliases I write this line:
root: [email protected]
# trap decode to catch security attacks
decode: root
# Person who should get root's mail
#root: iacopo

restarted Exim:

[root@srv1 /]# service exim restart
Shutting down exim: [ OK ]
Starting exim: [ OK ]

sent test email
[root@srv1 /]# echo test | mail -s "test message" root

no email in my inbox:
Last edited by sanna on Mon Mar 02, 2015 3:49 pm, edited 1 time in total.
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: Mails not working
  • Quote

Post by drMacFaulty » Sat Feb 21, 2015 11:11 am

This might also come in handy for you: http://bradthemad.org/tech/notes/exim_cheatsheet.php.
Here you can find commands which routes are picked when you send mail etc.

Hope this helps.
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Mails not working
  • Quote

Post by sanna » Sat Feb 21, 2015 9:58 pm

drMacFaulty wrote:This might also come in handy for you: http://bradthemad.org/tech/notes/exim_cheatsheet.php.
Here you can find commands which routes are picked when you send mail etc.

Hope this helps.
Many thanks for help me:drMac:

[root@srv1 ~]# exim -bP

[email protected]

148P Received: from exim by srv1.iacserver.com with local (Exim 4.77)
id 1YP5wz-0006px-Ru
for [email protected]; Sat, 21 Feb 2015 04:02:13 -0500
045 X-Failed-Recipients: [email protected]
029 Auto-Submitted: auto-replied
062F From: Mail Delivery System <[email protected]>
028T To: [email protected]
059 Subject: Mail delivery failed: returning message to sender
051I Message-Id: <[email protected]>
038 Date: Sat, 21 Feb 2015 04:02:13 -0500
Last edited by sanna on Mon Mar 02, 2015 3:50 pm, edited 1 time in total.
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Mails not working
  • Quote

Post by sanna » Tue Feb 24, 2015 11:59 pm

In Vesta panel:

admin
System Administrator
Bandwidth: 9mb
Disk: 57mb
Web: 55mb Databases: 2mb
Mail: 0mb User Directories: 1mb
Web Domains: 1 / 100
DNS Domains: 1 / 100
Mail Domains: 0 / 100
Databases: 2 / 100
Cron Jobs: 7 / 100
Backups: 3 / 3
Email: affari @ mclink.it ----> my email
Package: default
SSH Access: bash
IP Addresses: 1
Name Servers: ns1.iacserver.com
ns2.iacserver.com
Top

sanna
Posts: 53
Joined: Thu Feb 12, 2015 11:54 am

Re: Mails not working
  • Quote

Post by sanna » Sun Mar 01, 2015 9:50 pm

hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
104.194.14.77 srv1.iacserver.com srv1
Last edited by sanna on Mon Mar 02, 2015 3:51 pm, edited 1 time in total.
Top


Post Reply
  • Print view

29 posts
  • Previous
  • 1
  • 2
  • 3
  • 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