ispCP - Board - Support
[SOLVED] Gmail emails problem - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] Gmail emails problem (/thread-10133.html)

Pages: 1 2


[SOLVED] Gmail emails problem - sakal - 03-25-2010 12:12 AM

Hello , i got last ISPcp OMEGA and i am looking for help with emails.

I got server instaled on : mydomain.com
BUT - i dont want for emails service use my server , i want use gmail aps.

Simple on my server is runing ispCP and website for my domain , BUT emails is running on gmail servers.

All works fine when i log in gmail i can send and receive emails with no problem.
Also when i try open my site from browser i can see my site from my private server. {so dns is configured well}

First problem will come when i try send email NOT from gmail server ,
BUT from my own server.
It is basic script, he try send email about restart of my server after restart. And it is not working Sad

I got some errors in log`s .


Mar 24 13:36:56 mydomain.com postfix/pickup[17281]: B775A20680B5: uid=0 from=<root>
Mar 24 13:36:56 mydomain.com postfix/cleanup[17297]: B775A20680B5: message-id=<20100324133656.B775A20680B5@in.mydomain.com>
Mar 24 13:36:56 mydomain.com postfix/qmgr[17282]: B775A20680B5: from=<root@in.mydomain.com>, size=353, nrcpt=1 (queue active)
Mar 24 13:36:56 mydomain.com postfix/virtual[17299]: B775A20680B5: to=<lukasp@mydomain.com>, relay=virtual, delay=0.42, delays=0.39/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "lukasp@mydomain.com")
Mar 24 13:36:56 mydomain.com postfix/cleanup[17297]: C177B20680B6: message-id=<20100324133656.C177B20680B6@in.mydomain.com>
Mar 24 13:36:56 mydomain.com postfix/bounce[17300]: B775A20680B5: sender non-delivery notification: C177B20680B6
Mar 24 13:36:56 mydomain.com postfix/qmgr[17282]: C177B20680B6: from=<>, size=2011, nrcpt=1 (queue active)
Mar 24 13:36:56 mydomain.com postfix/qmgr[17282]: B775A20680B5: removed
Mar 24 13:36:56 mydomain.com postfix/cleanup[17297]: C5F2820680B4: message-id=<20100324133656.C177B20680B6@in.mydomain.com>
Mar 24 13:36:56 mydomain.com postfix/local[17301]: C177B20680B6: to=<root@in.mydomain.com>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (forwarded as C5F2820680B4)
Mar 24 13:36:56 mydomain.com postfix/qmgr[17282]: C5F2820680B4: from=<>, size=2136, nrcpt=1 (queue active)
Mar 24 13:36:56 mydomain.com postfix/qmgr[17282]: C177B20680B6: removed
Mar 24 13:36:56 mydomain.com postfix/virtual[17299]: C5F2820680B4: to=<lukasp@mydomain.com>, orig_to=<root@in.mydomain.com>, relay=virtual, delay=0.01, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "lukasp@mydomain.com")
Mar 24 13:36:56 mydomain.com postfix/qmgr[17282]: C5F2820680B4: removed


Is here somebody cleaver enough for this ????
Thanks for all HELP


RE: Gmail emails problem - gOOvER - 03-25-2010 02:57 AM

Please post in the CORRECT Forum. I Move this Thread


RE: Gmail emails problem - sakal - 03-26-2010 04:22 PM

Nobody here understand postfix ? Sad


RE: Gmail emails problem - BeNe - 03-26-2010 04:58 PM

Code:
Mar 24 13:36:56 mydomain.com postfix/virtual[17299]: B775A20680B5: to=<lukasp@mydomain.com>, relay=virtual, delay=0.42, delays=0.39/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "lukasp@mydomain.com")
You try to send a mail from your Server where the Domain "mydomain.com" is registerd. So the Server search on your local Server the Mailbox for "lukasp@mydomain.com" which not exist.
Did you set a MX record to gmail ?

Greez BeNe


RE: Gmail emails problem - kilburn - 03-26-2010 05:41 PM

This has been answered *maaaaany* times. In short: remove the default email addresses created by ispcp (if any), set the domain's mail account limit to -1, and regenerate the configurations using the update script:
Code:
cp /etc/ispcp/ispcp.conf /etc/ispcp/ispcp.old.conf
cd /var/www/ispcp/engine/setup
perl ispcp-update
rm /etc/ispcp/ispcp.old.conf

Done.


RE: Gmail emails problem - sakal - 03-27-2010 01:06 AM

If i try send email from anywhere all working fine. so MX record is fine.
I thing just my server [local] do not understand he have running domain but emails is in another server.

if i try send email from : test@domain2.com >to> lukasp@domain.com = ALL FINE
if i try send email REPLY from : lukasp@domain.com >to> test@domain2.com = ALL FINE

BUT : if i try send email from server where is isCP to lukasp@domain.com i get this error. = as you sayz server try deliver email not to google mails servers , he is sending email to local account {but there is no local account , there is account just on googleAPPs servers.}

@BeNe Thanks for helping




(03-26-2010 04:58 PM)BeNe Wrote:  
Code:
Mar 24 13:36:56 mydomain.com postfix/virtual[17299]: B775A20680B5: to=<lukasp@mydomain.com>, relay=virtual, delay=0.42, delays=0.39/0/0/0.02, dsn=5.1.1, status=bounced (unknown user: "lukasp@mydomain.com")
You try to send a mail from your Server where the Domain "mydomain.com" is registerd. So the Server search on your local Server the Mailbox for "lukasp@mydomain.com" which not exist.
Did you set a MX record to gmail ?

Greez BeNe



RE: Gmail emails problem - BeNe - 03-27-2010 01:18 AM

So you need to add an MX Record for your Domain in your local Bind Config to deliver all Mails to GMail-Server and not to localhost.

ispCP comes with this DNS-Tool but it is still *experimental*
So you can add the MX Record for this domain directly in ispCP if you want.
Be sure that your resolv.conf is used the internal DNS.

Greez BeNe


RE: Gmail emails problem - kilburn - 03-27-2010 01:35 AM

I've already posted the solution to his problem. Stop losing your time with him until he realizes it BeNe. Thx Wink


RE: Gmail emails problem - kilburn - 03-29-2010 08:29 PM

If my instructions didn't work, try manually removing the domain from the files /etc/postfix/ispcp/domains _and_ /etc/ispcp/postfix/working/domains . Thereafter, restart postfix (/etc/init.d/postfix restart) and see if it works...


RE: Gmail emails problem - sakal - 03-29-2010 11:21 PM

I did edit this files and remove my any mention about mydomain.com :

/var/www/ispcp/engine/setup# nano /etc/ispcp/ispcp.conf
/var/www/ispcp/engine/setup# nano /etc/ispcp/ispcp.conf
/var/www/ispcp/engine/setup# nano /etc/ispcp/ispcp.old.conf
/var/www/ispcp/engine/setup# nano /etc/ispcp/ispcp.conf.old
/var/www/ispcp/engine/setup# nano /etc/ispcp/postfix/working/aliases
/var/www/ispcp/engine/setup# nano /etc/ispcp/postfix/working/mailboxes
/var/www/ispcp/engine/setup# nano /etc/postfix/ispcp/aliases
/var/www/ispcp/engine/setup# nano /etc/postfix/ispcp/mailboxes

also i restart postfix and still got error Sad

Mar 29 15:15:22 mydomain.com postfix/virtual[31274]: 9D52220680E8: to=<lukasp@mydomain.com>, relay=virtual, delay=0.05, delays=0.03/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "lukasp@mydomain.com")
When i delete domain from ISPcp PANEL from my seller account , mails start working.
Sad looking forward for some manual. pleaseeeeee save me
or give me link if it is already somewhere.

Thx