[SOLVED] Old domain name still tries to receive mail - and blocks mail send

The old domain had its name changed from old.com to new.com

All mailboxes were deleted.

Now, when trying to send an Email from the server (command line. Either ‘mail’ or ‘mutt’), to user@old.com the message is not being sent, and this is the /var/log/maillog for the relevant message:

Oct 1 10:00:00 hostname postfix/pickup[29993]: 58714D08F: uid=0 from=<root> Oct 1 10:00:00 hostname postfix/cleanup[29998]: 58714D08F: message-id=<20111009112637.58714D08F@server.com> Oct 1 10:00:00 hostname postfix/qmgr[29994]: 58714D08F: from=<root@server.com>, size=24502, nrcpt=1 (queue active) Oct 1 10:00:00 hostname postfix/error[30000]: 58714D08F: to=<user@old.com>, relay=none, delay=0.05, delays=0.03/0.01/0/0.01, dsn=5.0.0, status=bounced (User unknown in virtual alias table) Oct 1 10:00:00 hostname postfix/cleanup[29998]: 5FEF6D0AC: message-id=<20111009112637.5FEF6D0AC@server.com> Oct 1 10:00:00 hostname postfix/qmgr[29994]: 5FEF6D0AC: from=<>, size=26219, nrcpt=1 (queue active) Oct 1 10:00:00 hostname postfix/bounce[30001]: 58714D08F: sender non-delivery notification: 5FEF6D0AC Oct 1 10:00:00 hostname postfix/qmgr[29994]: 58714D08F: removed Oct 1 10:00:00 hostname postfix/local[30002]: 5FEF6D0AC: to=<root@server.com>, relay=local, delay=0.05, delays=0.01/0.01/0/0.04, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME) Oct 1 10:00:00 hostname postfix/qmgr[29994]: 5FEF6D0AC: removed

Sending mails to an outside address has no problems.

The thing is, that the user@old.com should also be considered as an outside address, and it doesn’t.

Some additional data:

hostname:
hostname.com (IE: not old.com and not new.com)

mydestination = $myhostname, localhost.$mydomain
(I tried even removing this line, or manually changing it, but the errors remain.)

The old.com domain name is located on a different server, with a different IP address.

Is there any idea regarding a possible solution or at least other examinations directions?

Thanks!

Howdy,

Now, when trying to send an Email from the server (command line. Either ‘mail’ or ‘mutt’)

Wow, a fellow mutt user, it’s been awhile since I’ve run into someone else who uses that :slight_smile:

The thing is, that the user@old.com should also be considered as an outside address, and it doesn’t.

My hunch is that one of the entries for old.com wasn’t removed from the /etc/postfix/virtual file.

Normally, that’s done for you when the domain is removed or renamed, but something may have gone awry during that process.

Try searching the /etc/postfix/virtual file for “old.comf”, do you see any entries?

If so, you can delete those, and then run this command:

postmap /etc/postfix/virtual

After that, does email go out as you’d expect?

-Eric

Removing the references to the old.com domain name did the job.

Eric, thanks a lot for the tip!

The amount of trouble and headache that postfix has given me up until today, is simply unbelievable.

And yet, it’s such an effective and well-written system…

Thanks a bundle Eric!!!