Hi,
I got problems with incoming emails. They are not accepted somehow. I already checked the /etc/log/mail.log (Ubuntu System) and found a error corrosponding with a test email I just sent myself.
This means postfix doesnt know where to send incoming emails. Check main.cf and mydestination you should have there valid fully qualified domain name or host name.
Thanks so far
I checked that and I’m getting this error now:
Sep 13 16:49:56 hostname.tld postfix/cleanup[20030]: warning: 411BA1245DB: unreasonable virtual_alias_maps map nesting for email@domain.tld -- message not accepted, try again later
Ofc you should change “this-is.my-hostname.tld” to what is your hostname. If this doesnt work then you should post here what is your OS, postfix version with log files little longer than just one line as im sure the error did not show up only with that line. Then someone can check what could be wrong.
Just keep in mind that “this-is.my-hostname.tld” must be fqdn.
is now in main.cf. Where hostename.tld is the fqdn and domain.tld is a domain on which I would need to receive e-mail. I also tried replacing domain.tld with the hostname and some other arrangements. None of them work.
Whenever I send an email to the server I get this error in the error logfile:
Sep 13 18:21:17 domain postfix/smtpd[24111]: 112B91245DB: client=mail-wi0-f179.google.com[209.85.212.179]
Sep 13 18:21:17 domain postfix/cleanup[24183]: warning: 112B91245DB: unreasonable virtual_alias_maps map nesting for user@domain.tld – message not accepted, try again later
Sep 13 18:21:17 domain postfix/smtpd[24111]: disconnect from mail-wi0-f179.google.com[209.85.212.179]
Sadly i my prim OS is Centos so i’m not so familiar with Ubuntu. Best is to post log files and your main.cf and master.cf and see if someone can help you. Other solution is to ask Ubuntu community, usually they are quick and helpful but still you will need to provide your logfile with main/master.cf.
I had a look at that file and I couldn’t find an error in it.
I just had a lot of entries like:
domain.tld domain.tld
user@domain.tld some.other.email@gmail.com
domain.tld [name of corrosponding unix user]
user@domain.tld [name of corrosponding unix user] @domain.tldsome.other.email@gmail.com
I found
redirection@domain.tld redirection-domain.tld
which felt weird because of the dash instead of the dot. I commented that out but the problem still exists after reloading postfix.
EDIT: The problem does not exist with one particular user. I cannot receive emails for all accounts and domains.
Since you’re seeing a problem with all accounts/domains – maybe instead of reinstalling Postfix, as you mentioned in another Forum thread, you could instead try disabling the “Mail for Domain” feature in all Virtual Servers.
Then, verify that the “virtual” file here is empty.
Once it is empty, then re-enable the Mail for Domain feature.
That will re-generate all the entries in that file.
I’m curious if doing that allows email to start working again.
I disabled email, maillist, spam and virus filter on all domains (as you have to disable all email related in order to disable email). But I have one virtual server where I cannot deactivate email.
This server is called 144139361420765 and one day it just appeard out of nowwhere. I cannot delete, change anything as it always tells me that email/domain/something is wrong. This server has absolutly no configuration and every possible form field is empty. I simply deactivated this one and I wanted to solve this problem after my email problem is solved
I don’t think that this is in any connection to the email problem because this server appeared before there was trouble with the emails.
Ok, after deactivating the email for domain feature on the servers the “virtual” file is empty. When I activate the feature again it adds a row.
domain.tld domain.tld
This row is not correct as Mike pointed out in the askubuntu thread.
So email is working again Deactivating and reactivating everything solved it.
There is just the problem that the emails of another account/domain are saved to my email account. I double checked the configuration in Virtualmin. There is only the “master” user and one additional user. I tried to send an email to this additional user and it ended up in my mailbox.
I had a look in the virtual file, too. The email of that user maps correctly to the unix user.
From the mail.log I found out that the email was redirected to the main hostname account email (which redirects again to my personal but this is ok). I just went with disabling email for this domain and now everything is redirected etc. correctly.
So, thanks for your support and I guess I’ll open up a new thread when I’ll need to use email for the disabled domain :'D
Here same kind of problem. please read bottom note
Thanks Eric this disabling enabling worked does anyone know reason?
While entries look the same after.
When problem was there the smtp header sending used as should ipv6 hostname adress, after disable enable then the ipv4 is in smtp header when sending out.
So maybe a conflicting part wen configuring ipv6 for postfix and settings are saved, though sending mails worked, ???
only receiving then
For alias virtualserver users it still doesn’t work
still also with new users status=bounced (User unknown in virtual alias table)
Problem exist if you use for the hostname as alias virtualmin server with mail. ( disable mail for “hostname alias” and then this problem is solved)
Don’t know if this is in HOWTO WIKI or DOCU? (is looping in such config setting)