Moving mydomain.com but not mx record issue

Hmm, there’s an error in your email logs, but I don’t see that particular line within your Postfix config.

I’m curious what happens if you restart Postfix, which you can do with this command:

/etc/init.d/postfix restart

After running that command, do you see any errors in the mail log?

If not, are you then able to receive email?

-Eric

Apr 4 20:31:26 aserver1 postfix/error[17878]: 1C52D1621832: to=root@dk, orig_to=,

relay=none, delay=33683, delays=33683/0.17/0/0.07, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:31:26 aserver1 postfix/error[17871]: 4189F162187A: to=root@dk, orig_to=, relay=none, delay=29484, delays=29483/0.17/0/0.08, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:31:26 aserver1 postfix/error[17829]: 100711621914: to=info.nygammaltkok@dk, orig_to=info@nygammaltkok.se, relay=none, delay=17361, delays=17360/0.21/0/0.06, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:31:26 aserver1 postfix/error[17875]: D57991621916: to=bladh.g.scandoor@dk, orig_to=bladh.g@scandoor.com, relay=none, delay=17319, delays=17319/0.21/0/0.06, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:31:26 aserver1 postfix/error[17883]: 6D07C162190B: to=root@dk, orig_to=, relay=none, delay=24083, delays=24083/0.21/0/0.06, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:31:26 aserver1 postfix/error[17884]: 62B1716218A2: to=root@dk, orig_to=, relay=none, delay=25283, delays=25283/0.21/0/0.05, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:36:27 aserver1 postfix/qmgr[4431]: EC0CF162194D: from=www-data@dk, size=8162, nrcpt=1 (queue active)

Apr 4 20:36:27 aserver1 postfix/qmgr[4431]: 8DA6C1621935: from=www-data@dk, size=8162, nrcpt=1 (queue active)

Apr 4 20:36:27 aserver1 postfix/qmgr[4431]: 54B231621953: from=www-data@dk, size=8162, nrcpt=1 (queue active)

Apr 4 20:36:27 aserver1 postfix/qmgr[4431]: 00E291621945: from=www-data@dk, size=8162, nrcpt=1 (queue active)

Apr 4 20:36:27 aserver1 postfix/qmgr[4431]: 3D3501621919: from=www-data@dk, size=8150, nrcpt=1 (queue active)

Apr 4 20:36:27 aserver1 postfix/qmgr[4431]: 19B3B1621927: from=www-data@dk, size=8150, nrcpt=1 (queue active)

Apr 4 20:36:27 aserver1 postfix/qmgr[4431]: BA8741621951: from=www-data@dk, size=8162, nrcpt=1 (queue active)

Apr 4 20:36:27 aserver1 postfix/smtp[18258]: EC0CF162194D: to=root@dk, orig_to=, relay=none, delay=2184, delays=2184/0.01/0.01/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:36:27 aserver1 postfix/smtp[18261]: 00E291621945: to=root@dk, orig_to=, relay=none, delay=4584, delays=4584/0.02/0.01/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:36:27 aserver1 postfix/smtp[18264]: 3D3501621919: to=root@dk, orig_to=, relay=none, delay=17184, delays=17184/0.02/0.01/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:36:27 aserver1 postfix/smtp[18260]: 54B231621953: to=root@dk, orig_to=, relay=none, delay=384, delays=384/0.01/0.01/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:36:27 aserver1 postfix/smtp[18259]: 8DA6C1621935: to=root@dk, orig_to=, relay=none, delay=8783, delays=8783/0.01/0.01/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:36:27 aserver1 postfix/error[18268]: 19B3B1621927: to=root@dk, orig_to=, relay=none, delay=12984, delays=12984/0.11/0/0.04, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:36:27 aserver1 postfix/error[18269]: BA8741621951: to=root@dk, orig_to=, relay=none, delay=983, delays=983/0.11/0/0.05, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dk type=MX: Host not found, try again)

Apr 4 20:37:16 aserver1 postfix/master[1928]: terminating on signal 15

Apr 4 20:37:16 aserver1 postfix/master[18684]: daemon started – version 2.9.6,
configuration /etc/postfix

Apr 4 20:40:03 aserver1 postfix/pickup[18687]: C485C1621955: uid=33 from=

Apr 4 20:40:03 aserver1 postfix/cleanup[18802]: C485C1621955: message-id=20140404184003.C485C1621955@aserver1.dk

Apr 4 20:40:03 aserver1 postfix/qmgr[18688]: C485C1621955: from=www-data@dk, size=8162, nrcpt=1 (queue active)

Apr 4 20:40:03 aserver1 postfix/smtp[18804]: C485C1621955: to=root@dk, orig_to=, relay=none, delay=0.08, delays=0.07/0/0.01/0

Howdy,

What is the output of the command “hostname”?

It looks like there’s a problem with where Postfix is trying to deliver your emails, it may be related to the hostname being used.

Also, can you paste in the contents of your /etc/resolve.conf file?

-Eric

search dk

nameserver 217.27.160.70 (First two are my IE providers DNS)

nameserver 217.27.161.40

nameserver 192.168.1.1 (Routers Lan IP)

Hostname is aserver1

Thank you for your efforts

Did you initially install the system using the Virtualmin installer script? Or did you use some manual method? The former is highly recommended.

Please post the output of hostname -f

Also, as I said two times, please always put shell output in code tags, i.e. put [code] before the whole shell block and [/code] after it.

root@aserver1:~# hostname -f aserver1

Sorry I didn´t understand.
I used the script but then I moved one domain to another server on another IP adress

Maybe it is not such a good idea to have hostname and server name as the same name?
How do I change it or should I reistall the hwole thing all together?

Okay if you used the script, I’m a bit surprised about the Postfix errors in your first post. Anyway, maybe they’re not an issue.

You’d want an externally resolvable FQDN (fully qualified domain name) for your system. And yep you’re right, the server hostname itself should not be a Virtualmin controlled domain.

It might be easier to reinstall the system, can’t really judge without seeing your system for myself. It’d be too much guesswork. I could offer you to do a Skype+screensharing session if you’d like to try and fix things before you reinstall. If it’s something simple, I can do this for free. And if you need extended support, we can agree on a compensation.

Thanks. I tried this first:
Deleted the virtual server aserver1.dk
Now the default server for outside adress is nygammaltkok.se
Changed the line to mydestination = aserver1.dk, aserver1, localhost in main.cf
Restarted postfix

I can now recieve and send mail with nygammaltkok.se but not scandoor.com
Logfile shows

Apr  4 14:57:39 aserver1 postfix/trivial-rewrite[10786]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent"
Apr  4 14:57:40 aserver1 postfix/master[313]: warning: process /usr/lib/postfix/trivial-rewrite pid 10786 exit status 1
Apr  4 14:57:40 aserver1 postfix/master[313]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Apr  4 14:58:40 aserver1 postfix/trivial-rewrite[10791]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent"
Apr  4 14:58:41 aserver1 postfix/master[313]: warning: process /usr/lib/postfix/trivial-rewrite pid 10791 exit status 1
Apr  4 14:58:41 aserver1 postfix/master[313]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Apr  4 14:59:41 aserver1 postfix/trivial-rewrite[10822]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent"
Apr  4 14:59:42 aserver1 postfix/master[313]: warning: process /usr/lib/postfix/trivial-rewrite pid 10822 exit status 1
Apr  4 14:59:42 aserver1 postfix/master[313]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling

But the time must be wrong

Apr 4 14:52:34 aserver1 postfix/trivial-rewrite[10617]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent" Apr 4 14:53:35 aserver1 postfix/trivial-rewrite[10620]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent" Apr 4 14:54:36 aserver1 postfix/trivial-rewrite[10623]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent" Apr 4 14:55:37 aserver1 postfix/trivial-rewrite[10694]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent" Apr 4 14:56:38 aserver1 postfix/trivial-rewrite[10698]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent" Apr 4 14:57:39 aserver1 postfix/trivial-rewrite[10786]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent" Apr 4 14:58:40 aserver1 postfix/trivial-rewrite[10791]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent" Apr 4 14:59:41 aserver1 postfix/trivial-rewrite[10822]: fatal: open dictionary: expecting "type:name" form instead of "/etc/postfix/dependent"