Current time: 11-24-2024, 12:48 AM Hello There, Guest! (LoginRegister)


Post Reply 
Problem with mail send using php on site
Author Message
plastilin Offline
Junior Member
*

Posts: 82
Joined: Jan 2010
Reputation: 1
Post: #1
At Problem with mail send using php on site
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.
(This post was last modified: 01-19-2010 08:37 PM by plastilin.)
01-19-2010 08:37 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Problem with mail send using php on site
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
01-19-2010 09:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
plastilin Offline
Junior Member
*

Posts: 82
Joined: Jan 2010
Reputation: 1
Post: #3
RE: Problem with mail send using php on site
(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...
01-19-2010 09:49 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Problem with mail send using php on site
is domain.local in /etc/postfix/ispcp/domains ?
01-19-2010 10:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
plastilin Offline
Junior Member
*

Posts: 82
Joined: Jan 2010
Reputation: 1
Post: #5
At RE: Problem with mail send using php on site
(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
(This post was last modified: 01-19-2010 10:19 PM by plastilin.)
01-19-2010 10:19 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Problem with mail send using php on site
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
01-19-2010 10:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
plastilin Offline
Junior Member
*

Posts: 82
Joined: Jan 2010
Reputation: 1
Post: #7
RE: Problem with mail send using php on site
Maybe! :-)

Quote:ispCP 1.0.2 OMEGA
build: 20090821
Codename: Priamos
(This post was last modified: 01-19-2010 10:40 PM by plastilin.)
01-19-2010 10:39 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: Problem with mail send using php on site
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
01-19-2010 10:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
plastilin Offline
Junior Member
*

Posts: 82
Joined: Jan 2010
Reputation: 1
Post: #9
RE: Problem with mail send using php on site
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.
01-19-2010 10:57 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)