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

messed up hostname, no emails from server anymore when setting accounts up- no emails are received

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
25 posts
  • 1
  • 2
  • 3
  • Next
webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by webass » Mon Mar 21, 2016 7:07 pm

Hi,
I dont know what I did wrong and why this even after reverting the setting makes problems.

I regularly received mails when I setup an FTP or DB account.
All fine. Server has sent them to the email address provided..

Then I changed the hostname from mail.pornomaterial.com to pornomaterial.com

and it stopped sending emails.

I first thought it was only not sending these internal emails, from server after account setup. But now I recognized it doesnt receive emails anymore.
Then I changed the hostname back to mail.pornomaterial.com

My setup in general:
external DNS setting to domains I run on this server are only done over domain provider inwx.de
I dont use DNS on vestacp at all.
Ubuntu 14
exim4 is mail server
dovecot is pop/imap

one email runs over google apps which also has a domain on vesta.

I wanted to also setup new email accounts but the thunderbird dont use mail.newdomain.de at all but only the domain name which is hostname is accepted when I set up.
So, I am really confused.

I also restarted the whole server but

Code: Select all

benutzer@mail:~$ hostname
mail.pornomaterial.com
benutzer@mail:~$ cat /etc/hosts
127.0.0.1       localhost
5.79.72.116     pornomaterial.com mail.pornomaterial.com

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Normally I want also to set up a new email account to a new domain and that it takes outoging server from THIS new domain, but this doesnt work anymore.

Please help anybody.

Andre

Edit: It BTW sends emails so that they are in sent objects (when using the hostname as outoing) but they never arrive.
And it doesnt receive any emails anymore

Edit 2: What I really dont udnerstand is, when I changed mail.pornomaterial.com to pornomaterial.com it stopped delivering emails and receiving. But I jsut reverted this setting, and I dont get why it just doesnt start working again.
Too much for me. It was just this small setting, got reverted but doesnt help.

Maybe can one help with this at first?
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by webass » Thu Mar 24, 2016 11:47 am

What can I do?
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by webass » Fri Mar 25, 2016 2:15 am

I reconfigured now exim4 several times adn also improved the hostname and FQDN I think
but it still doesnt work fully

I have seen that the exim was only setup as local machine. Now i used it with the first point "internet"

Cause I set the internat setting right it delivers now email FROM linux to my emails like when I create an FTP accoint.

But when I want to actually use email it says 550 relay not permitted.

I cannot find more problems.
Top

Sanity
Posts: 167
Joined: Tue Apr 08, 2014 9:10 am
Contact:
Contact Sanity
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by Sanity » Fri Mar 25, 2016 7:25 am

In the exim configuration file, try to disable clamd.
its location: /etc/exim4/exim4.conf.template

like this:

SPAMASSASSIN = yes
SPAM_SCORE = 50
#CLAMD = yes
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by webass » Fri Mar 25, 2016 11:31 am

Hi,
thanks for the answer.

I have the same problem again, when I tried to change authentication like found in a servervault solution the things to change arent in the file, u no?

Here is the pastedd file...
its not in there: http://pastebin.com/1UrCEAqH
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by webass » Fri Mar 25, 2016 12:18 pm

Maybe this would be a solution?

Code: Select all

update-rc.d -f clamav-daemon remove
Found here: https://www.lowendtalk.com/discussion/3 ... amassassin

Or also like found in our forum here: viewtopic.php?t=6625

Oh, I found in the exim conf file:

Code: Select all

# If you are running exim4-daemon-heavy or a custom version of Exim that
# was compiled with the content-scanning extension, you can cause incoming
# messages to be automatically scanned for viruses. You have to modify the
# configuration in two places to set this up. The first of them is here,
# where you define the interface to your scanner. This example is typical
# for ClamAV; see the manual for details of what to set for other virus
# scanners. The second modification is in the acl_check_data access
# control list.

# av_scanner = clamd:/var/run/clamav/clamd.ctl
So its not enabled in there.

I have setup a test email. With my hostname and hosts settings thunderbird wasnt able to connect.
Then I changed the hostname again
before it was pm2016
now it is again mail.domain.com

Why does this need to be done in vestacp according to documentation??

Okay, sent a testmail from google to it, again
550 relay ...

What can I do. am becoming really desperate

And sending doesnt work at all also from this testmail: relay not permitted.
Top

Sanity
Posts: 167
Joined: Tue Apr 08, 2014 9:10 am
Contact:
Contact Sanity
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by Sanity » Sat Mar 26, 2016 8:54 am

Do i what i say!

In the exim configuration file, try to disable clamd.
its location: /etc/exim4/exim4.conf.template

like this:

SPAMASSASSIN = yes
SPAM_SCORE = 50
#CLAMD = yes --> here

and restart the service

/etc/init.d/exim4 restart

try this!!
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by webass » Sat Mar 26, 2016 9:26 am

You mean, I should ADD these lines at the bottom, probably.
Sorry, I understood I should look for these lines, cause they arent there.
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by webass » Sat Mar 26, 2016 9:32 am

I did.
Sent test mail from gmail to test@

Reply
Delivery to the following recipient failed permanently:

[email protected]

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

The error that the other server returned was:
550 relay not permitted
and in email client from the older emailaccount it restists to send caus relay not permitted also

There is any deeper problem. I will show all gathered details in any next post.
Top

webass
Posts: 86
Joined: Sat Nov 15, 2014 1:16 am
Contact:
Contact webass
Skype

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: messed up hostname, no emails from server anymore when setting accounts up- no emails are received
  • Quote

Post by webass » Tue Apr 05, 2016 8:57 am

I would like tzo reconfigure exim so that it simply works again.
No email sending so far possible.
Please tell me how I can revert to a working setup.
These are the settings:
Domain settings in domain provider panel (which I didnt touch since this happened)
Image
cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.1.1 pm2016.pornomaterial.com pm2106
5.79.72.116 pornomaterial.com mail.pornomaterial.com pornomaterial pm2016

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
hostname
mail.pornomaterial.com
Exim4 config:

dc_eximconfig_configtype='internet'
dc_other_hostnames='mail.pornomaterial.com; http://www.pornomaterial.com; pm2016.pornomaterial.com; pm2016; local.localdomain; localhost'
dc_local_interfaces='127.0.0.1 ; ::1; 5.79.72.116'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'
Other domains

mail.pornomaterial.com; http://www.pornomaterial.com; pm2016.pornomaterial.com; pm2016; local.localdomain; localhost
Top


Post Reply
  • Print view

25 posts
  • 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