Current time: 11-01-2024, 09:56 AM Hello There, Guest! (LoginRegister)


Post Reply 
when the mail server is out of the box
Author Message
bzctoons Offline


Posts: 2
Joined: Nov 2007
Reputation: 0
Post: #8
RE: when the mail server is out of the box
tassoman Wrote:Hi all, today I've discovered that my ispcp installation cannot send emails to info@mydomain.com because there isn't that mailbox.

I've not created that mailbox because mailing still outside of the ispcp server. MX aren't changed and points to another mailserver.

I've checked also locally with a dns query and MX is correct. I feel like the domain is forced to send mail to himself on localhost without querying the real MX DNS.

Is it? How can i correct this?

here is a basic situation :
you have a contact form on you web site, which hosted on a ispcp managed system, when the form tries to sed and email, fisrt the DNS resolution may fails, because your local bind server, which is handled by ispcp answer first and returns the local system as MX host.
To solve this, add some remote DNS server before the 127.0.0.1 in /etc/resolf.conf
Next, postfix remains issued : as postfix is handled by ispcp, the domain is defined as virtual, also postfix send the mail locally.
To solve this, you have to update /etc/postfix/ispcp/domains and comments the remote domains, next run postmap to rebuild the db and apply the changes.

Here is attached a script which update postfix automatically,
To install, just upload it the server, chmod it as 755 and run it.
comments are welcome


Attached File(s)
.txt  ispcp-fix-postfix-domains.sh.txt (Size: 2.72 KB / Downloads: 20)
(This post was last modified: 07-31-2008 10:25 AM by bzctoons.)
07-31-2008 10:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: when the mail server is out of the box - bzctoons - 07-31-2008 10:22 AM

Forum Jump:


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