ispCP - Board - Support
[RESOLVED]Ispcp doesn't send mail anymore - 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: [RESOLVED]Ispcp doesn't send mail anymore (/thread-11785.html)



[RESOLVED]Ispcp doesn't send mail anymore - Cdmar - 10-01-2010 12:31 AM

Hello,

I'm using Linux Debian 5 and ispCP 1.0.5 stable.
I installed ispCP on this machine with a DynDNS free hostname
as the BASE_SERVER_VHOST (panel address). Everything worked fine
until today, when dyndns switched off most of its free hostname
domains including mine - which is not working now.

Since it was shutdown, my ispCP hosting control panel doesn't send any
email anymore (like password reminder to users, account creation emails, etc)
- regular domain emails are working fine. Here is an example error log:

Code:
Sep 30 15:53:49 static postfix/smtp[3124]: 5FEB0A531064: to=<x3o2@go2.pl>, relay=mx5.go2.pl[193.17.41.45]:25, delay=1.1, delays=0.76/0.01/0.32/0.03, dsn=5.0.0, status=bounced (host mx5.go2.pl[193.17.41.45] said: 553 Sender address rejected: Domain not found (in reply to MAIL FROM command))

Sep 30 15:53:50 static postfix/smtp[3147]: E056BA531065: to=<webmaster@control-panelx2.servebbs.com>, relay=none, delay=0.18, delays=0.17/0/0.01/0, dsn=5.4.4, status=bounced (unable to look up host control-panelx2.servebbs.com: Name or service not known)

I got myself a new hostname domain and edited ispcp configuration:
Code:
/etc/ispcp/ispcp.conf
Provided new BASE_SERVER_VHOST in the file, and then proceeded with several commands:

Code:
rm /etc/apache2/sites-available/ispcp.conf

rm /etc/ispcp/apache/working/ispcp.conf

-----------------------------------

cp /etc/ispcp/apache/parts/ispcp_base.tpl /etc/apache2/sites-available/ispcp.conf

cp /etc/ispcp/apache/parts/ispcp_base.tpl /etc/ispcp/apache/working/ispcp.conf

-----------------------------------

/etc/init.d/ispcp_daemon stop

-----------------------------------

mysql -p -u root

USE ispcp;

UPDATE `domain` SET `domain_status` = 'change' WHERE `domain_status` = 'ok';

UPDATE `subdomain` SET `subdomain_status` = 'change' WHERE `subdomain_status` = 'ok';

UPDATE `domain_aliasses` SET `alias_status` = 'change' WHERE `alias_status` = 'ok';

UPDATE `mail_users` SET `status` = 'change' WHERE `status` = 'ok';

quit

-----------------------------------

/var/www/ispcp/engine/ispcp-rqst-mngr

/etc/init.d/ispcp_daemon start

I also changed bind configuration and replaced old address with a new one, changed apache entries which contained the old one replacing them with a new one.

I dont know why is postfix still attempting to send mail using my old hostname, where is it even taking the webmaster@control-panelx2.servebbs.com mail address from, if I replaced all the entries? Please help me.

Thank you very much.


RE: Ispcp doesn't send mail anymore - Cdmar - 10-09-2010 07:46 AM

Looks like this board is completly dead and it is almostly always impossible to
receive ANY kind of help...no one bothers or takes time... sad truth.


RE: Ispcp doesn't send mail anymore - Nuxwin - 10-09-2010 08:02 AM

Hello ;

If you want support, use another words please....

We can help you but please, calm down...


RE: Ispcp doesn't send mail anymore - sci2tech - 10-09-2010 08:03 AM

take a look at /etc/hosts and at /etc/postfix/main.cf. you will understand why Wink . This are basic operations, so nobody bother answer because this were answered too many times.


RE: Ispcp doesn't send mail anymore - Cdmar - 10-09-2010 08:08 AM

(10-09-2010 08:03 AM)sci2tech Wrote:  take a look at /etc/hosts and at /etc/postfix/main.cf. you will understand why Wink . This are basic operations, so nobody bother answer because this were answered too many times.

My /etc/hosts doesn't contain the old domain name anywhere, the same goes to /etc/postfix/main.cf. Only the actual server hostname assigned to me by the hosting company. So thats why I cant figure it out.. where is IspCp constantly taking and applying the old domain name from, it tries to load bind files associated to it, send mail through it, etc.


RE: Ispcp doesn't send mail anymore - Nuxwin - 10-09-2010 08:10 AM

1. Edit your /etc/hosts (ensure you it's ok with your new hostname)
2. Edit your /etc/ispcp.conf and change the values
3. Rerun the update script

If another help is needed, send me a PM, I can help you via teamviewer session.


RE: Ispcp doesn't send mail anymore - sci2tech - 10-09-2010 08:12 AM

also look at /var/www/fcgi/master/php5/php.ini Wink . Modify and restart apache.


RE: Ispcp doesn't send mail anymore - Nuxwin - 10-09-2010 08:20 AM

And also, if you have changed the BASE_SERVER_VHOST in the ispcp.conf and ispcp.old.conf files, you should rename the related /etc/ispcp/bind/working/old_hostname.db file to the new name before rerun the /var/www/ispcp/engine/setup/ispcp-update script.


RE: Ispcp doesn't send mail anymore - Cdmar - 10-09-2010 08:28 AM

(10-09-2010 08:12 AM)sci2tech Wrote:  also look at /var/www/fcgi/master/php5/php.ini Wink . Modify and restart apache.

Thanks, it totally solved the problem. E-mail goes through very well now.

Also, thank you @Nuxwin. I think i might be interested in your paid services regarding ispCP.


RE: Ispcp doesn't send mail anymore - Nuxwin - 10-09-2010 08:30 AM

Ok so, you can vote (rating) for us now. And please, mark this thread as resolved. Tongue