[SOLVED]Postfix trying to send locally, not using MX records

I have a Ubuntu 10.04 LTS server that I've recently set up.

postfix seems to be running fine (I use it for outgoing only, I using Google Apps in the domain's incoming mail).

If I send mail from that server however (like just using 'mail xyzzy@foo.com' from the command line), it doesn't deliver the mail to google's servers.

I get a line in /var/log/mail.info: 'unknown user: xyzzy'.

How can I tell postifx that for foo.com (my domain), I don't want it to try and deliver locally, I want to use the standard MX records?

1 Reply

(bangs head).

Did it to myself again: found the answer right after posting.

I removed foo.com from 'mydestinations' in /etc/postfix/main.cf.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct