Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have virtualmin and settings on virtualhost: mailname and hosts

I have all my emails accounts on gmail e.g.

However when sending emails in Joomla (PHP Mail setting) I have in mail.log

 8BB689FE64: to=<>, relay=local, delay=0.05, delays=0.03/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "support")

It treats as local, this domain is on gmail.

When sending to other than it send fine.

share|improve this question

migrated from Sep 29 '11 at 9:54

This question came from our site for professional and enthusiast programmers.

Try this:

1) Have a look in /etc/postfix for any mention of

2) Add the following line to /etc/postfix/transport smtp:SERVER

where SERVER is the correct mail server (MX record) for your domain at You could try putting, but I'm not sure. Have a look for the right answer using "host" or dig.

Then run:

postmap /etc/postfix/transport

Restart postfix and Bob's your uncle. Hopefully...

share|improve this answer
I had changed in but did not help as domain A points to my server – miojamo Sep 20 '11 at 18:21
Did the transport stuff not help? – ed. Sep 20 '11 at 18:26
nope still relay=local instead to google apps – miojamo Sep 20 '11 at 18:39
OP fixed the issue: "I fixed the issue by not setting the mydestination param in" – Jeff Atwood Sep 29 '11 at 9:55
don't specified the domain mydestination or virtual_mailbox_domains, because your domain is in an external mail server – c4f4t0r Aug 23 '14 at 15:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.