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-"
Comments
Submitted by paul.kelly on Sun, 12/11/2011 - 12:21 Comment #1
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!
Submitted by andreychek on Sun, 12/11/2011 - 12:22 Comment #2
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.
Submitted by paul.kelly on Wed, 01/04/2012 - 15:19 Comment #3
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?
Submitted by JamieCameron on Wed, 01/04/2012 - 17:13 Comment #4
Yes, you can still send email via SMTP even when receiving mail is disabled for your domain..
Submitted by paul.kelly on Wed, 01/04/2012 - 17:38 Comment #5
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?
Submitted by andreychek on Wed, 01/04/2012 - 17:42 Comment #6
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.
Submitted by paul.kelly on Thu, 01/05/2012 - 03:03 Comment #7
thanks for the clarification