Cannor send emails to own domain

I have a domain set up that workd fine, however, I use Google Apps for email, which also works fine.

As I want to use an email newsletter program, which will send hundreds of emails out atone go (which gmail does not like/allow), I have the mail feature switched on on the VPS.

I can send a receive emails ok using Gmail OK and I can send emails from the server to external domain, however, any local email does not get delivered (i.e. from server software e.g. joomla)!

What could I be missing?

Below is some bits from the maillog:

Dec 11 17:36:28 alpha postfix/smtpd[21605]: connect from localhost[127.0.0.1]

Dec 11 17:36:28 alpha postfix/smtpd[21605]: B060015428: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=password.

Dec 11 17:36:28 alpha postfix/cleanup[21608]: B060015428: message-id=<f73294a0234563c49997c51e3a249516@www..co.uk>

Dec 11 17:36:28 alpha postfix/qmgr[17288]: B060015428: from=<info@.co.uk>, size=646, nrcpt=2 (queue active) Dec 11 17:36:28 alpha postfix/smtpd[21605]: disconnect from localhost[127.0.0.1]

Dec 11 17:36:28 alpha postfix/local[21609]: B060015428: to=<default-.co.uk@ns1..co.uk>, orig_to=<info@.co.uk>, relay=local, delay=0.14, delays=0.08/0.02/0/0.05, dsn=5.1.1, status=bounced (unknown user: "default-.co.uk")

Dec 11 17:36:29 alpha postfix/local[21610]: B060015428: to=<default-.co.uk@ns1..co.uk>, orig_to=<hammersmith@.co.uk>, relay=local, delay=1.2, delays=0.08/0.03/0/1.1, dsn=5.1.1, status=bounced (unknown user: "default-.co.uk")

Dec 11 17:36:29 alpha postfix/cleanup[21608]: E800F1542B: message-id=<20111211173629.E800F1542B@ns1..co.uk> Dec 11 17:36:29 alpha postfix/qmgr[17288]: E800F1542B: from=<>, size=3113, nrcpt=1 (queue active)

Dec 11 17:36:29 alpha postfix/bounce[21611]: B060015428: sender non-delivery notification: E800F1542B

Dec 11 17:36:29 alpha postfix/qmgr[17288]: B060015428: removed

Dec 11 17:36:29 alpha postfix/local[21609]: E800F1542B: to=<default-.co.uk@ns1..co.uk>, orig_to=<info@.co.uk>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "default-.co.uk")

Dec 11 17:36:29 alpha postfix/qmgr[17288]: E800F1542B: remove

The logs show that user 'default-.co.uk' is unknown - I do not have anyone starting with "default-"

Status: 
Closed (fixed)

Comments

I have just tried to send an email via the VM Domain Users 'Email All Users' option and the mail was delivered locally, not to Gmail.

BTW, to clarify, application emails are not being delivered anywhere!

Howdy -- when the "Mail for Domain" feature is enabled, that tells Postfix that it's the final email destination for a given domain.

If your email is hosted externally for that domain, you'd always want to have that feature disabled.

That feature is just related to receiving emails -- since you're receiving emails for your domain at Gmail, you can still send email from your server with no problem even with the Mail for Domain feature disabled.

Apologies for the late reply - I didn't get/see your response notification.

I am not sure I understand the answer.

I have just done 2 newsletters, from 2 different domains on the VPS. None of the emails sent to email/domains on the server have been received via google apps!

SO I can send these phplist messages via SMTP, i need mail for the server to be active, don't I (reducing the posiibility of mail be interpreted as spam and using dkim)?

Do you mean I can switch off mail for domain and still send via smtp?

Yes, you can still send email via SMTP even when receiving mail is disabled for your domain..

Wow, this is interesting.

How do I set up an smtp server for a local program e.g. phplist i.e. what credentials do I use?

If a program is running on your server, it can access the locally run SMTP server (on 127.0.0.1) without needing any credentials.

Since it's originating on your server, it's considered trusted by Postfix.

thanks for the clarification