ispCP - Board - Support
Problem with mail send using php on site - 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: Problem with mail send using php on site (/thread-9272.html)



Problem with mail send using php on site - plastilin - 01-19-2010 08:37 PM

Help me where to dig. Installed ISPCP 1.0.2 under Debian Lenny. Install new domain - domain.local, raised site. The site have a form to send an email message through the web interface using php, the name of the recipient address from the site is the same domain as the site itself (recipient@domain.local). Postage ISPCP function is not used, because there is already configured email server. The problem is that not leave messages on the user names if their domain coincides with the domain hosted on hosting. In other domains, which are not on hosting - everything goes without problems. In the log Postfix:
Code:
Jan 18 18:18:29 hostingsrv postfix/virtual[31728]: 140A294A30: to=<recipient@domain.local>, relay=virtual, delay=0.22, delays=0.07/0.12/0/0.04, dsn=5.1.1, status=bounced (unknown user: "recipient@domain.com")
How i can win this situation? Sorry For my english.


RE: Problem with mail send using php on site - joximu - 01-19-2010 09:21 PM

Did you deactivate the mail accounts on the domain?

you also can deactivate the domain in /etc/postfix/ispcp/domains
run postmap domains
also deactivate the domain in the working copy

we had this here in the forum - search for "external mail" or similar...

/J


RE: Problem with mail send using php on site - plastilin - 01-19-2010 09:49 PM

(01-19-2010 09:21 PM)joximu Wrote:  Did you deactivate the mail accounts on the domain?

Yes I deactivate mail function for domain domain.local in reseller interface with option -1. But email wasn`t sent...


RE: Problem with mail send using php on site - joximu - 01-19-2010 10:11 PM

is domain.local in /etc/postfix/ispcp/domains ?


RE: Problem with mail send using php on site - plastilin - 01-19-2010 10:19 PM

(01-19-2010 10:11 PM)joximu Wrote:  is domain.local in /etc/postfix/ispcp/domains ?
Yes.

Thanks. I fixed this with follow instruction:
Quote:1. Disable e-mail function in resseler interface for problem domain
2. Comment with symbol # the problem domain in files: /etc/ispcp/postfix/working/domains and /etc/postfix/ispcp/domains
3. Execute command "postmap /etc/postfix/ispcp/domains"
4. Execute command "/etc/init.d/postfix reload"
5. Verify the log file



RE: Problem with mail send using php on site - joximu - 01-19-2010 10:34 PM

exactly!

maybe you have an older release of ispcp - if you create a domain today with email deactivated - then the domain is not entered in the postfix config.

/J


RE: Problem with mail send using php on site - plastilin - 01-19-2010 10:39 PM

Maybe! :-)

Quote:ispCP 1.0.2 OMEGA
build: 20090821
Codename: Priamos



RE: Problem with mail send using php on site - joximu - 01-19-2010 10:42 PM

hm, 1.0.2 should be ok.

Just important: the mail should be deactivated during creation of domain - if you do it later, then it won't work...

/J


RE: Problem with mail send using php on site - plastilin - 01-19-2010 10:57 PM

I understand it, but domain domain.local was created with e-mail support. At next time i don`t use e-mail support if i have external mail server.