We deployed a brand new server today but to our surprise, we have encountered issues with email aliases not working. The mailboxes work however when someone sends an email to an alias, it gets a bounce back saying "user unknown" When looking in the logs, I find this: Why isn't this working?
I have attached the two files. The tutorial I used is the following: http://www.howtoforge.com/perfect-server-centos-6.0-x86_64-ispconfig-3
I guess the problem is that you removed the content filtering part, so that aliases are not resolved anyore on your server. Either you enable content filter again by removing the # in fron of the line: #content_filter = amavis:[127.0.0.1]:10024 or you disable this line as well: receive_override_options = no_address_mappings
Hi Till, Sorry to bump this but I have just come across the same issue. Code: Jan 6 09:42:38 server postfix/local[28138]: 1ABE310DFE: to=<[email protected]>, relay=local, delay=0.03, delays=0.01/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user: "admin") Of course the mailbox exists. I have also checked my main.cf and can confirm the content_filter = amavis:[127.0.0.1]:10024 is not hashed out. I tried also hashing out the "receive_override_options = no_address_mappings", but it doesn't seem to make any difference. Any ideas?
Just a guess, your server has w rong hostname. The hstname of a server has to be subdomain like server1.example.com, it may not be only example.com as this would result in making example.com inavailable for email and web.
Thanks Till. Sorry, forgot to mention I changed the name. The log has my domain name in there. However, it's not a subdomain, my FQDN is just xavserver.co.uk. Should it be mail.xavserver.co.uk (which is the address I use)? Before I reinstalled my server and ISPconfig (using the Ubuntu 14.04 LTS guide), my previous installation did just have xavserver.co.uk configured in the line myhostname = xavserver.co.uk and aliases were working...
Hmm, looks like it's not just for the alias. I have a real mailbox, admin [at] xavserver.co.uk, which I can log into. But if I try to send a mail to that address, it bounces. Code: Jan 6 11:23:34 xavserver postfix/smtpd[31074]: connect from localhost[127.0.0.1] Jan 6 11:23:34 xavserver postfix/trivial-rewrite[31065]: warning: do not list domain xavserver.co.uk in BOTH mydestination and virtual_mailbox_domains Jan 6 11:23:34 xavserver postfix/smtpd[31074]: AB55D10DFE: client=localhost[127.0.0.1] Jan 6 11:23:34 xavserver postfix/cleanup[31069]: AB55D10DFE: message-id=<[email protected]> Jan 6 11:23:34 xavserver postfix/qmgr[31052]: AB55D10DFE: from=<[email protected]>, size=959, nrcpt=1 (queue active) Jan 6 11:23:34 xavserver postfix/smtpd[31074]: disconnect from localhost[127.0.0.1] Jan 6 11:23:34 xavserver amavis[28859]: (28859-04) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <8c3a4bd464f12fb07 [email protected]>, mail_id: jTxwq7ufDLwg, Hits: -0.001, size: 513, queued_as: AB55D10DFE, 258 ms Jan 6 11:23:34 xavserver postfix/smtp[31070]: 6D7CA10E09: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.27, delays=0/0/0/0.26, dsn=2.0.0, st atus=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as AB55D10DFE) Jan 6 11:23:34 xavserver postfix/local[31121]: AB55D10DFE: to=<[email protected]>, relay=local, delay=0.02, delays=0/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "admin") Jan 6 11:23:34 xavserver postfix/bounce[31122]: AB55D10DFE: sender non-delivery notification: B007110E0AJan 6 11:23:34 xavserver postfix/qmgr[31052]: AB55D10DFE: removed Is the second line a pointer to the possible problem? It does appear to happen just to the mailbox who's domain is the same as that of the server...
Aha. Fixed Issue was this in the end: https://www.howtoforge.com/postfix-...oth-mydestination-and-virtual_mailbox_domains I commented out my domain name in "my destination" and it now works OK. Till, it might be worth adding a note in the guides about this: if you plan to use a mailbox with the same domain name, it needs to be removed from the "my destination" line in /etc/postfix/main.cf. I guess it's entered automatically as part of an install process...
If you followed the perfect server guide (which tells you to use a subdomain), then your domain name is not listed in mydestination. Like I explained above, the issue is caused by the wrong hostname.
Thanks. The perfect server guide uses a subdomain, but I thought it was just an example and don't remember seeing a comment pointing out that it HAS to be a subdomain and stating that a TLD won't work. I hadn't realised the importance of it at the time of installation.