I created a new virtualmin server on Ubuntu 8.04 a few days ago, moving all my users to it from cPanel.
I’ve been really happy with it until now. While trying to solve the external mail client authentication nightmare (which was a success, damn saslauthd!), I’ve run in to an issue.
Earlier today I changed the hostname in the Postfix configuration, and now ALL mail is coming back bounced, with the following message:
Aug 18 15:22:13 kolacja postfix/error[7409]: 1AD121D2728: to=<:blackhole:@mydomain.net>, orig_to=, relay=none, delay=0.24, delays=0.23/0/0/0.01, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
Basically, ANY emails sent to users on the system get a bounce message as above showing in /var/log/mail.log. The end user receives the bounce message below.
Is there anything I can do to fix this, and quickly?
All I changed was adding the server’s IP in to /etc/resolv.conf (it didn’t seem to be there, but 127.0.0.1 was), and changing ‘myhostname’ in /etc/postfix/main.cf.
This is the mail system at host server.mydomain.net.
I’m sorry to have to inform you that your message could not
be delivered to one or more recipients. It’s attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
000.000.000.000 server.mydomain.net (removed IP/name)
# The following lines are desirable for IPv6 capable hosts
#(added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
feo0::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
I’ve restarted Postfix and restarted the server itself…
The /etc/hosts IP matches the primary IP for ifconfig eth0. However, there is an eth0:0 address that’s not listed in /etc/hosts, which is a second address tied to the first (IIRC) for a second nameserver IP.
Recheck config gives this output:
The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..
BIND DNS server is installed, and the system is configured to use it.
Mail server Postfix is installed and configured.
Apache is installed.
Webalizer is installed.
Apache is configured to host SSL websites.
MySQL is installed and running.
ProFTPd is installed.
Logrotate is installed.
SpamAssassin and Procmail are installed and configured for use.
ClamAV is installed and assumed to be running.
Plugin DAV Login is installed OK.
Plugin AWstats reporting is installed OK.
Plugin Mailman is installed OK.
Plugin Protected web directories is installed OK.
Using network interface eth0 for virtual IPs.
Default IP address for virtual servers is 000.000.000.000.
Both user and group quotas are enabled for home and email directories.
All commands needed to create and restore backups are installed.
Running cat /etc/mailname brings up the same host name (server.mydomain.net) as all the other commands.
The myhostname parameter was t.ickle.us previously. I used this to set up the server and configure Virtualmin, and then move the cPanel accounts from server.mydomain.net over to the new box before repointing the nameserver IPs for ns1.mydomain.net and ns2.mydomain.net at the two IPs on the new Virtualmin server.
Once that move was complete and all was working, I changed the hostname et al to server.mydomain.net. I only changed the myhostname parameter when someone pointed out they could see “t.ickle.us” in an email field, which naturally I wanted to change to match everything else.
I have considered changing this back to see if it starts working, however that’d just put me back to square one.
Would it help to test this to see if it un-breaks the email delivery? I’m just a bit worried as it’s quite pressing…
Hrm, after reading through the error message a few more times, I’m curious what happens if you add “mydomain.net” to your “mydestination” line in /etc/postfix/main.cf.
Add it in addition to what else is there, so that it’d look something like:
Which just points to the table of email address and aliases which I don’t quite understand yet (as in how they exactly route), but they look to make sense.
I can email this directly to you if you’d like to take a look, or login details for the server so you can inspect yourself, but don’t really want to post it in the forum directly!
You can either enable Remote Access via the Support Module, or simply email me the info.
You can send it to “eric@virtualmin.com” – be sure to include a link to this forum post in the message body.
It’s unfortunately probably going to be morning until I can take a look (it’s getting late on the Eastern coast of the US!), but I’ll look first thing when I get up if you’re able to get the login details to me.
Hey Eric i have a server that is doing the same thing… pritty much can you get a chance take a look at it… i will email you the information you need…
John
Can you post what you’re seeing in your email logs whenever an email is sent to your server? The mail logs are in either /var/log/mail.log or /var/log/maillog.
Knowing what error you’re seeing will simplify solving that… thanks!
If you have questions, it’s best to keep them in the forums here… it’s too hard to keep track of things over email as well! Plus, then others can take advantage of the information later